How can I pull a file in /data/data/ from a rooted android device in one click using a windows' .bat file?

风流意气都作罢 提交于 2019-12-11 23:36:28

问题


I wrote the following .bat file, but it did not work for me. Could anybody help me?

adb shell
su
cd /data/data
cp -r com.example.myapp /sdcard
exit
adb pull /sdcard/com.example.myapp

The .bat stop in the first command and did not go ahead. Just as this snapshot show. I would be greatly appreciated if someone could help me.


回答1:


You can run adb as root

adb root

then you can just do

adb pull /data/data/com.example.myapp/ .


来源:https://stackoverflow.com/questions/38650191/how-can-i-pull-a-file-in-data-data-from-a-rooted-android-device-in-one-click-u

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!