Merge "Add SafetyNet logging if a certain broadcast is received by apps." into sc-dev am: 0fd8262e2e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15129351 Change-Id: I74b93b7fa91c64ad5417e5fd269df7a0d309586d
This commit is contained in:
@@ -12433,6 +12433,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
|
||||
|
||||
Reference in New Issue
Block a user