The seccfg (Security Configuration) partition in Mediatek devices holds (as the name implies) security configurations.

Seccfg V4 hex

In it, the following information are stored:

  • Seccfg version
  • Seccfg size
  • Lock state
  • Critical Lock state
  • Sboot runtime

The seccfg V4 structure is as follows

NameValueLength
Magic Start0x4D4D4D4D4 bytes
Seccfg version0x4 (seccfg v4)4 bytes
Lock state0x1 (bootloader locked) / 0x3 (bootloader unlocked)4 bytes
Critical lock state0x1 (bootloader locked) / 0x0 (bootloader unlocked)4 bytes
Sboot runtime0x04 bytes
Magic End0x45454545 (Unless seccfg is malformed)4 bytes
Encrypted Hash (sha256)sha256 of the previous values packed together, then encrypted with SEJ, unique per device32 bytes
Padding0x00Until 0x200 is reached