From d8698fa6be799ad560705a30b204390c1e3005c6 Mon Sep 17 00:00:00 2001 From: Alessio Balsini Date: Tue, 26 May 2020 22:26:56 +0100 Subject: [PATCH] UpdateEngineUpdateAttemptReported: add super and slot size, and free space Additional information are important to evaluate the impact of Virtual A/B on devices especially related to OTA take rate. In order to find a correlation between the OTA take rate and the storage composition, the following metrics are added to the UpdateEngineUpdateAttemptReported: - super_partition_size_bytes: the size of the super partition, - slot_size_bytes: the size of the current slot, and - super_free_space_bytes: representing the free space in the super partition. Bug: 154016862 Bug: 157720191 Test: m Signed-off-by: Alessio Balsini Change-Id: I9a6146831a4d6254f8c4d1bfe0df9ca97ef15d34 --- cmds/statsd/src/atoms.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index c474e71da0231..36a8b2cfc0841 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -8645,6 +8645,15 @@ message UpdateEngineUpdateAttemptReported { // system property when the device takes the update. e.g. // Android/aosp_sailfish/sailfish:10/QP1A.190425.004/5507117:userdebug/test-keys optional string source_fingerprint = 8; + + // Size of super partition. + optional int64 super_partition_size_bytes = 9; + + // Size of current slot within the super partition. + optional int64 slot_size_bytes = 10; + + // Free space available in the super partition. + optional int64 super_free_space_bytes = 11; } /**