Download SuperOneClick from cnet
You will need adnroid sdk tools, I am using version 10
A rooted RAZR Maxx with ICS
Turn on "USB Debugging" on your phone.
Copy sqlite3 binary from the SuperOneClick package above to the SD Card of your phone.
The open a command window and change directory to wherever you have extracted the sdk tools zipped file.
Then run the following commands
adb shell
su
mount -o remount,rw -t yaffs2 /dev/mtdblock3 /system
cp /mnt/sdcard-ext/sqlite3 /system/bin
chmod 4755 /system/bin/sqlite3
mount -o remount,ro -t yaffs2 /dev/mtdblock3 /system
.. and you are done.
I needed to do this to use sqlite to turn on the Mobile Hotspot on my phone.
You will need adnroid sdk tools, I am using version 10
A rooted RAZR Maxx with ICS
Turn on "USB Debugging" on your phone.
Copy sqlite3 binary from the SuperOneClick package above to the SD Card of your phone.
The open a command window and change directory to wherever you have extracted the sdk tools zipped file.
Then run the following commands
adb shell
su
mount -o remount,rw -t yaffs2 /dev/mtdblock3 /system
cp /mnt/sdcard-ext/sqlite3 /system/bin
chmod 4755 /system/bin/sqlite3
mount -o remount,ro -t yaffs2 /dev/mtdblock3 /system
.. and you are done.
I needed to do this to use sqlite to turn on the Mobile Hotspot on my phone.
1 comment:
For those looking how to hack using SQLite CLI (Command Line Interface) with adb shell in any Android device:
How to build the sqlite3 binary and library yourself.
I have put together some build scripts to compile SQLite for Android Native Code using the Android NDK. It builds the SQLite CLI in two versions: Statically and Dynamically Linked, as well as it's Static and Shared Libraries. You may get the scripts from my GitHub and build the binaries yourself:
https://github.com/stockrt/sqlite3-android
Hope this will be useful for someone.
Post a Comment