Advertisement
hayabusa2

bootanimationflasher for huaweip10lite was-lx2j

Jul 11th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo off
  2. cls
  3.  
  4. echo ========================================================================
  5. echo;
  6. echo  bootanimation flasher for TWRP with Huawei P10 lite ( WAS-LX2J )
  7. echo;
  8. echo ========================================================================
  9.  
  10. :devicedetect
  11. rem if you have some error like "error : unknown service",delete this section
  12. echo waiting for device...
  13. adb wait-for-recovery
  14. set echk=%errorlevel%
  15. set next=mkdir
  16. goto errchk
  17.  
  18. :mkdir
  19. echo making directory /cust ...
  20. adb shell mkdir /cust
  21. set echk=%errorlevel%
  22. set next=mountcust
  23. rem goto errchk
  24.  
  25. :mountcust
  26. echo mounting cust ...
  27. adb shell mount -rw /dev/block/bootdevice/by-name/cust /cust
  28. set echk=%errorlevel%
  29. set next=bootanim
  30. rem goto errchk
  31.  
  32. :bootanim
  33. echo copying bootanimation...
  34. adb push bootanimation.zip /cust/hw/jp/media
  35. set echk=%errorlevel%
  36. set next=alldone
  37. goto errchk
  38.  
  39. :alldone
  40. echo all done! press any key to exit
  41. pause > nul
  42. exit
  43.  
  44. :errchk
  45. if %echk%==0 (
  46. echo OK
  47. goto %next%
  48. ) else (
  49. echo error!(errorlevel=%echk%)
  50. pause
  51. exit 1
  52. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement