diff options
author | Tony Mak <tonymak@google.com> | 2017-12-21 20:03:29 +0000 |
---|---|---|
committer | Tony Mak <tonymak@google.com> | 2017-12-22 11:23:08 +0000 |
commit | 60f53e67f622c0e1822bf3d6f02ff5216ac1b63d (patch) | |
tree | ad454ce4dd6737ba3547eea8da243d57eaff75d8 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 82b43303ee0a41b1e132e6077e630d0ffa3ca343 (diff) |
Do not skip broadcast if the parent user is running
What's the problem is:
1. Work profile is not running (work mode is OFF)
2. Uninstall an app
3. ACTION_PACKAGE_REMOVED is sent to work profile
4. AMS skipped the broadcast as the target user of the broadcast is
not running, but LauncherAppsService is indeed listening to .
5. LauncherAppsService failed to notify Launcher the package change.
Proposed solution:
Not skipping broadcast if its parent user is running. Please also note that
since ag/2325045, BroadcastQueue won't deliever broadcast to
receiver running in stopped users.
Test: Turn off work, remove/ Install any app in work profile, observe
that Launcher reloads accordingly.
Test: Install an app in work profile, turn off work mode, switch
to secondary user, adb uninstall that app. Switch back to user 0,
observe Launcher reloads accordingly.
Test: Reboot the device, didn't see any "Skipping broadcast of" log.
BUG: 70503418
Change-Id: I35a269b09ab83a32a13cc7bc2066c8f71ba9f960
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions