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

Commit 8c1b823b authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Automerger Merge Worker
Browse files

Merge "Add SafetyNet logging if a certain broadcast is received by apps." into...

Merge "Add SafetyNet logging if a certain broadcast is received by apps." into sc-dev am: 0fd8262e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15129351

Change-Id: Ic877c6fee616ed3a0fceadf25f65f1fc979856a0
parents 42c20d99 0fd8262e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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