【文件属性】:
文件名称:linux ubuntu fastboot 下载
文件大小:111KB
文件格式:FASTBOOT
更新时间:2023-07-29 08:39:56
fastboot
linux ubuntu fastboot 下载
方法1:
GSI Flashing Procedure
For Android-Q Fresh Launch Build(DP Enabled):
Flash META
Change directory to Apps path
Flash below Apps and GSI image.
Apps Build flashing
fastboot flash persist persist.img
cd secondary-boot
fastboot flash boot_a boot.img (boot.img image for CTS-on-GSI, boot-debug.img for VTS testing)
fastboot flash dtbo_a dtbo.img
fastboot flash recovery_a recovery.img
fastboot flash super super.img
fastboot flash userdata userdata.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vbmeta_system_a vbmeta_system.img
GSI Flashing steps:
fastboot reboot fastboot
fastboot flash system
fastboot -w
fastboot flashing lock
fastboot reboot
NOTE: Dynamic Partition mandatory for android-Q Fresh Launch devices.
Device should not come out of fastboot mode between Apps flashing and GSI flashing.
For Android-Q Upgraded Build or Android-P Builds:
Apps and GSI image flashing:
fastboot flash userdata userdata.img
fastboot flash persist persist.img
cd secondary-boot
fastboot flash boot_a boot.img
fastboot flash dtbo_a dtbo.img
fastboot flash vendor_a vendor.img
fastboot flash system_a
fastboot --disable-verification flash vbmeta_a vbmeta.img
fastboot flashing lock
fastboot reboot
方法2:
这个版本刷GSI时,oem unlock的操作有更新如下:
adb reboot-bootloader
fastboot oem sim-allowunlock (允许解锁)
fastboot flashing unlock (这里需要按 音量上键 确认)
adb reboot-bootloader
fastboot flash system system_xxxxxxxxxxx.img
fastboot --disable-verification flash vbmeta vbmeta.img
fastboot reboot
取消验证,取消AVB验证
fastboot --disable-verification flash vbmeta vbmeta.img
之后就可以通过fastboot烧录boot.img vendor.img system.img 单独烧录。
3.4 AndroidO userdebug版本刷机时禁止dm-verity
AndroidO dm-verity disable flag存在于vbmeta.img(keystore分区)中;而老版本是放置在system.img分区的dm-verity metadata中。
1)在设置中打开OEM unlocking选项
2)在设置中打开USB debugging选项
3)adb reboot bootloader
4)fastboot flashing unlock和fastboot oem unlock
5)fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
6)fastboot reboot
7)adb root
8)adb remount
擦除用户数据,并清除来自其他必要分区的数据(例如,用户数据分区和系统分区):
fastboot -w