fs_mgr: Skip bootloader status check during remounts
Some bootloaders don't even set verifiedbootstate.
Change-Id: Ic1fd834344db3277939e8b89baeeb8fd239067a7
diff --git a/fs_mgr/fs_mgr_remount.cpp b/fs_mgr/fs_mgr_remount.cpp
index 79c0b6d..da0b26b 100644
--- a/fs_mgr/fs_mgr_remount.cpp
+++ b/fs_mgr/fs_mgr_remount.cpp
@@ -634,10 +634,12 @@
return EXIT_FAILURE;
}
+#if ALLOW_ADBD_DISABLE_VERITY == 0 // "user" build
if (android::base::GetProperty("ro.boot.verifiedbootstate", "") != "orange") {
LOG(ERROR) << "Device must be bootloader unlocked";
return EXIT_FAILURE;
}
+#endif
// Start a threadpool to service waitForService() callbacks as
// fs_mgr_overlayfs_* might call waitForService() to get the image service.