Skip to content

README structure: scan_lk verdict should drive the procedure, not appear as optional tooling #2

@miromraz

Description

@miromraz

Hi, first off — the Ghidra work and scan_lk.py are great. Sharing a data point that exposes a README structure issue.

Device: Redmi Note 11 4G (fleur, 2201117SY), MT6781, SK Hynix UFS H9HQ54AECMMDAR
Firmware: HyperOS V816.0.1.0.TKEEUXM (Android 13, EEA)
LK build string: fleur-d01540d34-20220430143603-20230313203522
LK md5: 701bbd3ee76e780b030d8568368a7a4e

scan_lk.py verdict on lk_a.bin:

VERDICT: COMPATIBLE_SECCFG_ONLY  (52/100)
[MAGIC] Jz8PNRUF : ✗ ABSENT

Successfully unlocked with da seccfg unlock alone — no RPMB erase needed. lks=0, unlocked=yes, secure=no verified in fastboot.

The issue

The README lists the 3-step (rpmb-read → rpmb-erase → seccfg-unlock) as the primary procedure for HyperOS / MIUI 14+. scan_lk.py is introduced afterwards as a "Compatibility Scanner." But for the substantial set of fleur units shipped with the older MIUI-era LK (mine builds on 2022-04-30 per the string above), the magic is genuinely absent and the RPMB erase step is unnecessary — it zeros already-zero bytes.

A less careful reader would do an irreversible RPMB write on a device that didn't need it.

Suggested change

Flip the flow in the README:

  1. Dump LK: mtk r lk_a lk_a.bin
  2. python3 scan_lk.py lk_a.bin ← decision point
  3. Branch:
    • Verdict COMPATIBLE_FULL → full 3-step procedure
    • Verdict COMPATIBLE_SECCFG_ONLYda seccfg unlock only

This also strengthens the COMPATIBILITY table — fleur should arguably be split by LK build / firmware version (the OS1.0.11.0 LK that proves the Tier 1 case is a different binary from many other "fleur" units in the wild), not lumped by codename alone.

Happy to PR a restructured README if that's helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions