Whatever I type after adb shell
it fails with Permission denied
:
D:\android-sdk-windows\platform-tools>adb shell find /data -name *.db find: permission denied D:\android-sdk-windows\platform-tools>adb shell test test: permission denied D:\android-sdk-windows\platform-tools>adb remount remount failed: No such file or directory
Any ideas?
root access is disabled by system setting - enable in settings -> development options Once you activate the root option (ADB only or Apps and ADB) adb will restart and you will be able to use root from the cmd line.
Changing permissions We can change permissions of installed application by using the adb shell pm grant <package> <permission> or adb shell pm revoke <package> <permission> commands. To grant permissions(s) we can use the adb shell pm grant <package> <permission> command.
According to adb help
:
adb root - restarts the adbd daemon with root permissions
Which indeed resolved the issue for me.
Without rooting: If you can't root your phone, use the run-as <package>
command to be able to access data of your application.
Example:
$ adb exec-out run-as com.yourcompany.app ls -R /data/data/com.yourcompany.app/
exec-out
executes the command without starting a shell and mangling the output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With