How to access data/data folder in Android device?

后端 未结 18 1879
南方客
南方客 2020-11-22 15:36

I am developing an app and I know my database *.db will appear in data/data/com.****.***

I can access this file from AVD in Eclipse with he

18条回答
  •  粉色の甜心
    2020-11-22 16:19

    1. Open your command prompt
    2. Change directory to E:\Android\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools
    3. Enter below commands
    4. adb -d shell
    5. run-as com.your.packagename cat databases/database.db > /sdcard/database.db
    6. Change directory to cd /sdcard to make sure database.db is there.
    7. adb pull /sdcard/database.db or simply you can copy database.db from device .

提交回复
热议问题