summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2014-10-07 20:03:24 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-07 20:03:24 +0000
commit18ab83e571e1ef7e4599d38cffc080dca704a06d (patch)
tree492a2425f6fef238ca7982cea84b521bf487d2df /services
parentfc3487ceddbcea9a28148a90a8e0ba5a4b76b08f (diff)
parentf189c445b84365a3f1bd2b678fdca37f9df8d5d1 (diff)
downloadframeworks_base-18ab83e571e1ef7e4599d38cffc080dca704a06d.zip
frameworks_base-18ab83e571e1ef7e4599d38cffc080dca704a06d.tar.gz
frameworks_base-18ab83e571e1ef7e4599d38cffc080dca704a06d.tar.bz2
am f189c445: am 1a98dd5c: Merge "Load shared library dependencies for AppWidgets" into lmp-dev
* commit 'f189c445b84365a3f1bd2b678fdca37f9df8d5d1': Load shared library dependencies for AppWidgets
Diffstat (limited to 'services')
-rw-r--r--services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java b/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java
index 86cfdb9..fca13f8 100644
--- a/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java
+++ b/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java
@@ -2207,9 +2207,15 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
private List<ResolveInfo> queryIntentReceivers(Intent intent, int userId) {
final long identity = Binder.clearCallingIdentity();
try {
+ int flags = PackageManager.GET_META_DATA;
+
+ // Widgets referencing shared libraries need to have their
+ // dependencies loaded.
+ flags |= PackageManager.GET_SHARED_LIBRARY_FILES;
+
return mPackageManager.queryIntentReceivers(intent,
intent.resolveTypeIfNeeded(mContext.getContentResolver()),
- PackageManager.GET_META_DATA, userId);
+ flags, userId);
} catch (RemoteException re) {
return Collections.emptyList();
} finally {