当前位置:   article > 正文

Android Generic System Images_not enough space to resize partition

not enough space to resize partition

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

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/298865
推荐阅读
相关标签
  

闽ICP备14008679号