Problem one: The test on the real machine, adb shell execution sqlite3 access to the database/system/bin/sh:sqlite3:not found, the original phone system does not have sqlite3 files, need to download online: is the download sqlite3, If it is android4.1 above you need to download sqlite3_4.1
1) mount the/system directory as writable
>ADB shell# mount-o remount,rw-t Yaffs2/dev/block/mtdblock3/system
2) Download Sqlite3, if it is more than android4.1 need to download sqlite3_4.1, or create a simulator, in the simulator sqlite3_4.1, and push it to the phone, Or click Import directly with Eclipse's fileexplor, or command import:
> ADB push Sqlite3/system/xbin
3) give permission to Sqlite3 or sqlite3_4.1
# chmod 4755/system/xbin/sqlite3
4) test whether it can be used
ll sqlite3_4.1
5) Restore the system to read-only
#mount-O remount,ro-t yaffs2/dev/block/mtdblock3/system
Issue two: After the SD card writes the data to join the Write permission still prompt: Open failed. (read-only file system), is not saved or read and write not safe exit causes the SD card problems need to be mounted again,
Workaround:
1. The simplest, ADB remount
2. If not, adb shell Su then remount the file system to read and Write permissions: Mount-o rw,remount/system. For security reasons, remember after the remount read back: Mount-o Ro,remount/system
3. Similar to Method 2, Mount-o rw,remount-t Ext3/dev/block/mmcblk1p21/system
Questions and solutions for real phone testing in Android