I found that there was no sqlite3 in Xiaomi today, and it was a sqlite3: not found error when I typed the command.
Solution:
1) The Mount/system directory can be read and written.
> Adb shell
# Mount-o remount, rw-t yaffs2/dev/block/mtdblock3/system
2) push sqlite3 to the device
> Adb push sqlite3/system/xbin
3) Modify permissions
# Chomd 4755/system/xbin/sqlite3
// Very important test: Execute sqlite3 to check whether it can be executed. If it cannot be executed, push the dependent library file of sqlite3 to the device, if sqlite3 can be executed normally, you do not need to push libncurses. so (this library file is extracted from 2.3.5 and cannot be used. It is available on 4.0.3. if you do not want to use it, you can create your own virtual machine and extract it from the virtual machine)
# Sqlite3
> Adb push libncurses. so/system/lib
4) Restore/system to read-only
# Mount-o remount, ro-t yaffs2/dev/block/mtdblock3/system
Note: The related files are in the compressed package.
Download: http://www.bkjia.com/uploadfile/2012/0410/20120410110318587.rar
Have fun :)
From ticket