summaryrefslogtreecommitdiff
path: root/aosp/dynamic_partition_control_android.h
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-03-01 13:46:17 -0500
committerKelvin Zhang <zhangkelvin@google.com>2021-03-02 19:38:51 -0500
commit91ad6629e1c546091596bc5ac2da81fd312ccf99 (patch)
treee76100b3ef6f86ad41397d552d5c3c5a8086093f /aosp/dynamic_partition_control_android.h
parentb93055f15cf30fbb50107fdc3a55867c2487e141 (diff)
Fix incorrect mountable device path for VABC
Test: serve an OTA with postinstall, make sure postinstall works Bug: 181182967 Change-Id: Ifd44bb700c4bca28a391c64fbc9888c79612f26f
Diffstat (limited to 'aosp/dynamic_partition_control_android.h')
-rw-r--r--aosp/dynamic_partition_control_android.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/aosp/dynamic_partition_control_android.h b/aosp/dynamic_partition_control_android.h
index d7c8781a..a23827b4 100644
--- a/aosp/dynamic_partition_control_android.h
+++ b/aosp/dynamic_partition_control_android.h
@@ -20,6 +20,7 @@
#include <memory>
#include <set>
#include <string>
+#include <string_view>
#include <vector>
#include <base/files/file_util.h>
@@ -33,6 +34,10 @@ namespace chromeos_update_engine {
class DynamicPartitionControlAndroid : public DynamicPartitionControlInterface {
public:
+ // A directory where all partitions mapped by VABC is expected to be found.
+ // Per earlier discussion with VAB team, this directory is unlikely to change.
+ // So we declare it as a constant here.
+ static constexpr std::string_view VABC_DEVICE_DIR = "/dev/block/mapper/";
DynamicPartitionControlAndroid();
~DynamicPartitionControlAndroid();