Lenovo Tab M10 (3rd Gen) Home Assistant Kiosk
Contents of the docs

Lenovo Tab M10 (3rd Gen) Home Assistant Kiosk · Docs

Flashing the GSI

Unlock the bootloader, keep vbmeta stock and flash the official signed Android 12 GSI that the vendor already trusts, then wipe userdata.

On this page

The one combination that works on the TB328FU: stock vbmeta plus an official, signed Android 12 GSI. Everything else — patched vbmeta, disabled verity, unofficial GSIs, newer Android versions — ends in a boot loop. This page explains why and gives the exact steps.

Caution

This wipes the tablet. Do it only on your own device. Unlocking may void the warranty.

1. Unlock the bootloader

fastboot flashing unlock is blocked on this device. The way in is the Unisoc BootROM exploit CVE-2022-38694: it feeds the BootROM a small payload at exec_addr 0x3ee8 that skips signature verification for the first-stage loader, so unsigned FDLs can run and partitions become writable. A ready-made kit for exactly this device is nemvince/tb328fu-fleet.

After unlocking, the device reports unlocked / orange. On macOS, use fastbootd (fastboot reboot fastboot) for writes — the classic bootloader fastboot hangs on writes there.

2. Why vbmeta stays stock

The bootloader derives androidboot.veritymode=enforcing from the stock vbmeta, which is signed with Lenovo's own key. That creates a catch-22:

Approach Result
Patch vbmeta (disable verity) invalid signature → the bootloader rejects it → ~2-second loop
Leave vbmeta stock enforcing → an unsigned GSI fails dm-verity → ~10-second loop

The way out is built into the vendor: the first-stage fstab verifies /system against the Google GSI keys baked into /vendor/avb/ (avb_keys=/avb/q-gsi.avbpubkey:r-gsi:s-gsi). A GSI signed with the matching Google key passes verity even under enforcing. This is Google's own design — see source.android.com: "Using GSI you only need to unlock the device. It's not necessary to disable verify boot."

So the GSI must be official and signed (not an AOSP-test-key build) and Android 12 (the newest baked key is s-gsi).

3. Get the GSI

Download the official Android 12 GSI, variant ARM64 (vanilla, no GMS — ideal for a FOSS wall panel), from developer.android.com. Unzip it to get system.img.

4. Flash only system

Everything stays stock except system — no vbmeta, no vendor_boot, no deleting product. The ~1 GB GSI fits into the stock 1.7 GB system partition.

adb reboot bootloader
fastboot reboot fastboot
fastboot flash system system.img
fastboot -w
fastboot reboot

Invalid sparse file format at header magic during the flash is normal (sparse chunks). Erasing cache FAILED from -w is harmless.

5. Wipe userdata

The first boot lands in recovery:

Can't load Android system. Your data may be corrupt.
*****NEED TO WIPE USERDATA*****
REASON IS: [init_user0_failed]

That is not a loop — the GSI booted through the bootloader, dm-verity and init, and only stumbled on the still-encrypted userdata. In recovery, choose Factory data reset, confirm, let it wipe and reboot. The GSI formats /data fresh and boots straight to the launcher (a wiped vanilla GSI skips the setup wizard).

Note

The AOSP WebView in the A12 GSI is from 2022. If a modern HA dashboard renders poorly, sideload a newer WebView APK with adb install -r — there is no Play Store to do it for you.

Continue with the kiosk setup.