Add ro.product.ab_ota_partitions as a sysprop api
The property identifies a list partitions updated via OTA. It's used
in update_engine to perform GKI update.
Build: 162148770
Test: build and check the prop in update_engine
Change-Id: I90032d64a538f1a24e20ddbf0dba6750ce874cd6
diff --git a/srcs/android/sysprop/OtaProperties.sysprop b/srcs/android/sysprop/OtaProperties.sysprop
index a645237..a2323ba 100644
--- a/srcs/android/sysprop/OtaProperties.sysprop
+++ b/srcs/android/sysprop/OtaProperties.sysprop
@@ -22,3 +22,11 @@
prop_name: "ota.warm_reset"
integer_as_bool : true
}
+
+prop {
+ api_name: "ab_ota_partitions"
+ type: String
+ scope: Public
+ access: Readonly
+ prop_name: "ro.product.ab_ota_partitions"
+}
diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt
index 21473ac..b904ee8 100644
--- a/srcs/api/PlatformProperties-current.txt
+++ b/srcs/api/PlatformProperties-current.txt
@@ -174,6 +174,11 @@
props {
module: "android.sysprop.OtaProperties"
prop {
+ api_name: "ab_ota_partitions"
+ type: String
+ prop_name: "ro.product.ab_ota_partitions"
+ }
+ prop {
api_name: "warm_reset"
access: ReadWrite
prop_name: "ota.warm_reset"