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

Commit 0afe7836 authored by Martijn Coenen's avatar Martijn Coenen Committed by Android (Google) Code Review
Browse files

Merge "Give AppZygote process shared app GID." into main

parents 2e5a4333 60c4ffb1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -111,12 +111,15 @@ public class AppZygote {
        try {
            int runtimeFlags = Zygote.getMemorySafetyRuntimeFlagsForSecondaryZygote(
                    mAppInfo, mProcessInfo);

            final int[] sharedAppGid = {
                    UserHandle.getSharedAppGid(UserHandle.getAppId(mAppInfo.uid)) };
            mZygote = Process.ZYGOTE_PROCESS.startChildZygote(
                    "com.android.internal.os.AppZygoteInit",
                    mAppInfo.processName + "_zygote",
                    mZygoteUid,
                    mZygoteUid,
                    null,  // gids
                    sharedAppGid,  // Zygote gets access to shared app GID for profiles
                    runtimeFlags,
                    "app_zygote",  // seInfo
                    abi,  // abi