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

Commit 22f8afbb authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 6269058b 90aa01e5
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