From 3a5ea0faf2d31bf31ba44c70ad1677cee7bc01f8 Mon Sep 17 00:00:00 2001 From: Vishalcj17 Date: Sat, 4 Nov 2023 01:25:00 +0900 Subject: [PATCH] fs_mgr: Remove bootloader restrictions for adb remount Change-Id: Iac550fc2ed01da220bf6cd472d0dd1905e78221d Signed-off-by: Dmitrii --- fs_mgr/fs_mgr_remount.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs_mgr/fs_mgr_remount.cpp b/fs_mgr/fs_mgr_remount.cpp index d4a741240..d70c8ff84 100644 --- a/fs_mgr/fs_mgr_remount.cpp +++ b/fs_mgr/fs_mgr_remount.cpp @@ -634,8 +634,9 @@ int main(int argc, char* argv[]) { LOG(ERROR) << "Device must be userdebug build"; return EXIT_FAILURE; } - -#if ALLOW_ADBD_DISABLE_VERITY == 0 // "user" build +#if 0 + // We already use safety net hacks which spoof to green state. + // Remove this check completely. if (android::base::GetProperty("ro.boot.verifiedbootstate", "") != "orange") { LOG(ERROR) << "Device must be bootloader unlocked"; return EXIT_FAILURE;