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).
43
votes
run-as <package>
command in the adb shell provided your app has debuggable="true" in its manifest. – Grishka