赞
踩
https://source.android.com/setup/build/gsi#building-gsis
1. Building GSIs
https://ci.android.com/builds/branches/aosp-android10-gsi/grid?
2. 步骤
Boot to fastboot mode and unlock the bootloader.
# adb reboot bootloader
(unlock: developer options: OEM unlocking; fastboot flash unlock)
$ fastboot reboot fastboot
Disable verify boot (AVB) by flashing vbmeta.img:
$ fastboot --disable-verification flash vbmeta vbmeta.img
Erase and flash the GSI to the system partition:
$ fastboot erase system
$ fastboot flash system system.img
Wipe the user data and clear the data from other necessary partitions (for example, user data and system partitions):
$ fastboot -w
(or go to recovery mode, wipe data)
Reboot:
$ fastboot reboot
On Android 10 devices that have smaller system partitions, the following error message might appear when flashing the GSI:
Resizing 'system_a' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed
Use the following command to delete the product partition and free up space for the system partition. This provides extra space to flash the GSI:
$ fastboot delete-logical-partition product_a
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。