Skip to content

Instantly share code, notes, and snippets.

@scottgwald
Last active March 28, 2020 20:25
Show Gist options
  • Save scottgwald/6862463 to your computer and use it in GitHub Desktop.
Save scottgwald/6862463 to your computer and use it in GitHub Desktop.
restart adbd as non-root
# warning: may fail (`adb devices` subsequently doesn't show the device).
# If so, then restart device.
adb shell setprop service.adb.root 0
adb shell "stop adbd && start adbd"
@scottgwald
Copy link
Author

It is not working, still asking for root.

It's been a while since I've touched any of this stuff, I'm sorry I can't help. But if you do find a fix, please submit a pull request!

@scottgwald
Copy link
Author

It is not working, still asking for root.

Just double checking, this script revokes root from adb on the Android device. If you want to run as root, maybe try
adb shell setprop service.adb.root 1 but again, I haven't touched this in a long time and I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment