Skip to content

About

Device-specific KernelSU/Magisk module for CMR-W09 syncing ro.boot.vbmeta.* and /data/adb/boot_hash from /dev/block/by-name/vbmeta.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

VBMeta Boot State Sync

Version Device License

Device-specific KernelSU / Magisk / APatch module for HUAWEI MediaPad M5 (CMR-W09, hi3660) that aligns verified-boot (ro.boot.vbmeta.* and ro.boot.flash.locked) properties with /dev/block/by-name/vbmeta and keeps /data/adb/boot_hash updated.


What It Does

Runs in post-fs-data.sh (before zygote) and service.sh (after sys.boot_completed=1):

  • Reads the SHA-256 digest of /dev/block/by-name/vbmeta (with verified fallback).
  • Sets via resetprop -n:
    • ro.boot.vbmeta.digest
    • ro.boot.vbmeta.hash_alg=sha256
    • ro.boot.vbmeta.avb_version=1.0
    • ro.boot.vbmeta.size=4096
    • ro.boot.vbmeta.invalidate_on_error=yes
    • ro.boot.vbmeta.device_state=locked
    • ro.boot.flash.locked=1
  • Writes the digest to /data/adb/boot_hash (consumed by Oh My KeyMint / Tricky Store / omk-pif-suite).

Compatibility Warning

Specific to CMR-W09 (AVB 1.0 / 4096-byte vbmeta):

  • Other devices may use vbmeta_system / vbmeta_vendor, 8192-byte vbmeta, sha512, or already populate ro.boot.vbmeta.digest from the bootloader. Do not flash on unrelated devices without adjusting vbmeta parameters.

Installation

  1. Download vbmeta_sync.zip from Releases.
  2. Flash in KernelSU / BakaSU / Magisk / APatch and reboot.

About

Device-specific KernelSU/Magisk module for CMR-W09 syncing ro.boot.vbmeta.* and /data/adb/boot_hash from /dev/block/by-name/vbmeta.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages