Commit bc80a64a authored by William Swango's avatar William Swango

Some updates

parent 57f4a8e4
......@@ -2,7 +2,11 @@
# Cheesy wrapper script to help n00bs till I can finish lglaf
echo "This will install TWRP onto the laf partition of your phone."
echo "This will install TWRP and root your phone."
echo "You do NOT need to do ANYTHING unless you are asked to."
echo "Sit back and wait until your phone has completely booted back into the OS."
echo "If it fails, NO damage is done to your phone."
......@@ -66,10 +70,9 @@ function flash () {
./ -c '!CLSE '$FD_NUM
rm ${TWRPTMP} > /dev/null 2>&1
rm ${TWRPTEST} > /dev/null 2>&1
./ -c '!CTRL POFF'
echo "Flash sucessful! Unplug your USB cable and your phone will power off."
echo "Once your phone is off, go back into download mode - hold vol up and plug the USB cable back in."
echo "Wait until TWRP has fully booted, and then run ./"
./ -c '!CTRL POFF'
echo "Once TWRP loads, run"
......@@ -13,6 +13,7 @@ else
echo "Unmounting data"
adb shell umount /data
adb shell umount /sdcard
echo "Formatting data"
adb shell mkfs.ext2 /dev/block/bootdevice/by-name/userdata
......@@ -21,7 +22,7 @@ echo "Mounting data"
adb shell mount /data
echo "Mounting system r/w"
adb shell mount /system
adb shell mount -o rw /system
echo "Installing TWRP onto recovery"
adb push h918-twrp.img /sdcard/
......@@ -29,12 +30,11 @@ adb shell dd if=/sdcard/h918-twrp.img of=/dev/block/bootdevice/by-name/recovery
echo "Making sure recovery sticks"
adb shell rm /system/recovery-from-boot.p
adb shell rm /system/recovery-from-boot.p.bak
echo "Rooting your phone!"
echo "Your phone will reboot back into the OS once rooted."
adb push /sdcard/
adb shell echo ""--update_package=/sdcard/" > /cache/recovery/command"
adb push /cache/recovery
adb shell echo ""--update_package=/cache/recovery/" > /cache/recovery/command"
echo "Rebooting. Do NOT shut off your phone until it is back in the OS."
echo "Enjoy your rooted phone!"
adb reboot recovery
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment