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

Commit 926ee261 authored by Steven Moreland's avatar Steven Moreland Committed by Android (Google) Code Review
Browse files

Merge "Disable page size compat based on prop" into main

parents 2e9c7e8c 10f0ef29
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -532,7 +532,12 @@ static inline bool app_compat_16kb_enabled() {
    static const size_t kPageSize = getpagesize();

    // App compat is only applicable on 16kb-page-size devices.
    return kPageSize == 0x4000;
    if (kPageSize != 0x4000) {
        return false;
    }

    // Explicit disabled status for app compat
    return !android::base::GetBoolProperty("pm.16kb.app_compat.disabled", false);
}

static jint