first release
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/temp
|
||||
README.txt
|
||||
94
CREATE_LOGO.bat
Normal file
@@ -0,0 +1,94 @@
|
||||
:: Created By neo_subhamoy (Contact me @ https://neosubhamoy.xyz)
|
||||
:: Created By Gokul NC (Contact me @ https://about.me/GokulNC )
|
||||
:: Created By Pzqqt (Contact me @ https://t.me/Pzqqt )
|
||||
:: WARNING: DO NOT MODIFY THIS SCRIPT UNLESS YOU KNOW WHAT YOU'RE DOING!
|
||||
|
||||
:: This is for POCO X3 Pro (vayu) device only, please do not try on other devices..
|
||||
:: For other devices: http://forum.xda-developers.com/android/software-hacking/guide-how-to-create-custom-boot-logo-t3470473
|
||||
|
||||
@echo off
|
||||
echo.
|
||||
echo.#--------------------------------------------------#
|
||||
echo.# POCO X3 Pro (vayu) Logo Image Maker #
|
||||
echo.# #
|
||||
echo.# By ** neo_subhamoy ^& Gokul NC ^& Pzqqt ** #
|
||||
echo.#--------------------------------------------------#
|
||||
echo.
|
||||
echo.
|
||||
echo.Creating logo.img ........
|
||||
echo.
|
||||
echo.
|
||||
echo.
|
||||
|
||||
set output_file=logo.img
|
||||
set output_file_path=output\%output_file%
|
||||
|
||||
set output_zip=flashable_logo.zip
|
||||
set output_zip_path=output\%output_zip%
|
||||
|
||||
setlocal
|
||||
if not exist "output\" mkdir "output\"
|
||||
if not exist "temp\" ( mkdir "temp\"& attrib /S /D +h "temp" )
|
||||
del /Q temp\* 2>NUL
|
||||
del /Q %output_file_path% 2>NUL
|
||||
del /Q %output_zip_path% 2>NUL
|
||||
|
||||
set resolution=1080x2400
|
||||
|
||||
:VERIFY_FILES
|
||||
set logo_path="not_found"
|
||||
if exist "pics\logo.jpg" set logo_path="pics\logo.jpg"
|
||||
if exist "pics\logo.jpeg" set logo_path="pics\logo.jpeg"
|
||||
if exist "pics\logo.png" set logo_path="pics\logo.png"
|
||||
if exist "pics\logo.gif" set logo_path="pics\logo.gif"
|
||||
if exist "pics\logo.bmp" set logo_path="pics\logo.bmp"
|
||||
if %logo_path%=="not_found" echo.logo picture not found in 'pics' folder.. EXITING&echo.&echo.&pause&exit
|
||||
|
||||
set fastboot_path="not_found"
|
||||
if exist "pics\fastboot.jpg" set fastboot_path="pics\fastboot.jpg"
|
||||
if exist "pics\fastboot.jpeg" set fastboot_path="pics\fastboot.jpeg"
|
||||
if exist "pics\fastboot.png" set fastboot_path="pics\fastboot.png"
|
||||
if exist "pics\fastboot.gif" set fastboot_path="pics\fastboot.gif"
|
||||
if exist "pics\fastboot.bmp" set fastboot_path="pics\fastboot.bmp"
|
||||
if %fastboot_path%=="not_found" echo.fastboot picture not found in 'pics' folder.. EXITING&echo.&echo.&pause&exit
|
||||
|
||||
set system_corrupt_path="not_found"
|
||||
if exist "pics\system_corrupt.jpg" set system_corrupt_path="pics\system_corrupt.jpg"
|
||||
if exist "pics\system_corrupt.jpeg" set system_corrupt_path="pics\system_corrupt.jpeg"
|
||||
if exist "pics\system_corrupt.png" set system_corrupt_path="pics\system_corrupt.png"
|
||||
if exist "pics\system_corrupt.gif" set system_corrupt_path="pics\system_corrupt.gif"
|
||||
if exist "pics\system_corrupt.bmp" set system_corrupt_path="pics\system_corrupt.bmp"
|
||||
if %system_corrupt_path%=="not_found" echo.system_corrupt picture not found in 'pics' folder.. EXITING&echo.&echo.&pause&exit
|
||||
|
||||
:: Create BMP
|
||||
bin\ffmpeg.exe -hide_banner -loglevel quiet -i %logo_path% -pix_fmt rgb24 -s %resolution% -y "temp\logo_1.bmp" > NUL
|
||||
bin\ffmpeg.exe -hide_banner -loglevel quiet -i %fastboot_path% -pix_fmt rgb24 -s %resolution% -y "temp\logo_2.bmp" > NUL
|
||||
bin\ffmpeg.exe -hide_banner -loglevel quiet -i %logo_path% -pix_fmt rgb24 -s %resolution% -y "temp\logo_3.bmp" > NUL
|
||||
bin\ffmpeg.exe -hide_banner -loglevel quiet -i %system_corrupt_path% -pix_fmt rgb24 -s %resolution% -y "temp\logo_4.bmp" > NUL
|
||||
|
||||
|
||||
:: Create the full logo.img by concatenating header and all BMP files
|
||||
copy /b "bin\header.bin"+"temp\logo_1.bmp"+"bin\footer.bin"+"temp\logo_2.bmp"+"bin\footer.bin"+"temp\logo_3.bmp"+"bin\footer.bin"+"temp\logo_4.bmp"+"bin\footer.bin" %output_file_path% >NUL
|
||||
|
||||
if exist %output_file_path% ( echo.SUCCESS! &echo.%output_file% created in "output" folder
|
||||
) else ( echo.PROCESS FAILED.. Try Again&echo.&echo.&pause&exit )
|
||||
|
||||
echo.&echo.&set /P INPUT=Do you want to create a flashable zip? [yes/no]
|
||||
If /I "%INPUT%"=="y" goto :CREATE_ZIP
|
||||
If /I "%INPUT%"=="yes" goto :CREATE_ZIP
|
||||
|
||||
echo.&echo.&echo Flashable ZIP not created..&echo.&echo.&pause&exit
|
||||
|
||||
:CREATE_ZIP
|
||||
copy /Y bin\New_Logo.zip %output_zip_path% >NUL
|
||||
cd output
|
||||
..\bin\7za a %output_zip% %output_file% >NUL
|
||||
cd..
|
||||
|
||||
if exist %output_zip_path% (
|
||||
echo.&echo.&echo.SUCCESS!
|
||||
echo.Flashable zip file created in "output" folder
|
||||
echo.You can flash the '%output_zip%' from any custom recovery like TWRP/OrangeFox
|
||||
) else ( echo.&echo.&echo Flashable ZIP not created.. )
|
||||
|
||||
echo.&echo.&pause&exit
|
||||
54
README.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# Custom Logo Image Maker Tool for POCO X3 Pro
|
||||
|
||||
### A simple to use CLI Tool to Create Custom Splash Screen / Boot Logo for your POCO X3 Pro (vayu) device!<br></br>
|
||||
[](https://github.com/neosubhamoy/poco-x3-pro-custom-logo-image-maker/)
|
||||
[](https://github.com/neosubhamoy/poco-x3-pro-custom-logo-image-maker/releases/)
|
||||
<br></br>
|
||||
|
||||
**🌟 Highlights:**
|
||||
1. Really Simple To Use (1-click-process)
|
||||
2. Both 'logo.img' & Recovery Flashable ZIP file Support
|
||||
3. Auto .bmp Format Conversion (Multi File Format Support - .bmp, .jpg, .jpeg, .png, .gif)
|
||||
4. Quick Restore (Revert back to default POCO logo)
|
||||
|
||||
**✔️ Compatibility:**
|
||||
1. DEVICE: POCO X3 Pro (vayu/bhima) - Tested on both Global and Indian variants - <span style='color:#fc4454'>** Don't Use For Other Devices **</span>
|
||||
2. ROM: Any Android 11+ AOSP/MIUI based ROM
|
||||
3. PLATFORM: Currently this tool only works on Windows (Linux & Android support coming soon...!!)
|
||||
4. LANGUAGE: ENG (US)
|
||||
|
||||
**⚡ Pre-Requirements:**
|
||||
1. UNLOCKED Device Bootloader
|
||||
2. Any Custom Recovery (TWRP/OrangeFox) is Installed (Optional - if you don't want to flash the recovery flashable zip file)
|
||||
|
||||
**⚙️ How To Use:**
|
||||
1. Read this detailed [How To Use Guide on XDA Forums](https://forum.xda-developers.com/t/xiaomi-poco-x3-pro.12163/)
|
||||
|
||||
**⚠️ DISCLAIMER:**
|
||||
|
||||
```code
|
||||
!!! USE THIS TOOL AT YOUR OWN RESPONSIBILITY !!!
|
||||
|
||||
* Your warranty is now void.
|
||||
|
||||
*
|
||||
|
||||
* I'm not responsible for bricked devices, dead SD cards,
|
||||
|
||||
* thermonuclear war, or you getting fired because the alarm app failed. Please
|
||||
|
||||
* do some research if you have any concerns about features included in this script
|
||||
|
||||
* before flashing it! YOU are choosing to make these modifications, and if
|
||||
|
||||
* you point the finger at me for messing up your device, I will laugh at you.
|
||||
```
|
||||
|
||||
**✨ CREDITS:**<br>
|
||||
This tool is based on **Xiaomi Snapdragon Series Splash Logo Image Maker Tool** by **GokulNC**<br>
|
||||
Special Thanks to **GokulNC** & **Pzqqt** (for [Sources](https://forum.xda-developers.com/t/guide-how-to-change-boot-logo-splash-screen-for-snapdragon-devices-splash-img.3470473/#post-68896881))
|
||||
<br>
|
||||
<br>
|
||||
|
||||
***
|
||||
An Open Sourced Project - Developed with ❤️ by **Subhamoy**
|
||||
BIN
bin/7za.dll
Normal file
BIN
bin/7za.exe
Normal file
BIN
bin/New_Logo.zip
Normal file
BIN
bin/ffmpeg.exe
Normal file
BIN
bin/footer.bin
Normal file
BIN
bin/header.bin
Normal file
BIN
pics/fastboot.bmp
Normal file
|
After Width: | Height: | Size: 7.4 MiB |
BIN
pics/logo.bmp
Normal file
|
After Width: | Height: | Size: 7.4 MiB |
BIN
pics/system_corrupt.bmp
Normal file
|
After Width: | Height: | Size: 7.4 MiB |
BIN
stock/logos/logo_0.bmp
Normal file
|
After Width: | Height: | Size: 7.4 MiB |
BIN
stock/logos/logo_1.bmp
Normal file
|
After Width: | Height: | Size: 7.4 MiB |
BIN
stock/logos/logo_2.bmp
Normal file
|
After Width: | Height: | Size: 7.4 MiB |
BIN
stock/logos/logo_3.bmp
Normal file
|
After Width: | Height: | Size: 7.4 MiB |
BIN
stock/logos/new_fastboot_logo(extra).bmp
Normal file
|
After Width: | Height: | Size: 7.2 MiB |