summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHoward Chen <howardsoc@google.com>2021-01-07 16:07:52 +0800
committerHoward Chen <howardsoc@google.com>2021-01-22 14:16:21 +0800
commit3a5e19a5bfb588626b9b39f529316949df93378a (patch)
treef64e045ffc8170b4ab5e6a9e849b77eea6199ac7 /include
parent721a0e4b06184fada0035cce390df9c8b6d8720e (diff)
downloadgsid-3a5e19a5bfb588626b9b39f529316949df93378a.tar.gz
Refine the DSU SD card support
Refine the openImageService and allow images to be installed in a SD card. This also fixes the error when execute the "gsi_tool status" command. Bug: 171861574 Test: execute following command on a device with a SD card inserted adb shell am start-activity \ -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \ -a android.os.image.action.START_INSTALL \ -d file:///storage/emulated/0/Download/system.raw.gz \ --el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \ --el KEY_USERDATA_SIZE 4294967296 Change-Id: I764cf66984e74ab66cc4316b087751937e20a242
Diffstat (limited to 'include')
-rw-r--r--include/libgsi/libgsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libgsi/libgsi.h b/include/libgsi/libgsi.h
index 1e3cd07..17066ff 100644
--- a/include/libgsi/libgsi.h
+++ b/include/libgsi/libgsi.h
@@ -38,6 +38,8 @@ static constexpr char kDsuAvbKeyDir[] = DSU_METADATA_PREFIX "avb/";
static constexpr char kDsuMetadataKeyDirPrefix[] = "/metadata/vold/metadata_encryption/dsu/";
+static constexpr char kDsuSDPrefix[] = "/mnt/media_rw/";
+
static inline std::string DsuLpMetadataFile(const std::string& dsu_slot) {
return DSU_METADATA_PREFIX + dsu_slot + "/lp_metadata";
}