commit 58dd60c7645e7e98611ef6dad3d8916d215f6362 Author: Subhamoy Biswas Date: Sat Jul 29 20:00:18 2023 +0530 first release diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e651bf2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/temp +README.txt \ No newline at end of file diff --git a/CREATE_LOGO.bat b/CREATE_LOGO.bat new file mode 100644 index 0000000..92fc5b3 --- /dev/null +++ b/CREATE_LOGO.bat @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..ccf1064 --- /dev/null +++ b/README.md @@ -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!

+[![status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat)](https://github.com/neosubhamoy/poco-x3-pro-custom-logo-image-maker/) +[![release verion](https://img.shields.io/badge/release-v1.1.0-yellow.svg?style=flat)](https://github.com/neosubhamoy/poco-x3-pro-custom-logo-image-maker/releases/) +

+ +**🌟 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 - ** Don't Use For Other Devices ** +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:**
+This tool is based on **Xiaomi Snapdragon Series Splash Logo Image Maker Tool** by **GokulNC**
+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)) +
+
+ +*** +An Open Sourced Project - Developed with ❤️ by **Subhamoy** \ No newline at end of file diff --git a/bin/7za.dll b/bin/7za.dll new file mode 100644 index 0000000..d13a1df Binary files /dev/null and b/bin/7za.dll differ diff --git a/bin/7za.exe b/bin/7za.exe new file mode 100644 index 0000000..8a54598 Binary files /dev/null and b/bin/7za.exe differ diff --git a/bin/New_Logo.zip b/bin/New_Logo.zip new file mode 100644 index 0000000..d6ec6c3 Binary files /dev/null and b/bin/New_Logo.zip differ diff --git a/bin/ffmpeg.exe b/bin/ffmpeg.exe new file mode 100644 index 0000000..801af25 Binary files /dev/null and b/bin/ffmpeg.exe differ diff --git a/bin/footer.bin b/bin/footer.bin new file mode 100644 index 0000000..30335a8 Binary files /dev/null and b/bin/footer.bin differ diff --git a/bin/header.bin b/bin/header.bin new file mode 100644 index 0000000..62a298b Binary files /dev/null and b/bin/header.bin differ diff --git a/pics/fastboot.bmp b/pics/fastboot.bmp new file mode 100644 index 0000000..8f39527 Binary files /dev/null and b/pics/fastboot.bmp differ diff --git a/pics/logo.bmp b/pics/logo.bmp new file mode 100644 index 0000000..4f290d0 Binary files /dev/null and b/pics/logo.bmp differ diff --git a/pics/system_corrupt.bmp b/pics/system_corrupt.bmp new file mode 100644 index 0000000..cd94088 Binary files /dev/null and b/pics/system_corrupt.bmp differ diff --git a/stock/logos/logo_0.bmp b/stock/logos/logo_0.bmp new file mode 100644 index 0000000..4f290d0 Binary files /dev/null and b/stock/logos/logo_0.bmp differ diff --git a/stock/logos/logo_1.bmp b/stock/logos/logo_1.bmp new file mode 100644 index 0000000..8f39527 Binary files /dev/null and b/stock/logos/logo_1.bmp differ diff --git a/stock/logos/logo_2.bmp b/stock/logos/logo_2.bmp new file mode 100644 index 0000000..2e5ba14 Binary files /dev/null and b/stock/logos/logo_2.bmp differ diff --git a/stock/logos/logo_3.bmp b/stock/logos/logo_3.bmp new file mode 100644 index 0000000..cd94088 Binary files /dev/null and b/stock/logos/logo_3.bmp differ diff --git a/stock/logos/new_fastboot_logo(extra).bmp b/stock/logos/new_fastboot_logo(extra).bmp new file mode 100644 index 0000000..4a2335f Binary files /dev/null and b/stock/logos/new_fastboot_logo(extra).bmp differ diff --git a/stock/stock_logo.img b/stock/stock_logo.img new file mode 100644 index 0000000..fd8d63b Binary files /dev/null and b/stock/stock_logo.img differ diff --git a/stock/stock_logo.zip b/stock/stock_logo.zip new file mode 100644 index 0000000..9c7999b Binary files /dev/null and b/stock/stock_logo.zip differ