[How-To] Rooting LS670ZVD with GingerBreak (no reverting and OTA works too!)

If anyone is good at scripting I could really use some advice here, I'm trying to use what Drew has so kindly offered us and create a script that will just gain the temp root and reflash the recovery. This is what I have so far in my script, it fails after the gingerbreak exploit and basically says I don't have root (when I really do) I'm new to scripting and I've basically posted this on XDA as well with no replies yet, so if anyone has any tips let me know. I've basically copied and pasted my XDA post.

Here is my script I am using. I'm using Kubuntu 11.04 writing it in Kate, name of my script is Script2 and I'm executing it in bash via $sh Script2

echo "removing TMP directory";adb shell rm -r /data/local/tmp
echo "creating TMP directory";adb shell mkdir /data/local/tmp
echo "pushing gingerbreak";adb push gingerbreak /data/local/tmp/gingerbreak
echo "CD TMP";adb shell cd /data/local/tmp
echo "CHMOD TMP";adb shell chmod 777 /data/local/tmp/*
echo "running gingerbreak";adb shell /data/local/tmp/gingerbreak &
sleep 32
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system
adb shell cat /sdcard/flash_image > /system/bin/flash_image
adb shell chmod 755 /system/bin/flash_image
adb shell mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system
adb shell flash_image recovery /sdcard/xionia_cwma_12518.6.img
adb shell reboot recovery

I've tried with out sleep command and also with out "&" at the end of gingerbreak, and when I do that and it returns # it seems like no commands will work, even if I type them in it returns just a blank line with out #.

With that current script after sleep 32, it returns #, few seconds later it tries to mount and I get (including the end of gingerbreak exploit).

[!] dance forever my only one
# mount: Operation not permitted
Script2: 9: cannot create /system/bin/flash_image: Directory nonexistent
Unable to chmod /system/bin/flash_image Read-only file system
mount -o: permission denied
reboot: Operation not permitted

then it returns me to bash$

Thanks!
 
Thank you for this!!!

I've been wanting to root my Optimus S for a while - and now it's a backup phone so I really want ot play! :)_
 
Thanks for the extensive guide

Thanks for this very extensive information it is much appreciated. I tried Z4root since it worked with my Droid x prior to finding this thread . Big help thanks again to all who contributed.

BK
 
Thank You:)

I just wanted to say thank you to the people providing their time in these forums. The information offered here is truly helpful, very well organized, and very much appreciated. Thank you all...
 

Latest posts

Trending Posts

Forum statistics

Threads
956,592
Messages
6,968,991
Members
3,163,581
Latest member
Adamsapple