diff options
author | David Anderson <dvander@google.com> | 2019-05-23 13:27:01 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2019-05-25 00:21:59 +0000 |
commit | 49eea5fcc88a7eb653d02e7679ae253fe6f9b21c (patch) | |
tree | 31dad952585fd39dfd08272fa488261b03de3ba2 /file_paths.h | |
parent | 08d035d3905bdcf6de007db5eafb358467760d6e (diff) | |
download | gsid-49eea5fcc88a7eb653d02e7679ae253fe6f9b21c.tar.gz |
Place GSI files into subfolders.
This moves /data/gsi to /data/gsi/dsu and /metadata/gsi to
/metadata/gsi/dsu.
Bug: 133435561
Test: adb shell gsi_tool install
Change-Id: I6ca999f8e7ae8ea294766f40c806b8822935e1b8
Diffstat (limited to 'file_paths.h')
-rw-r--r-- | file_paths.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/file_paths.h b/file_paths.h index 5a16491..a772bce 100644 --- a/file_paths.h +++ b/file_paths.h @@ -19,20 +19,19 @@ namespace android { namespace gsi { -static constexpr char kGsiDataFolder[] = "/data/gsi/"; +static constexpr char kDefaultGsiImageFolder[] = "/data/gsi/dsu/"; static constexpr char kUserdataDevice[] = "/dev/block/by-name/userdata"; -static constexpr char kGsiMetadataFolder[] = "/metadata/gsi"; -static constexpr char kGsiLpMetadataFile[] = "/metadata/gsi/lp_metadata"; -static constexpr char kGsiOneShotBootFile[] = "/metadata/gsi/one_shot_boot"; -static constexpr char kGsiInstallDirFile[] = "/metadata/gsi/install_dir"; +static constexpr char kGsiLpMetadataFile[] = "/metadata/gsi/dsu/lp_metadata"; +static constexpr char kGsiOneShotBootFile[] = "/metadata/gsi/dsu/one_shot_boot"; +static constexpr char kGsiInstallDirFile[] = "/metadata/gsi/dsu/install_dir"; // This file can contain the following values: // [int] - boot attempt counter, starting from 0 // "ok" - boot was marked successful // "disabled" - boot into GSI no longer allowed // "wipe" - boot into GSI not allowed; next reboot will delete gsi -static constexpr char kGsiInstallStatusFile[] = "/metadata/gsi/install_status"; +static constexpr char kGsiInstallStatusFile[] = "/metadata/gsi/dsu/install_status"; } // namespace gsi } // namespace android |