Skip to content

v2.5.2: the bootloader state from the bootloader, the new look and grey icon - #5

Merged
ifoknr merged 12 commits into
mainfrom
fix-bootloader-state
Oct 30, 2026
Merged

ifoknr merged 12 commits into
mainfrom
fix-bootloader-state

Conversation

@ifoknr

@ifoknr ifoknr commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

A user's Xiaomi msm8937 (KernelSU, unlocked) showed "Bootloader: locked". Its old bootloader puts only androidboot.verifiedbootstate=orange on the kernel command line (no vbmeta.device_state, no flash.locked), and the ROM sets ro.boot.vbmeta.device_state and ro.boot.flash.locked to "locked" for Play Integrity, so the Companion fell back to those properties.

boot_state in lib/detect.sh now decides in this order:

  1. vbmeta.device_state, then flash.locked, from bootconfig or the command line;
  2. the bootloader's AVB state: orange is unlocked, green or yellow is locked;
  3. the properties.
    With a root manager present the state is unlocked whatever those say (a locked bootloader does not start a modified boot image), the same rule as Fastboot Studio Mobile. When the properties say locked but the real state is unlocked, spoofed is true, so fbs facts and the Phone page in Fastboot Studio get the right answer too.

WebUI: an unknown state shows "?" instead of "locked", and the note under Boot and security explains that the ROM or a hiding module changed the boot properties.

Tests: three new cases on the fake phone (orange only on the command line with locked properties; no bootloader words with root; no root and no bootloader words). 234 / 234 under sh and dash, shellcheck clean, WebUI smoke test passes.

Version v2.5.2 in module.prop, update.json and fbs. Merge together with the release, so update.json never points at a zip that does not exist yet.

@ifoknr ifoknr changed the title v2.5.2: the bootloader state from the bootloader first, and root means unlocked v2.5.2: the bootloader state from the bootloader, the new look and grey icon Oct 30, 2026
@ifoknr
ifoknr merged commit 5e78b37 into main Oct 30, 2026
3 checks passed
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.

1 participant