diff options
| author | 2021-07-14 21:59:33 +0000 | |
|---|---|---|
| committer | 2021-07-14 21:59:33 +0000 | |
| commit | 0fd8262e2ed5ee13fc4c2e5a0362bc61c4aea9cd (patch) | |
| tree | 96bf0d4b27a2750269842cc2e98945345ce33c75 | |
| parent | e684a19bbb4981fd4b0e12a185bd35936a7e6e47 (diff) | |
| parent | a22e341ac2220de707ad37479e4a87a68281e6d1 (diff) | |
Merge "Add SafetyNet logging if a certain broadcast is received by apps." into sc-dev
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 4ec5559a061d..59ebbf1f0c4e 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -12425,6 +12425,15 @@ public class ActivityManagerService extends IActivityManager.Stub return sticky; } + // SafetyNet logging for b/177931370. If any process other than system_server tries to + // listen to this broadcast action, then log it. + if (callingPid != Process.myPid()) { + if (filter.hasAction("com.android.server.net.action.SNOOZE_WARNING") + || filter.hasAction("com.android.server.net.action.SNOOZE_RAPID")) { + EventLog.writeEvent(0x534e4554, "177931370", callingUid, ""); + } + } + synchronized (this) { IApplicationThread thread; if (callerApp != null && ((thread = callerApp.getThread()) == null |