From Android R, especially new QCOM platforms, virtual A/B has been enabled by default, if your devices have not flashed slot B partitions images, when you switch slot to boot up, it will fail. In this situation, if you want to do OTA update, you should build a full OTA package which must includes all slot B partition images. This document will tell you how to build such images into OTA package, and we have verified it based on sm8350 Android R build. It can update successfully and boot up successfully with following steps:
大概意思是在R版本上,尤其是新的高通平台默认开启了虚拟A/B,如果device没有刷入slot B,当切换slot启动时就会fail,如果要做OTA升级,就需要全编译OTA包而且必须包含所有slot B的分区镜像.
1. Change file device/qcom/lahaina/BoardConfig.mk;
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -58,7 +58,7 @@ BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x06400000
TARGET_COPY_OUT_ODM := odm
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
ifeq ($(ENABLE_AB), true)
-AB_OTA_P

在Android R新的高通平台,默认开启虚拟A/B,若设备未刷入slot B分区镜像,切换slot启动会失败。此时做OTA升级需构建包含所有slot B分区镜像的全量包。文档介绍了构建方法,包括修改配置文件、复制镜像、重命名镜像及构建验证等步骤。
最低0.47元/天 解锁文章
2232

被折叠的 条评论
为什么被折叠?



