Merge "Actually count explicit broadcasts as usage" into sc-dev am: 9e3ce77cca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15179083 Change-Id: I5d54f0ec7fa0655f5dac012f04a47ebf8a63a87f
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