Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 1ffcee96 authored by Bruno Martins's avatar Bruno Martins Committed by Michael Bestas
Browse files

fs_mgr: Allow remounts with Magisk installed

This allows remount to gracefully mount /system when Magisk
is installed.

As a sidenote, the ro.debuggable property check can safely
be removed due to the simple fact that CPP preprocessor flag
ALLOW_ADBD_DISABLE_VERITY=1 is passed when building
userdebug/eng.

Change-Id: Ic10eccbf5d225468c3dc42f8ae3ae7c05b49a699
parent b9c0446a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -629,7 +629,7 @@ int main(int argc, char* argv[]) {
    // If somehow this executable is delivered on a "user" build, it can
    // If somehow this executable is delivered on a "user" build, it can
    // not function, so providing a clear message to the caller rather than
    // not function, so providing a clear message to the caller rather than
    // letting if fall through and provide a lot of confusing failure messages.
    // letting if fall through and provide a lot of confusing failure messages.
    if (!ALLOW_ADBD_DISABLE_VERITY || !android::base::GetBoolProperty("ro.debuggable", false)) {
    if (!ALLOW_ADBD_DISABLE_VERITY) {
        LOG(ERROR) << "Device must be userdebug build";
        LOG(ERROR) << "Device must be userdebug build";
        return EXIT_FAILURE;
        return EXIT_FAILURE;
    }
    }