phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 660 forks source link

channel (Moto G7 Play) AOSP 12.1 non-vanilla images don't flash successfully #2315

Open yjftsjthsd-g opened 2 years ago

yjftsjthsd-g commented 2 years ago

Describe the bug

The floss and gapps images for https://github.com/phhusson/treble_experimentations/releases/tag/v413 do not install on a Motorola Moto G7 Play (channel), but the vanilla image does work.

Current Behavior:

fastboot: error: Command failed and attempting a boot loops back to the bootloader.

To Reproduce

$ fastboot flash system system-squeak-arm64-ab-floss_v413.img
Invalid sparse file format at header magic
(bootloader) is-logical:system_b: not found
Sending sparse 'system_b' 1/5 (524180 KB)          OKAY [ 27.401s]
Writing 'system_b'                                 (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed

Or using system_b (based on https://github.com/phhusson/treble_experimentations/issues/2297):

$ fastboot flash system_b system-squeak-arm64-ab-floss_v413.img
Invalid sparse file format at header magic
(bootloader) is-logical:system_b: not found
Sending sparse 'system_b' 1/5 (524180 KB)          OKAY [ 28.570s]
Writing 'system_b'                                 (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed

Expected behavior

I would expect the phone to boot successfully into Android. This does work with the vanilla image:

$ fastboot flash system system-squeak-arm64-ab-vanilla_v413.img
Invalid sparse file format at header magic
(bootloader) is-logical:system_b: not found
Sending sparse 'system_b' 1/4 (524232 KB)          OKAY [ 28.059s]
Writing 'system_b'                                 OKAY [  4.850s]
Sending sparse 'system_b' 2/4 (524236 KB)          OKAY [ 28.299s]
Writing 'system_b'                                 OKAY [  4.325s]
Sending sparse 'system_b' 3/4 (524208 KB)          OKAY [ 28.260s]
Writing 'system_b'                                 OKAY [  4.337s]
Sending sparse 'system_b' 4/4 (163224 KB)          OKAY [  8.780s]
Writing 'system_b'                                 OKAY [  1.351s]
Finished. Total time: 109.057s

After which fastboot reboot successfully boots Android to the home screen.

Smartphone (please complete the following information):

Additional context

Base image flashed before the GSIs was lineage-18.1-20220501-nightly-channel-signed.zip from https://download.lineageos.org/channel

Dunedan commented 2 years ago

Have you checked that your system partition is large enough for these images? If I'm not mistaken the stock partition size is 2.2GB on the Moto G7 Play (no idea if the LineageOS install changes that), while the size of the floss and gapps images is larger.