Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Pavelol Splash Flasher
- :: File: Splash Flasher By Pavelol.bat
- @echo off
- color 0b
- title Splash Flasher
- cls
- :start
- echo -----------------------------------------------------
- echo Splash Flasher For The HTC One M8 By Pavelol
- echo -----------------------------------------------------
- echo 1. I want to flash my image as splash to my device ;)
- echo 2. I already have a splash.img i just want to flash it.
- echo 3. I want to backup my current splash.
- echo 4. I don't know how i got here, i want to quit ;(
- set /p choice=
- if '%choice%'=='1' goto begin full process
- if '%choice%'=='2' goto push splash
- if '%choice%'=='3' goto backup splash
- if '%choice%'=='4' goto exit process
- cls
- echo ---------------------------------------
- echo Are you drunk? there isn't such choice: %choice%
- echo ---------------------------------------
- echo.
- goto start
- pause
- :begin full process
- echo ----------------------------------------------------------------------
- echo Place your intended splash to the root of the script folder.
- echo Now rename your intended splash to splash :)
- echo.
- echo (Don't forget! your splash should be formated as BMP and 24 Bit Depth)
- echo ----------------------------------------------------------------------
- echo.
- echo.
- echo.
- echo -----------------------------------------------------------------------
- echo when you finished that, hit any key to start a process which convert
- echo your's splash.bmp to a splash.img
- echo -----------------------------------------------------------------------
- pause
- tools\nbimg -F splash.bmp -w 1080 -h 1920
- REN splash.bmp.nb splash1.img
- move splash1.img flash
- xcopy tools\android-info.txt flash
- tools\7za a -tzip splash.zip .\flash\*
- del flash\*.* /q
- move splash.zip flash
- cls
- echo.
- echo.
- echo -----------------------------------------------------------------
- echo Now i will reboot your phone into fastboot and i will flash it ;)
- echo -----------------------------------------------------------------
- pause
- tools\adb kill-server
- tools\adb reboot bootloader
- ping -n 10 127.0.0.1>nul
- tools\fastboot oem rebootRUU
- ping -n 15 127.0.0.1>nul
- tools\fastboot flash zip flash\splash.zip
- cls
- echo.
- echo.
- echo ---------------------------------------------------------------------
- echo Actually I have done with you...
- echo Press any key to reboot the device and to close this annoying window
- echo ---------------------------------------------------------------------
- pause
- tools\fastboot reboot
- goto end
- exit
- :push splash
- echo -----------------------------------------------------------------------
- echo Place your intended splash.img to the root of the script folder.
- echo Now rename your intended splash to splash :)
- echo.
- echo.
- echo (Don't forget! if you choose this option your splash is already formated
- echo as splash.img)
- echo -----------------------------------------------------------------------
- echo.
- echo.
- echo.
- echo ---------------------------------------------------------------
- echo when you finished that, hit any key to flash the splash
- echo ---------------------------------------------------------------
- pause
- REN splash.img splash1.img
- move splash1.img flash
- xcopy tools\android-info.txt flash
- tools\7za a -tzip splash.zip .\flash\*
- del flash\*.* /q
- move splash.zip flash
- tools\adb kill-server
- tools\adb reboot bootloader
- ping -n 10 127.0.0.1>nul
- tools\fastboot oem rebootRUU
- ping -n 15 127.0.0.1>nul
- tools\fastboot flash zip flash\splash.zip
- echo.
- echo.
- cls
- echo ---------------------------------------------------------------------
- echo Actually I have done with you...
- echo Press any key to reboot the device and to close this annoying window
- echo ---------------------------------------------------------------------
- pause
- tools\fastboot reboot
- goto end
- exit
- :backup splash
- tools\adb wait-for-device
- tools\adb shell dd if=/dev/block/mmcblk0p12 of=/mnt/sdcard/backup.img
- tools\adb pull /sdcard/backup.img backup
- tools\adb shell rm /sdcard/backup.img
- tools\ffmpeg -f rawvideo -pix_fmt rgb565 -s 1080x1920 -i backup\backup.img -f image2 backup\backup.png
- cls
- echo ---------------------------------------------------------------------
- echo Actually I have done with you...
- echo Press any key to exit
- echo ---------------------------------------------------------------------
- pause
- cls
- goto start
- :exit process
- goto end
- :end
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement