fs_mgr: Skip bootloader status check during remounts

Some bootloaders don't even set verifiedbootstate.

Change-Id: Ic1fd834344db3277939e8b89baeeb8fd239067a7
This commit is contained in:
Bruno Martins 2023-11-23 22:41:42 +00:00 committed by Michael Bestas
parent 1ffcee96d7
commit f28876552b
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -634,10 +634,12 @@ int main(int argc, char* argv[]) {
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.