Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ota failure caused by vabc config #2759

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From 1c3ad205a969163002f42b61f00d66ee38e1fab2 Mon Sep 17 00:00:00 2001
From: "Unnithan, Balakrishnan" <[email protected]>
Date: Mon, 16 Dec 2024 15:00:43 +0530
Subject: [PATCH 9/9] fix ota update failure after vabc compression enable

Signed-off-by: Unnithan, Balakrishnan <[email protected]>
---
target/product/virtual_ab_ota/vabc_features.mk | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/target/product/virtual_ab_ota/vabc_features.mk b/target/product/virtual_ab_ota/vabc_features.mk
index 7b90106fbd..faf347ebe6 100644
--- a/target/product/virtual_ab_ota/vabc_features.mk
+++ b/target/product/virtual_ab_ota/vabc_features.mk
@@ -52,11 +52,17 @@ PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.batch_writes=true

# Enabling this property, will improve OTA install time
# but will use an additional CPU core
-PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.threads=true
-
+# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.threads=true
+#
PRODUCT_VIRTUAL_AB_COMPRESSION := true
-PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD ?= lz4
-PRODUCT_VIRTUAL_AB_COMPRESSION_FACTOR ?= 65536
+
+ifndef PRODUCT_VIRTUAL_AB_COMPRESSION_FACTOR
+ PRODUCT_VIRTUAL_AB_COMPRESSION_FACTOR := 65536
+endif
+
+ifndef PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD
+ PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD := lz4
+endif

PRODUCT_PACKAGES += \
snapuserd.vendor_ramdisk \
--
2.47.1

Loading