Android: adb: Permission Denied

前端 未结 9 1366
别跟我提以往
别跟我提以往 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:58

    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.

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

    Do adb remount. And then try adb shell

    0 讨论(0)
  • 2020-12-02 07:05

    Solution for me was (thx to David Ljung Madison post)

    1. Root the phone & be sure it is rooted
    2. Adb server (adbd) was not run as root so downloaded & installed the adbd insecure app
    3. Restart adb adb kill-server
    4. Run it & worked like a flower!
    0 讨论(0)
提交回复
热议问题