Skip to content

modlk πŸ”§: Hex-patch LK images to remove boot warnings ⚠️ and flash via fastboot πŸš€ β€” optimized for MTK devices πŸ“±

License

Notifications You must be signed in to change notification settings

pro-grammer-SD/modlk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

modlk πŸ”§

Hex-patch LK images to remove boot warnings ⚠️ and flash via fastboot πŸš€ β€” optimized for MTK devices πŸ“±.


Features ✨

  • Automatically patches lk.img to remove Orange/Red State boot warnings.
  • Saves the patched image as lkmod.img (or custom output).
  • Reboots device into bootloader and flashes patched image via fastboot.
  • Fully Windows-friendly, downloads platform-tools automatically if missing.
  • Especially useful for MTK devices πŸ“±.

Installation πŸ› οΈ

  1. Make sure you have Python 3 installed.
  2. Clone this repository:
git clone https://github.com/yourusername/modlk.git
cd modlk
  1. Optionally, add the folder to your PATH to run modlk from anywhere.

Usage πŸš€

python modlk.py [src_image] [--output OUTPUT]
  • src_image (optional) - Source LK image (default: lk.img).
  • --output / -o (optional) - Output patched image name (default: lkmod.img).

Examples πŸ’‘

Patch default lk.img:

python modlk.py

Patch a custom LK image and set output name:

python modlk.py mylk.img --output mylkmod.img

Notes ⚠️

  • Requires a connected device with USB debugging enabled.
  • Automatically reboots your device into bootloader and flashes patched image.
  • Ensure adb/fastboot are working or let the script download platform-tools.
  • Use at your own risk. Make sure you have backups of original images.

License πŸ“„

MIT License

About

modlk πŸ”§: Hex-patch LK images to remove boot warnings ⚠️ and flash via fastboot πŸš€ β€” optimized for MTK devices πŸ“±

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages