3/7/12

putting sqlite3 on nexus s

i just notice that there is no sqlite3 on samsung nexus s (official ICS ROM) and i need it in debugging my application database. so i download it from somewhere on internet can't remember. Anyway the one that come with android sdk linux version should be fine to put it on phone. and here is what i do.

E:\android-sdk-windows-1.5_r2\platform-tools>adb shell
shell@android:/ $ su
su
shell@android:/ # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
shell@android:/ # dd if=/sdcard/sqlite3 of=/system/bin/sqlite3
dd if=/sdcard/sqlite3 of=/system/bin/sqlite3
47+1 records in
47+1 records out
24120 bytes transferred in 0.003 secs (8040000 bytes/sec)
shell@android:/ # chmod 4755 /system/bin/sqlite3
chmod 4755 /system/bin/sqlite3
shell@android:/ # mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
shell@android:/ # sqlite3
sqlite3
SQLite version 3.7.4
Enter ".help" for instructions
sqlite>


notice : to do this your nexus have to root first.

0 comments: