Device file explorer 提示run-as package “com.xxx.xxx" is not debuggablehtml
方法1:用ES修改data\data的下权限android
方法2:shell
adb shell
cd \data\data
su
chmod 777 *
如今能够用DDMS访问了,至于Android studio的 Device File Explorer 仍是不能访问的其余我还找到方法,先用ddms访问吧bash
问题:仍是没有办法经过ddms 把文件pull出来。用es把文件先copy到sd卡后,在copy出来markdown
stackoverflow上提供了新不须要root的解决办法app
https://stackoverflow.com/questions/13006315/how-to-access-data-data-folder-in-android-device
Accessing the files directly on your phone is difficult, but you may be able to copy them to your computer where you can do anything you want with it. Without rooting you have 2 options:ide
If the application is debuggable you can use the run-as
command in adb shelloop
adb shell
run-as com.your.packagename
cp /data/data/com.your.packagename/复制代码
Alternatively you can use Android's backup function.spa
adb backup -noapk com.your.packagename复制代码
You will now be prompted to 'unlock your device and confirm the backup operation'. It's best NOT to provide a password, otherwise it becomes more difficult to read the data. Just click on 'backup my data'. The resulting 'backup.ab' file on your computer contains all application data in android backup format. Basically it's a compressed tar file. This page explains how you can use OpenSSL's zlib command to uncompress it. You can use the adb restore backup.db
command to restore the backup.debug