If you see it

Live for passion

Sqlite3 With Android

Prerequisite: set up adb command

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ adb devices ## I have one real device and one emulator  
List of devices attached  
xxxxxxxxxxxx  device  
emulator-5554 device   

$ adb -s emulator-5554 shell ## To access specific device's shell and then use sqlite3 command
root@android:/ # sqlite3
SQLite version 3.7.11 2012-03-20 11:35:50
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>

$ adb -s emulator-5554  pull /system/xbin/sqlite3
4005 KB/s (67880 bytes in 0.016s)
s
$ adb -s 015d28569058200a push sqlite3 /system/xbin/
failed to copy 'sqlite3' to '/system/xbin//sqlite3': Read-only file system

Comments