Parse MediaTek LK ("Little-Kernel") Images (lk.bin).
This binary requires Python 3.9 or newer installed on your system. It currently supports Windows, Linux and MacOS architectures.
lk_parser.py <input_file>
<input_file>
= input, lk.bin
This is a simple example on a Linux system:
r0rt1z2@r0rt1z2: /lk_parser$ python3 lk_parser.py lk.bin
[?] Image size (from header): 286424 bytes
[?] Image name (from header): lk
[?] LK version: 0.5
[?] Command Line: console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=496M androidboot.hardware=mt6580
[?] Platform: MT6580
[?] Product: D5270_ARCHOS_E1
[?] Needs unlock code: False
[?] Uses verified boot: True
[?] Factory reset protection (FRP): True
[?] FOTA support: False
[?] Available OEM commands: ['fastboot oem p2u', 'fastboot oem reboot-recovery', 'fastboot oem append-cmdline', 'fastboot oem off-mode-charge', 'fastboot oem unlock', 'fastboot oem lock', 'fastboot oem key', 'fastboot oem lks', 'fastboot oem ap_jtag']
[?] LK ATAGs: ['atag,boot', 'atag,mem', 'atag,vcore_dvfs', 'atag,dfo', 'atag,meta', 'atag,devinfo', 'atag,videolfb', 'atag,mdinfo', 'atag,ptp', 'atag,masp', 'atag,cmdline']
r0rt1z2@r0rt1z2: /lk_parser$
- This program is licensed under the GNU General Public License (v3). See
LICENSE
for details.