How to view sqlite database using real device

I have been looking for this for quite some time, and I found the following steps in https://stackoverflow.com/a/3/4129/

1. Connect the device and run the application in debug mode.

2. Copy the database file from the folder of your application to your SD card: execute:

./adb -d shell "run-as com.yourpackge.name cat /data/data/com.yourpackge.name/databases/filename.sqlite> /sdcard/filename.sqlite"

  1. Pull the database files onto your computer: run:

./adb pull / sdcard / execute: ./ adb

  1. Install Firefox SQLLite Manager: https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/

5. Open Firefox SQLLite Manager and open the database file from step 3 above.

Where can I find the database file? The data file is displayed empty, although I have strengthened my device. Sorry if this is a stupid question, but I really don't know how to access SQLite using a real device.

Some said that access to the database can be obtained after the device is deployed, but it does not work for me. How to view SQLite database on Android device?

0
source share
1 answer

you can use Root Explore, before that you have to run root and root user rights to launch the application, then open and find the data folder and open the folder, and then continue to search for the data folder and open it, you will find application files in this device find your package name and you can find db, you can use db copy for sdcard

0
source

All Articles