Need Help Disabling the Multi User in Android 7 - Android Q&A, Help & Troubleshooting

I wanted to disable the multi-user feature in Android in my both Motorola phones, one has Android 5.1 and other has Android 7. I have been successful in Android 5.1 phone through the CMD command using ADB tools, the command I ran is this to disable it:
Code:
db shell settings put global guest_user_enabled 0
And the result is this that the user icon under the notification swipe on the top right does not work now it does not do anything when tapped.
Now the same command I am running in my Android 7 phone is not working and the user panel is same as it is, this is where I need your help, what wrong am I doing or is there any change in the command that is need to be done. I just want it disabled like in Android 5.1.

@34v5
This setting doesn't exist in settings.db section global
https://developer.android.com/reference/android/provider/Settings.Global

jwoegerbauer said:
@34v5
This setting doesn't exist in settings.db section global
Click to expand...
Click to collapse
Is there any other command that can disable this multi-user thing. I don't want root.

Related

[Q] [q] an issue with reaching adb with root privileges

Hi guys i have a galaxy s3 xxella and running CM 10.1 custom rom developer options enabled and usb debugging too. and root access open for apps and adb. oh and phone is fully rooted and using custom recovery. everything is normal like you see but when i trying to reach adb my device status is offline it shows and i cant do anything.
CM10.1 is based on Jelly Bean 4.2.2. In order to be able to communicate in adb mode with a 4.2 device, you need to update your SDK. In your Android SDK folder, just go to adt-bundle-windows-x86_64\sdkmanager.exe, and install the new API version and SDK platform for 4.2.2.
Also, if you set up the Environment Variable to reach adb easily, know that in the new SDK package it has moved from the "tools" directory to "platform-tools", so change the variables accordingly.
When connecting to your device in adb, you should now see a popup window on your phone asking you to confirm key exchange between computer and device (that's also new in 4.2.2)
Finally, if you are using a Windows App called SnapPea, uninstall it as it replaces adb with a crappy dysfunctional exe.
th3m1773n said:
CM10.1 is based on Jelly Bean 4.2.2. In order to be able to communicate in adb mode with a 4.2 device, you need to update your SDK. In your Android SDK folder, just go to adt-bundle-windows-x86_64\sdkmanager.exe, and install the new API version and SDK platform for 4.2.2.
Also, if you set up the Environment Variable to reach adb easily, know that in the new SDK package it has moved from the "tools" directory to "platform-tools", so change the variables accordingly.
When connecting to your device in adb, you should now see a popup window on your phone asking you to confirm key exchange between computer and device (that's also new in 4.2.2)
Finally, if you are using a Windows App called SnapPea, uninstall it as it replaces adb with a crappy dysfunctional exe.
Click to expand...
Click to collapse
i will try now thanks for all
Edit: yes dude its all working good now thank you.

is it possible to enable WPS to connect to a WiFi using ADB commands?

Is there any way to enable WPS in Android through ADB commands to get to connect to the WiFi?
What I want to do is automatically testing this feature in a router with different types of devices connected, one of them being a phone (any) with the latest version of Android (10.0 at the moment I'm writing this).
I'd like to control it through ADB for two reasons:
I want to automate it
I need to make sure the phone was disconnected and connected again thanks to WPS and not other settings of the phone itself or the router
Maybe I can control the app Simple WPS through ADB commands? However I'm a bit newbie using ADB and I'm not sure how to do that.
I also found the Wi-Fi Easy Connect, but again, not sure how to use it.
Thanks!
You can bring up Android Activities using adb.
For example:
adb shell "am start -a android.settings.WIFI_SETTINGS"
Then you can tap the buttons from adb, I think.
Here's an example using a different Activity.
C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
That should pop up an Android "Reset Advertising ID" settings page.
C:\> adb shell input tap 500 400
If run after the command above, that will tap the button to
asking to "Opt out of Ads Personalization" in that Activity
if that button is like mine, at the X=500 & Y=400 location.
On my phone, this is the "Reset advertising ID" button location:
adb shell input tap 500 200
On my phone, this is the "OK" button on that GUI above.
adb shell input tap 700 1000
C:\> adb shell am force-stop com.google.android.gms
If run after bringing up the advertising-id reset Activity,
it will close the activity without doing anything else.
If you have already set up ADB on your Android and PC, then you can skip this step. If you haven’t, there is a first time for everything!
To use ADB on your system, you first need to download and unzip the Android SDK Platform Tools from the Android developer website.
Mac users can use Homebrew to install ADB using the command: brew install homebrew/cask/android-platform-tools
On your Android device, you will need to enable USB debugging in the developer settings before you can connect the device over ADB.
Go to Settings > About phone then tap on the Build number several times. Once again, go to Settings > Developer options, then toggle on USB debugging.
Once that’s done, connect the Android device to your PC using a USB cable. Make sure to always allow the USB debugging prompt that will appear on your Android device.
Regards,
J Wick

Is it just me or we can not edit Notification Panel on Mi Note 10 Lite

Can anyone help? Can't seem to edit the notification parcel/quick settings. No screen recorder either
It's a bug. Use System UI Tuner and reset the notification shade to make it editable. No root needed, but you will need adb for permission.
Axeybaby said:
Can anyone help? Can't seem to edit the notification parcel/quick settings. No screen recorder either
Click to expand...
Click to collapse
This is a bug and i had to use adb to reset the settings to default. This happened because i was coming from a custom rom and my Google account synced and created this bug.
Probable Solution
Nope, you're not the only ones but update 11.0.8 should fix it, at least it worked for me
you can solve this problem with adb
open developer options
enable (usb debugging) and (usb debugging security)
in your platform tools directory open cmd or terminal
enter the following commands
adb devices
adb shell
settings put secure sysui_qs_tiles "$(settings get secure sysui_qs_tiles),edit"
adb reboot
I also notice that notification panel and quick settings tiles remains unchanged after applying themes. Any workaround...... Or its the way it is for now?

Question ADB to change button order of Navigation bar

Hi,
I've tried all the ADB commands for previous android version but it is not working on the Pixel 6 android 12.
I've tried
adb shell settings put secure sysui_nav_bar 'space,recent;home;back,space'
adb shell
settings put secure sysui_nav_bar "space,contextual;home;back,space"
Anyone know if android 12 they changed something to make it not work?
bump. why did they remove this

Question adb backup help or alternatives

I have rooted my a52 5g with Magisk. Now I'm trying to make a backup through "adb backup". adb spits this line: "adbd cannot run as root in production builds".
I then change in "/system/build.props" "ro.debuggable=1"
Now i get from adb:
restarting adbd as root
timeout expired while waiting for device
I then type adb devices, and no devices are listed and the device does not show up under device manager in win10.
Also if i open developer options in android menu, it crashes.
And when i change the "ro.debuggable=1" back to "0" developer options works again.
Any idea what is causing this?
And is there another way of backing up the whole system?
I rly just wanted to back it up before i ran the debloater app.

Categories

Resources