-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
48 lines (38 loc) · 1.5 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cd files
adb kill-server
adb start-server
adb wait-for-device
echo ""
echo "Device Detected!"
echo ""
adb devices
echo ""
echo "Cleaning up for fresh install ..."
echo ""
adb shell "rm -rf /data/local/tmp/mm_twrp_recovery_install"
echo ""
echo "Installing ..."
echo ""
adb shell "mkdir /data/local/tmp/mm_twrp_recovery_install"
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install"
adb push boot_twrp_recovery.sh /data/local/tmp/mm_twrp_recovery_install
adb push busybox /data/local/tmp/mm_twrp_recovery_install
adb push byeselinux.ko /data/local/tmp/mm_twrp_recovery_install
adb push chargemon.sh /data/local/tmp/mm_twrp_recovery_install
adb push install_twrp_recovery.sh /data/local/tmp/mm_twrp_recovery_install
adb push iovyroot /data/local/tmp/mm_twrp_recovery_install
adb push modulecrcpatch /data/local/tmp/mm_twrp_recovery_install
adb push recovery.twrp.cpio.lzma /data/local/tmp/mm_twrp_recovery_install
adb push wp_mod.ko /data/local/tmp/mm_twrp_recovery_install
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install/busybox"
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh"
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install/iovyroot"
adb shell "chmod 755 /data/local/tmp/mm_twrp_recovery_install/modulecrcpatch"
adb shell "/data/local/tmp/mm_twrp_recovery_install/iovyroot /data/local/tmp/mm_twrp_recovery_install/install_twrp_recovery.sh"
echo ""
echo "Finished!"
echo ""
echo "Rebooting into TWRP recovery ..."
adb reboot
adb kill-server
echo ""