WolfLeader116

Android 7.0 Easter Egg Backup/Restoration

May 9th, 2017
1,054
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Backup Script:
  2.  
  3. @ECHO OFF
  4. set ABS_PATH=%CD%
  5. set /p prefix="Enter data prefix: "
  6. for /f "skip=1" %%x in ('wmic os get localdatetime') do if not defined MyDate set MyDate=%%x
  7. set date=%MyDate:~0,4%%MyDate:~4,2%%MyDate:~6,2%
  8. echo Backing up data to %ABS_PATH%\%prefix%_%date%.ab...
  9. adb backup -f %ABS_PATH%\%prefix%_%date%.ab com.android.egg -system
  10.  
  11.  
  12.  
  13. Restore Script:
  14.  
  15. @ECHO OFF
  16. set ABS_PATH=%CD%
  17. set /p prefix="Enter data prefix: "
  18. set /p date="Enter date in YYYYMMDD format: "
  19. echo Restoring data from %ABS_PATH%\%prefix%_%date%.ab...
  20. adb restore %ABS_PATH%\%prefix%_%date%.ab
RAW Paste Data