summaryrefslogtreecommitdiff
path: root/daemon.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2022-01-10 02:37:33 +0000
committerDavid Anderson <dvander@google.com>2022-01-10 03:18:17 +0000
commit73274dfed23cfd52ef9eb7bc451369a4936fba5e (patch)
treee0d354e84e35f28a78f0448a38144aeeb0a4a90f /daemon.cpp
parent94a8fc6fa0268c61beb1b153ef6df1561dce1e18 (diff)
downloadgsid-73274dfed23cfd52ef9eb7bc451369a4936fba5e.tar.gz
gsid: Add a command-line option for verifying image maps.
Bug: 213646061 Test: adb remount, gsid verify-image-maps Change-Id: I2d2f28921a2f22bb1c7d8660802fe33adbf109bd
Diffstat (limited to 'daemon.cpp')
-rw-r--r--daemon.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon.cpp b/daemon.cpp
index a1ee809..2123599 100644
--- a/daemon.cpp
+++ b/daemon.cpp
@@ -59,6 +59,9 @@ int main(int argc, char** argv) {
} else if (argv[1] == "dump-device-mapper"s) {
int rc = DumpDeviceMapper();
exit(rc);
+ } else if (argv[1] == "verify-image-maps"s) {
+ android::gsi::GsiService::VerifyImageMaps();
+ exit(0);
}
}