cd /home/$USER/X8_root
unzip SuperOneClick<version>.zip
cd SuperOneClick<version>/ADB
For simplicity do:
ln -s adblinux adb
chmod +x adblinux
Now switch on your phones USB Debugging mode (Settings --> Applications --> Development --> USB Debugging)
adb kill-server (you must do this to kill the user started server)
sudo adb start-server
Or you can basically do any adb command with sudo to start it. I typically use:
sudo adb devices
adb push ../Exploits/psneuter /data/local/tmp/psneuter
adb push ../Root/su-v2 /data/local/tmp/su # See Note 1 below
adb push ../Root/Superuser.apk /data/local/tmp/superuser.apk
adb shell
cd /data/local/tmp
chmod 755 psneuter
./psneuter
Once this has run, the adb shell will close and you'll need to reconnect;
adb shell
cd /data/local/tmp
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
cat su > /system/bin/su
cat superuser.apk > /system/app/superuser.apk
chmod 06777 /system/bin/su
chmod 777 /system/app/superuser.apk
reboot
# See Note 2 below
Assuming all went well, your phone is now rooted. When it reboots, you
should see a new menu item called "Superuser". The easiest way to check
that you've gained root access (as you'll probably need to install this
anyway) is to access Android Market and install BusyBox. Once it's
downloaded, run the BusyBox Installer app from your menu and follow the
instructions, it'll soon tell you if you don't have root!su
On these pages I had
visitors.