summaryrefslogtreecommitdiff
path: root/file_paths.h
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-01-11 14:37:51 -0800
committerDavid Anderson <dvander@google.com>2019-01-14 19:10:28 -0800
commitb3aff184cac0cbea6a587c4bf290fe2ae83b85b1 (patch)
treeceff0baab37474577965a450a1df7f2b99373cef /file_paths.h
parentdeb2e96a68209018d82e7c2187055c9e8a17dbda (diff)
downloadgsid-b3aff184cac0cbea6a587c4bf290fe2ae83b85b1.tar.gz
Implement a boot attempt counter.
Bug: 122556707 Test: manual test Change-Id: I75457b95aef9d74bbf4121850f2f29fdc887386c
Diffstat (limited to 'file_paths.h')
-rw-r--r--file_paths.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/file_paths.h b/file_paths.h
index 078540f..b305db3 100644
--- a/file_paths.h
+++ b/file_paths.h
@@ -26,8 +26,13 @@ static constexpr char kSystemFile[] = "/data/unencrypted/gsi/system_gsi.img";
static constexpr char kGsiMetadataFolder[] = "/metadata/gsi";
static constexpr char kGsiLpMetadataFile[] = "/metadata/gsi/lp_metadata";
-static constexpr char kGsiBootableFile[] = "/metadata/gsi/bootable";
static constexpr char kGsiMetadata[] = "/metadata/gsi/lp_metadata";
+// 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
+static constexpr char kGsiInstallStatusFile[] = "/metadata/gsi/install_status";
+
} // namespace gsi
} // namespace android