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
clear
echo "This will install TWRP onto the laf partition of your phone."
echo "This will install TWRP and root your phone."
echo
echo "You do NOT need to do ANYTHING unless you are asked to."
echo
echo "Sit back and wait until your phone has completely booted back into the OS."
echo
echo "If it fails, NO damage is done to your phone."
echo
......@@ -66,10 +70,9 @@ function flash () {
./lglaf.py -c '!CLSE '$FD_NUM
rm ${TWRPTMP} > /dev/null 2>&1
rm ${TWRPTEST} > /dev/null 2>&1
./lglaf.py -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 ./step2.sh"
./lglaf.py -c '!CTRL POFF'
exit
echo "Once TWRP loads, run step2.sh"
}
flash
......@@ -13,6 +13,7 @@ else
fi
echo "Unmounting data"
adb shell umount /data
adb shell umount /sdcard
echo
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
echo "Mounting system r/w"
adb shell mount /system
adb shell mount -o rw /system
echo
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
echo "Making sure recovery sticks"
adb shell rm /system/recovery-from-boot.p
adb shell rm /system/recovery-from-boot.p.bak
echo
echo "Rooting your phone!"
echo "Your phone will reboot back into the OS once rooted."
adb push Magisk-v16.0.zip /sdcard/
adb shell echo ""--update_package=/sdcard/Magisk-v16.0.zip" > /cache/recovery/command"
adb push Magisk-v16.0.zip /cache/recovery
adb shell echo ""--update_package=/cache/recovery/Magisk-v16.0.zip" > /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