Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo off
- cls
- echo ========================================================================
- echo;
- echo bootanimation flasher for TWRP with Huawei P10 lite ( WAS-LX2J )
- echo;
- echo ========================================================================
- :devicedetect
- rem if you have some error like "error : unknown service",delete this section
- echo waiting for device...
- adb wait-for-recovery
- set echk=%errorlevel%
- set next=mkdir
- goto errchk
- :mkdir
- echo making directory /cust ...
- adb shell mkdir /cust
- set echk=%errorlevel%
- set next=mountcust
- rem goto errchk
- :mountcust
- echo mounting cust ...
- adb shell mount -rw /dev/block/bootdevice/by-name/cust /cust
- set echk=%errorlevel%
- set next=bootanim
- rem goto errchk
- :bootanim
- echo copying bootanimation...
- adb push bootanimation.zip /cust/hw/jp/media
- set echk=%errorlevel%
- set next=alldone
- goto errchk
- :alldone
- echo all done! press any key to exit
- pause > nul
- exit
- :errchk
- if %echk%==0 (
- echo OK
- goto %next%
- ) else (
- echo error!(errorlevel=%echk%)
- pause
- exit 1
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement