diff options
| author | 2024-11-15 09:07:31 +0000 | |
|---|---|---|
| committer | 2024-11-15 09:07:31 +0000 | |
| commit | a667543d2354367a62e8986a4d8c7c7873812c03 (patch) | |
| tree | 9e46b57089d1f935f86fd2b80e71768c90b864a3 | |
| parent | 03f6c10fa328979bf70a12235b68cb5c12bb08f8 (diff) | |
| parent | eead22bb23111be778e0586cfc6756b47362b000 (diff) | |
Merge "Remove unnecessary checks for internal only addStartInfoTimestamp" into main
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index d3e5942834ee..d880bce921aa 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -18003,14 +18003,6 @@ public class ActivityManagerService extends IActivityManager.Stub @Override public void addStartInfoTimestamp(int key, long timestampNs, int uid, int pid, int userId) { - // For the simplification, we don't support USER_ALL nor USER_CURRENT here. - if (userId == UserHandle.USER_ALL || userId == UserHandle.USER_CURRENT) { - throw new IllegalArgumentException("Unsupported userId"); - } - - mUserController.handleIncomingUser(pid, uid, userId, true, - ALLOW_NON_FULL, "addStartInfoTimestampSystem", null); - addStartInfoTimestampInternal(key, timestampNs, userId, uid); } |