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

Commit 5ee13b19 authored by Florian Mayer's avatar Florian Mayer Committed by Android (Google) Code Review
Browse files

Merge "[MTE] upgrade apps from async to sync mode on debug builds"

parents a561c027 885bec8d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1328,6 +1328,15 @@ public final class Zygote {
            level = MEMORY_TAG_LEVEL_NONE;
        }

        // If we requested "sync" mode for the whole platform, upgrade mode for apps that enable
        // MTE.
        // This makes debugging a lot easier.
        if (level == MEMORY_TAG_LEVEL_ASYNC
                && (Build.IS_USERDEBUG || Build.IS_ENG)
                && "sync".equals(SystemProperties.get("persist.arm64.memtag.default"))) {
            level = MEMORY_TAG_LEVEL_SYNC;
        }

        return level;
    }