...">

Android: adb: permission denied

Whatever I print after the "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?

+62
android adb
Sep 13 '11 at 8:41
source share
9 answers

According to adb help :

 adb root - restarts the adbd daemon with root permissions 

Which really solved the problem for me.

+91
Jun 05 2018-12-12T00:
source share

The reason for the denial of access is due to the fact that your Android machine was not correctly implemented. Did you see $ after running adb shell ? If you rooted your machine correctly, you would see # .

If you see $ , try entering superuser mode by typing su . If Root is enabled, you will see # - without asking for a password.

+17
Aug 15 2018-12-12T00:
source share

No rooting . If you cannot connect your phone, use the run-as <package> command to access your application data.

Example:

$ adb exec-out run-as com.yourcompany.app ls -R /data/data/com.yourcompany.app/

exec-out executes the command without starting the shell and processing the output.

+17
Jul 10 '16 at 13:33
source share

You may need to activate adb root from the developer settings menu. If you run adb root from the cmd line, you can get:

 root access is disabled by system setting - enable in settings -> development options 

After activating the root option (only ADB or Apps and ADB) adb will restart and you can use root from the cmd line.

+5
Mar 04 '13 at 12:20
source share

Be careful with the slash, change "\" to "/", for example: adb.exe click SuperSU-v2.79-20161205182033.apk / storage

0
Dec 26 '17 at 3:24 on
source share

The data section is not accessible to a non-root user, if you want to access it, you must get root access to your phone.

adb root does not work for all products and depends on the type of phone assembly.

In the new version on Android Studio, you can explore /data/data path for debugged applications.

0
Dec 19 '18 at 4:30
source share

The solution for me was (thanks to David Ljung Madison post )

-2
Jan 29 '16 at 14:45
source share

Make adb remount. And then try adb shell

-3
Sep 13 '11 at 8:50
source share

Run your cmd as administrator, this will solve my problems. Thank you

-four
Nov 06 '17 at 7:43
source share



All Articles