OSDN Git Service

Allow widget hosts to see widgets from locked profiles.
authorKenny Guy <kennyguy@google.com>
Mon, 15 Feb 2016 19:04:31 +0000 (19:04 +0000)
committerKenny Guy <kennyguy@google.com>
Fri, 19 Feb 2016 14:31:29 +0000 (14:31 +0000)
commit33f9a9c21a3251fb6e6828910a20174360785ae5
tree1dce6dda0fb614a4fe3f56045f91f871c17a65b9
parent0f900c02d9aafa9a98ff39ea7d661c1cdfbddcdb
Allow widget hosts to see widgets from locked profiles.

Avoid launchers removing widgets by handling case
where a widget host is in an unlocked parent user and
widget providers are in a locked managed profile.
For this case allow launcher to see the widgets from
non-crypto aware widget providers.
Mask out widgets from locked profiles.
Fix issue with widgets not being masked when adding
new widgets when user is locked / quiet or package
is suspended.

Bug: 26721345
Bug: 27037962
Change-Id: I60b5bd934c1547110e374ab4eefbee6aade37dc6
services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java