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?
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:
exec-out
executes the command without starting a shell and mangling the output.data
partition not accessible for non root user, if you want to access it you must root your phone.adb root
not work for all product and depend in phone build type.in new version on android studio you can explore
/data/data
path for debuggable apps.Solution for me was (thx to David Ljung Madison post)
adb kill-server
Do adb remount. And then try adb shell
The reason for "permission denied" is because your Android machine has not been correctly rooted. Did you see
$
after you startedadb shell
? If you correctly rooted your machine, you would have seen#
instead.If you see the
$
, try entering Super User mode by typingsu
. If Root is enabled, you will see the#
- without asking for password.According to
adb help
:Which indeed resolved the issue for me.