Merge changes Ibbed6cf9,I31b36b42 into main
* changes: ota_from_target_files: allow cow version override Add build configs for wearable tunables
This commit is contained in:
@@ -34,6 +34,21 @@ PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.userspace.snapshots.enabled=true
|
|||||||
PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.io_uring.enabled=true
|
PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.io_uring.enabled=true
|
||||||
PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.xor.enabled=true
|
PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.xor.enabled=true
|
||||||
PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.batch_writes=true
|
PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.batch_writes=true
|
||||||
|
# Low memory device configurations. If memory usage and cpu utilization is
|
||||||
|
# a bottleneck during OTA, the below configurations can be added to a
|
||||||
|
# device's .mk file improve performance for low mem devices. Disabling
|
||||||
|
# ro.virtual_ab.compression.xor.enabled and ro.virtual_ab.io_uring.enabled
|
||||||
|
# is also recommended
|
||||||
|
#
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.o_direct.enabled=true
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.merge_thread_priority=19
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.worker_thread_priority=0
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.num_worker_threads=3
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.num_merge_threads=1
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.num_verify_threads=1
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.cow_op_merge_size=16
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.verify_threshold_size=1073741824
|
||||||
|
# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.verify_block_size=1048576
|
||||||
|
|
||||||
# Enabling this property, will improve OTA install time
|
# Enabling this property, will improve OTA install time
|
||||||
# but will use an additional CPU core
|
# but will use an additional CPU core
|
||||||
|
@@ -914,6 +914,7 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
|
|||||||
# and install time performance. All OTA's with
|
# and install time performance. All OTA's with
|
||||||
# both the source build and target build with VIRTUAL_AB_COW_VERSION = 3
|
# both the source build and target build with VIRTUAL_AB_COW_VERSION = 3
|
||||||
# can support the new format. Otherwise, fallback on older versions
|
# can support the new format. Otherwise, fallback on older versions
|
||||||
|
if not OPTIONS.vabc_cow_version:
|
||||||
if not source_info.vabc_cow_version or not target_info.vabc_cow_version:
|
if not source_info.vabc_cow_version or not target_info.vabc_cow_version:
|
||||||
logger.info("Source or Target doesn't have VABC_COW_VERSION specified, default to version 2")
|
logger.info("Source or Target doesn't have VABC_COW_VERSION specified, default to version 2")
|
||||||
OPTIONS.vabc_cow_version = 2
|
OPTIONS.vabc_cow_version = 2
|
||||||
@@ -933,6 +934,7 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
|
|||||||
assert "ab_partitions" in OPTIONS.info_dict, \
|
assert "ab_partitions" in OPTIONS.info_dict, \
|
||||||
"META/ab_partitions.txt is required for ab_update."
|
"META/ab_partitions.txt is required for ab_update."
|
||||||
source_info = None
|
source_info = None
|
||||||
|
if not OPTIONS.vabc_cow_version:
|
||||||
if not target_info.vabc_cow_version:
|
if not target_info.vabc_cow_version:
|
||||||
OPTIONS.vabc_cow_version = 2
|
OPTIONS.vabc_cow_version = 2
|
||||||
elif target_info.vabc_cow_version >= "3" and target_info.vendor_api_level < 35:
|
elif target_info.vabc_cow_version >= "3" and target_info.vendor_api_level < 35:
|
||||||
|
Reference in New Issue
Block a user