Android Eclipse DDMS - Can't pull file from rooted device

前端 未结 2 1210
忘了有多久
忘了有多久 2020-12-17 03:44

I am testing my app on a rooted Nexus S phone. I finally have access to the /data/data folder thanks to some awesome help from this answer.

Problem is when I try to

相关标签:
2条回答
  • 2020-12-17 04:31

    I found out that to pull the actual database file (my_database.db) you have to use chmod on that specific file in the adb shell. So you need to explicitly define the path to the database you want to access.

    For example, if the database file were my_database.db and the application package was com.example.database, you would need to call the following:

    1) In cmd type: adb shell
    2) Type: su
    3) Press "allow" on the rooted phone
    4) In cmd type: chmod 777 /data/data/com.example.database/databases/my_database.db
    5) Go to DDMS in Eclipse
    6) Navigate to the my_database.db file and select it
    7) Choose "pull a file from the device" and choose where to save it

    0 讨论(0)
  • 2020-12-17 04:41

    Restart your eclipse once. I hope that will fix this issue

    0 讨论(0)
提交回复
热议问题