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
Loading
Please register or sign in to comment