Skip to content

bootloader not unlocking with RPMB erase + seccfg unlock method #8

Description

@ssg-enjoyer

Device model

Redmi 12c

Codename

earth

SoC

MT6769Z

Firmware version

Hyperos 816.0.8.0.UCVEUXM

Which step failed?

Verification (fastboot oem lks)

Full terminal output

fastboot oem lks
> Lock state: locked
> OKAY [0.002s]

fastboot getvar unlocked
> unlocked: no
> Finished. Total time: 0.001s

fastboot getvar secure
> secure: yes
> Finished. Total time: 0.001s.
$./scan_lk.py lk_a.bin [*] Reading lk_a.bin...
[*] Size: 67,108,864 bytes
[*] Scanning...
══════════════════════════════════════════════════════════
  LK BINARY SCAN REPORT — MTKClient Unlock Analyzer
══════════════════════════════════════════════════════════

  File size  : 67,108,864 bytes (64.0 MB)
  MD5        : cad1238c747c5bfc2366b28b91953c5e
  SHA256     : 0d4f92db6274bd7a40379ea7dac915f7...

  ┌─────────────────────────────────────────┐
  │  VERDICT: COMPATIBLE                     │
  │  Score  : 100/100 (100%)                       │
  │  Method: RPMB erase (sector 57344) + sec│
  └─────────────────────────────────────────┘

  [MAGIC] Jz8PNRUF : ✓ FOUND
    @ 0x00107C74

  [RPMB] Type : UFS_Samsung_0x400000
    magic                : 0x3FE0
    lock_state_len       : 0x40E0
    signature_data       : 0x41E0

  [RSA]  Modulus : ✓ FOUND
    @ 0x00107FE4
    Key size: 2048 bits

  [SECCFG] Version : generic

  [FUNCTIONS] 7 detected:
    ✓ mi_check_magic: Checks RPMB magic — returns 0 (present) or 3 (absent)
    ✓ get_lock_state: Main lock state function  reads seccfg + RPMB
    ✓ seccfg_set_lock_state: Writes lock state to seccfg partition
    ✓ rpmb_read: Reads N bytes from RPMB
    ✓ rpmb_write: Writes N bytes to RPMB
    ✓ fastboot_oem_lks: Hidden fastboot OEM lock state commands
    ✓ verify_unlock_sig: RSA signature verification for unlock token

  [FASTBOOT] 8 OEM commands:
    ✓ oem lks @ 0x00099B78
    ✓ oem setmtklks @ 0x00099A38
    ✓ oem chkmtklks @ 0x00099A28
    ✓ flashing get_unlock_ability @ 0x00099BB8
    ✓ flashing unlock @ 0x00099B80
    ✓ flashing lock @ 0x00099B90
    ✓ oem unlock @ 0x00099BA0
    ✓ oem lock @ 0x00099BAC

══════════════════════════════════════════════════════════
  This device is compatible with the RPMB erase + seccfg unlock method.

Operating system

Arch linux

USB port type

USB 3.0/3.1 (blue port)

Did you use a preloader file?

No — let mtkclient auto-detect

What have you already tried?

I think i did every step right and scan_lk.py output says that it is compatible i have no idea why the bootloader stays locked. i even got the dm-verity error which the guide says it is a sign that i did the steps right.

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