File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,11 +13,6 @@ if [ ! -f "$recovery_img" ] ; then
1313 exit 1
1414fi
1515
16- if [ ! -f /sdcard/recovery_org.img ] ; then
17- dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/sdcard/recovery_org.img
18- fi
19-
20-
2116mkdir -p $C
2217dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=$C /aboot.img
2318$C /loki_tool patch recovery $C /aboot.img $recovery_img $C /recovery.lok || exit 1
Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ exit /b
5252:backup
5353echo start backup
5454%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/backup.sh
55-
55+ mkdir %~dp0 backups
56+ adb pull /sdcard/backup/ " %~dp0 backups"
5657exit /b
5758
5859
5960:install_recovery
6061echo start instrall recovery
6162%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/loki/loki.sh
62- %adb% pull /sdcard/recovery_org.img
6363
6464exit /b
6565
You can’t perform that action at this time.
0 commit comments