summaryrefslogtreecommitdiff
path: root/include/libgsi
diff options
context:
space:
mode:
Diffstat (limited to 'include/libgsi')
-rw-r--r--include/libgsi/libgsi.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/libgsi/libgsi.h b/include/libgsi/libgsi.h
index 94e6f57..9b24f47 100644
--- a/include/libgsi/libgsi.h
+++ b/include/libgsi/libgsi.h
@@ -25,8 +25,14 @@ static constexpr char kGsiServiceName[] = "gsiservice";
static constexpr char kGsiBootedIndicatorFile[] = "/metadata/gsi/dsu/booted";
+static constexpr char kGsiLpNamesFile[] = "/metadata/gsi/dsu/lp_names";
+
+static constexpr char kDsuLpMetadataFile[] = "/metadata/gsi/dsu/lp_metadata";
+
static constexpr char kGsiBootedProp[] = "ro.gsid.image_running";
+static constexpr char kDsuPostfix[] = "_gsi";
+
static constexpr int kMaxBootAttempts = 1;
// Returns true if the currently running system image is a live GSI.
@@ -43,11 +49,10 @@ bool UninstallGsi();
bool DisableGsi();
// Returns true if init should attempt to boot into a live GSI image, false
-// otherwise. If true, then the path to the liblp metadata file is set. If
-// false, an error message is set instead.
+// otherwise. If false, an error message is set.
//
// This is only called by first-stage init.
-bool CanBootIntoGsi(std::string* metadata_file, std::string* error);
+bool CanBootIntoGsi(std::string* error);
// Called by first-stage init to indicate that we're about to boot into a
// GSI.