Thursday, August 16, 2012

Installing sqlite3 binary on Android RAZR MAXX (Running ICS)

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
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:

Rogério Schneider said...

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:

Hope this will be useful for someone.