How to access data/data files of Android without a terminal on the Android device

旧街凉风 提交于 2020-01-15 08:21:25

问题


I have an Android 4.2.0 device that I have rooted with Kingo Root through a Windows machine. I also have a Unix machine available.

I want to be able to transfer and read the contents of the data/data folders of my device to my computer.

While I understand that I can use the adb shell (or a phone-installed terminal) as described here, I don't have internet connection on my Android device to download and install a terminal.

Is there some way to transfer and read the contents of the data/data folders with the setup described above?


回答1:


Just get adb set up on your Windows machine.

I just did this on my Windows 8 machine with a rooted device:

C:\Users\dan>adb devices
List of devices attached
LGLS8859a5b706c device

C:\Users\dan>adb shell
root@jagc:/ # cd data/data/com.android.phone/databases
cd data/data/com.android.phone/databases
root@jagc:/data/data/com.android.phone/databases # ls
ls
callreject.db
callreject.db-journal
callsettings.db
callsettings.db-journal
ipcall.db
ipcall.db-journal
quickmessage.db
quickmessage.db-journal
root@jagc:/data/data/com.android.phone/databases # exit
exit

C:\Users\dan>adb pull /data/data/com.android.phone/databases/callreject.db
878 KB/s (16384 bytes in 0.018s)

C:\Users\dan>

You can also pull an entire folder like this:

C:\Users\dan>adb pull /data/data/com.android.phone/databases/
pull: building file list...
pull: /data/data/com.android.phone/databases/callsettings.db-journal -> ./callse
ttings.db-journal
pull: /data/data/com.android.phone/databases/callsettings.db -> ./callsettings.d
b
pull: /data/data/com.android.phone/databases/callreject.db-journal -> ./callreje
ct.db-journal
pull: /data/data/com.android.phone/databases/callreject.db -> ./callreject.db
pull: /data/data/com.android.phone/databases/ipcall.db-journal -> ./ipcall.db-jo
urnal
pull: /data/data/com.android.phone/databases/ipcall.db -> ./ipcall.db
pull: /data/data/com.android.phone/databases/quickmessage.db-journal -> ./quickm
essage.db-journal
pull: /data/data/com.android.phone/databases/quickmessage.db -> ./quickmessage.d
b
8 files pulled. 0 files skipped.
1132 KB/s (125016 bytes in 0.107s)


来源:https://stackoverflow.com/questions/29285335/how-to-access-data-data-files-of-android-without-a-terminal-on-the-android-devic

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