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

Commit 10f0ef29 authored by Pawan Wagh's avatar Pawan Wagh
Browse files

Disable page size compat based on prop

This is needed in automated test suits to check
apk alignment status

Test: m
Flag: EXEMPT bug fix
Bug: 381949453
Change-Id: Ib5b5a5aa05cf97593bcce31a54fb835a9c3bb617
parent 1ac8ea64
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