browse data in Android SQLite Database

后端 未结 8 2105
攒了一身酷
攒了一身酷 2020-12-04 16:42

Is there a way for an Android user to browse the SQLite databases on his/her phone and view the data in the databases?

I use the SoftTrace beta program a lot. It\'s

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

    Here is the free method that worked for me on a phone that is not rooted. Credit goes to this SO answer.

    1. Use adb backup -f backup.ab -noapk app.package.name
    2. On Windows download the Android Backup Extractor jar found on SourceForge here, then run java -jar abe.jar unpack backup.ab extractedbackup.tar. On Linux you can follow the dd instructions from the answer I gave credit to in the beginning.
    3. Download SQLite Database Browser from SourceForge here, then open the db file contained within extractedbackup.tar.

    Personally, to make this process easier, I first added adb to my environment PATH. Then I made a backup folder where I store all of the files mentioned above. This keeps me from having to cd (change directory) all over the place.

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

    If you are using Eclipse, you can use a plugin called 'Questoid SQLite Browser' to browse the SQL Lite Database on your Android emulator:

    1. Install the plugin
    2. Restart eclipse
    3. Start your emulator
    4. Switch to DDMS
    5. Open database with plugin (as @synic mentioned previously, the DB is located here e.g. /data/data/my_project/databases)

    Here is a more detailed tutorial: http://www.tylerfrankenstein.com/browse-android-emulator-sqlite-database-eclipse

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