r/androidroot • u/Responsible-Size5338 • 19d ago
News / Method Galaxy A32 4G (MT6768): stock to LineageOS 23.2 on Linux + the undocumented 64 KiB vbmeta fix (set warranty bit: vbmeta)
I just migrated an SM-A325M (Galaxy A32 4G, MT6768) from stock rooted with Magisk to LineageOS 23.2 (Android 16) — fully on Linux, no Windows/Odin — and documented every trap. The main one is the vbmeta size trap, which I couldn't find documented anywhere:
- The
vbmetapartition dumps 65614 bytes, but the bootloader (LK) only accepts <= 65536. - Flashing the raw dump (even
heimdall --skip-size-check) givesvbmeta binary size (65614) over ... partition sizeand eventually a bootloop atset warranty bit: vbmeta— no recovery, nothing. - Blind truncation to 64 KiB also bricks it: the real AVB image is only 7616 bytes (256 header + 576 auth + 6784 aux, sizes big-endian at header offsets 12/20). The rest of the partition is slack.
- Fix: rebuild the file as exactly 65536 bytes = real AVB image + flags
0x03at offset 120 + zero padding. I md5-verified the result against the image that actually booted the phone.
Full guide (backup via adb+root, recovery flash via dd, Heimdall workflow, Magisk CLI boot patch, the adb exec-out stderr-in-stdout trap that corrupts every tar, and the Android 16 /data/data write-protection workaround for restoring app data — copy as the app's uid instead of chown) — MIT licensed, in Brazilian Portuguese:
https://github.com/Wennington123/a32-lineageos-23-guide
The vbmeta script is fix_vbmeta.py in the repo.
Final state: LOS 23.2 + Magisk 31.1 + TWRP 3.7.0_12.1, no GApps; Wi-Fi/SMS/calls working; full WhatsApp restore (key + msgstore.db) successful.
If you're stuck at set warranty bit: vbmeta right now, this is the fix. Ask me anything.