Finder
Finder

Reputation: 1217

Is there any way to read the mobile sqlite database in remote?

I need to read my mobile's Sqlite Date base from remote Access ?? Via network (as like sql Server)

Note :

If I have the SQlite DB File in My Phone. From my computer i need to read / edit the Database.

Upvotes: 0

Views: 3933

Answers (3)

Cesar Morigaki
Cesar Morigaki

Reputation: 41

Try this app: SQLiteWeb (https://play.google.com/store/apps/details?id=br.com.cm.sqliteweb). It provides remote access to your database without pulling it out.

Pro version includes root access and if you are developing an application, it has the possibility to implement a Content Provider to connect using SQLiteWeb

Yet simple but really usefull!

Upvotes: 1

Valentin Klinghammer
Valentin Klinghammer

Reputation: 1349

For access over the network, you can use ADB via WiFi with e.g. adbWireless. Connect to your phones IP

adb connect 192.168.100.20

Pull your database file via adb.

adb pull /data/data/APPLICATION/databases/APPLICATION C:\myProject\APPLICATION.db

Then use SQLite Database Browser to edit your DB. Then push again.

adb push C:\myProject\APPLICATION.db /data/data/APPLICATION/databases/APPLICATION

Hope that helps. If you were looking for something else, please clarify your question :)

Upvotes: 4

bhups
bhups

Reputation: 14895

via adb shell you can log into emulator and read the db for the application. But on the device you can not do that unless device is rooted due to security implications. What exactly you are trying to achieve, are you trying to read some other app's sqlite DB or you are trying to debug your application. If it is the former case then well it is not advisable and if it the later case then you can run your app on the emulator and inspect your sqlite db using adb shell.

Upvotes: 0

Related Questions