Skip to content

Commit 2e36601

Browse files
committed
improve backup
1 parent ee390e2 commit 2e36601

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

files/loki/loki.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ if [ ! -f "$recovery_img" ] ; then
1313
exit 1
1414
fi
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-
2116
mkdir -p $C
2217
dd 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

runme.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ exit /b
5252
:backup
5353
echo start backup
5454
%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/backup.sh
55-
55+
mkdir %~dp0backups
56+
adb pull /sdcard/backup/ "%~dp0backups"
5657
exit /b
5758

5859

5960
:install_recovery
6061
echo 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

6464
exit /b
6565

0 commit comments

Comments
 (0)