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

Commit 37b6ca82 authored by Mathew Inwood's avatar Mathew Inwood
Browse files

Pass package name to runtime.

When binding an application in ActivityThread, pass the package name to
the runtime so it knows which package is running in the process.

Bug: 77517571
Test: m
Change-Id: Ia646599ca45b76ebcd068fcc50df23659e89b82b
parent e4d1cabe
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -5512,6 +5512,7 @@ public final class ActivityThread extends ClientTransactionHandler {
        Process.setArgV0(data.processName);
        Process.setArgV0(data.processName);
        android.ddm.DdmHandleAppName.setAppName(data.processName,
        android.ddm.DdmHandleAppName.setAppName(data.processName,
                                                UserHandle.myUserId());
                                                UserHandle.myUserId());
        VMRuntime.setProcessPackageName(data.appInfo.packageName);


        if (mProfiler.profileFd != null) {
        if (mProfiler.profileFd != null) {
            mProfiler.startProfiling();
            mProfiler.startProfiling();