Skip to content
Commit 7839d2d8 authored by Kevin Han's avatar Kevin Han
Browse files

Actually count explicit broadcasts as usage

Explicit broadcasts do actually still have the
FLAG_EXCLUDE_STOPPED_PACKAGES flag even though explicit broadcasts DO go
to stopped packages (and unstop them). This means checking for the flag
does not actually help to differentiate explicit broadcasts from
implicit broadcasts for the purpose of package usage.

Instead, we just check if there is a specific component name set for the
broadcast.

Bug: 192585331
Test: "am broadcast" an explicit broadcast to test app
"adb shell dumpsys usagestats" to check last time component used

Change-Id: Ib04a4398f15084d7a96daf0a621cfc468174187f
parent 3835717f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment