Fix the process header for system server strict mode dropbox entries.

Should be system_server instead of unknown.

Change-Id: Ib4005252dc99180fc54b3fc63b06ca3e17ee230a
This commit is contained in:
Olivier Gaillard
2023-07-13 23:19:05 +00:00
parent eb9df37e70
commit 7a25f1bc43

View File

@@ -9013,7 +9013,9 @@ public class ActivityManagerService extends IActivityManager.Stub
final boolean isSystemApp = process == null ||
(process.info.flags & (ApplicationInfo.FLAG_SYSTEM |
ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) != 0;
final String processName = process == null ? "unknown" : process.processName;
final String processName = process != null && process.getPid() == MY_PID
? "system_server"
: (process == null ? "unknown" : process.processName);
final DropBoxManager dbox = (DropBoxManager)
mContext.getSystemService(Context.DROPBOX_SERVICE);