This is an alternative solution for the SQlite browser ... (In fact, all LINUX machines that have SQlite allready, you only need the SQlite GUI. The Sqlite database browser is predefined, but if you cannot install it (for example, I), then go to to this other solution ... You must add the addon to firefox. You can download it from http://code.google.com/p/sqlite-manager/
and to install this addon (after downloading it) press "ctrl + o"> select the downloaded file> open> install.
Now, after restarting Firefox, go to Tools> SQLite Manager> open it and select your database to open and do your job.
Update for sqlite3
Android has provided a very nice tool, which is sqlite3. This tool can be found in the sdk/tool/ directory.
Introduction: -
From a remote adb shell, you can use the sqlite3 command line to manage the SQLite databases created by Android applications. The sqlite3 tool includes many useful commands, such as .dump to print the contents of a table and .schema to print a SQL CREATE for an existing table. The tool also gives you the ability to execute SQLite commands on the fly.
To use sqlite3 , enter the remote shell in the emulator instance as described above, then invoke the tool using the sqlite3 command. If you wish, when invoking sqlite3, you can specify the full path to the database that you want to explore. Emulators / device instances store sqlite3 databases in the /data/data/<package_name>/databases/ folder.
Here is an example:
adb -s emulator-5554 shell # sqlite3 /data/data/com.example.google.rss.rssexample/databases/rssitems.db SQLite version 3.3.12 Enter ".help" for instructions .... enter commands, then quit... sqlite> .exit
After calling sqlite3 you can issue sqlite3 in the shell. To exit and return to the remote adb shell, use exit or CTRL+D
Read more about Exploring sqlite3 Databases from a Remote Shell
Happy coding!
source share