Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to run 'adb root' on a rooted Android phone [duplicate]

After rooting my device, I need to run adb root and then adb shell so I could then access my applications database. When trying to run adb root I keep getting "adbd cannot run as root in production builds". Why is this? The only other option is to use the Android emulator for testing, but we all know how terrible the emulator is (not really a viable development solution).

like image 602
shoke Avatar asked Aug 21 '13 23:08

shoke


People also ask

How do you fix ADBD Cannot run as root in production builds?

you have to start the shell with the phone and go into the magisk app and in the superuser tab (bottom) you have to enable root access for the shell and it works!

Does adb work without root?

You don't need to be rooted to use ADB, all android phones can use ADB without being rooted. You must be rooted to push applications to /system/apps/ to make them system applications.


1 Answers

I finally found out how to do this! Basically you need to run adb shell first and then while you're in the shell run su, which will switch the shell to run as root!

$: adb shell $: su 

The one problem I still have is that sqlite3 is not installed so the command is not recognized.

like image 103
shoke Avatar answered Sep 23 '22 14:09

shoke