Merge "Actually count explicit broadcasts as usage" into sc-dev am: 9e3ce77cca am: 0b6c6a09c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15179083 Change-Id: I1ebf88d9cd4e63a0e8502536c782fce0253ac35c
This commit is contained in:
@@ -1652,7 +1652,7 @@ public final class BroadcastQueue {
|
||||
maybeScheduleTempAllowlistLocked(receiverUid, r, brOptions);
|
||||
|
||||
// Report that a component is used for explicit broadcasts.
|
||||
if (!r.intent.isExcludingStopped() && r.curComponent != null
|
||||
if (r.intent.getComponent() != null && r.curComponent != null
|
||||
&& !TextUtils.equals(r.curComponent.getPackageName(), r.callerPackage)) {
|
||||
mService.mUsageStatsService.reportEvent(
|
||||
r.curComponent.getPackageName(), r.userId, Event.APP_COMPONENT_USED);
|
||||
|
||||
Reference in New Issue
Block a user