Skip to content

Add lk.img binary analysis: fastboot commands, OEM commands, valid values & inputs#3

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/analyze-lk-img-binary
Draft

Add lk.img binary analysis: fastboot commands, OEM commands, valid values & inputs#3
Copilot wants to merge 2 commits intomainfrom
copilot/analyze-lk-img-binary

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 12, 2026

Binary analysis of the MT6768 LK bootloader image extracting all fastboot/OEM commands with their valid input values and configuration parameters.

New files

  • docs/LK_IMG_FASTBOOT_ANALYSIS.md — Complete reference of extracted commands:

    • 13 fastboot protocol commands with input formats
    • 44 OEM commands with exact valid values (e.g., oem p2u on|off, oem off-mode-charge 0|1, oem mrdump-output-set usb|null|ext4|blkpart|none|partition, oem mrdump-file-allocate fullmem|halfmem|0)
    • 30 getvar variables with return types
    • 28+ partitions with A/B slot variants and flash formats
    • Verified boot states, boot modes, security warnings
  • Tools/lk_img_analyzer.py — Reusable script to extract fastboot commands from any MTK LK image

python3 Tools/lk_img_analyzer.py <path-to-lk.img>

Analysis method

Strings extracted from the ARM32 binary at the v3 release, cross-referenced with MTK LK fastboot handler patterns to identify command registrations, valid input values, and return types. Vendor-specific Tinno customizations (carrier config, wallpaper, barcode, battery dates) documented separately from standard MTK OEM commands.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

… inputs

Co-authored-by: Eduardob3677 <212653915+Eduardob3677@users.noreply.github.com>
Copilot AI changed the title [WIP] Extract fastboot commands and valid configuration values from lk.img Add lk.img binary analysis: fastboot commands, OEM commands, valid values & inputs Feb 12, 2026
Copilot AI requested a review from Eduardob3677 February 12, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants