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

Commit 5c26062f authored by Carmen Jackson's avatar Carmen Jackson
Browse files

Fix userid bug in AppStartInfo

I was struggling to get results from
getExternalHistoricalProcessStartReasons when called from a test until I
noticed that the uid output from enforceDumpPermissionForPackage was not
actually being used in the subsequent call to getStartInfo.

After making this change I was able to successfully run the test.

Bug: 247814855
Test: locally using atest

Change-Id: I85b0bf8133da54dd9f20891a49e17d353cfa87f8
parent 388c2f42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9973,7 +9973,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                        "getHistoricalProcessStartReasons");
            if (uid != INVALID_UID) {
                mProcessList.getAppStartInfoTracker().getStartInfo(
                        packageName, userId, callingPid, maxNum, results);
                        packageName, uid, callingPid, maxNum, results);
            }
        } else {
            // If no package name is given, use the caller's uid as the filter uid.