Android: adb: Permission Denied

前端 未结 9 1365
别跟我提以往
别跟我提以往 2020-12-02 06:33

Whatever I type after adb shell it fails with Permission denied:

D:\\android-sdk-windows\\platform-tools>adb shell find /data -na         


        
相关标签:
9条回答
  • 2020-12-02 06:39

    The reason for "permission denied" is because your Android machine has not been correctly rooted. Did you see $ after you started adb shell? If you correctly rooted your machine, you would have seen # instead.

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

    0 讨论(0)
  • 2020-12-02 06:42

    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.

    0 讨论(0)
  • 2020-12-02 06:44

    According to adb help:

    adb root                     - restarts the adbd daemon with root permissions
    

    Which indeed resolved the issue for me.

    0 讨论(0)
  • 2020-12-02 06:44

    You might 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
    

    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.

    0 讨论(0)
  • 2020-12-02 06:47

    Be careful with the slash, change "\" for "/" , like this: adb.exe push SuperSU-v2.79-20161205182033.apk /storage

    0 讨论(0)
  • 2020-12-02 06:48

    Run your cmd as administrator this will solve my issues. Thanks.

    0 讨论(0)
提交回复
热议问题