diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-09-04 18:48:37 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-09-04 18:48:37 -0700 |
commit | fd8bf5c790749b0382c9d70424cac2367d6276e3 (patch) | |
tree | 99c2e277f5bb882e23da577584632be152f3e1b0 /services/java/com/android/server/AppWidgetService.java | |
parent | d2a8df9541c198d555ef6a50347acb9160509863 (diff) |
Fix another issue #7097984 java.lang.SecurityException: Permission Denial:
broadcast asks to run as user -1 but is calling from user 0; this requires
Dupped bug of a different problem.
Change-Id: I15f4ab08b81f5f5746ba1cd183dee4f0b1281df5
Diffstat (limited to 'services/java/com/android/server/AppWidgetService.java')
-rw-r--r-- | services/java/com/android/server/AppWidgetService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/AppWidgetService.java b/services/java/com/android/server/AppWidgetService.java index 63761cc0cca4..343e70d80e2f 100644 --- a/services/java/com/android/server/AppWidgetService.java +++ b/services/java/com/android/server/AppWidgetService.java @@ -155,8 +155,8 @@ class AppWidgetService extends IAppWidgetService.Stub // Register for configuration changes so we can update the names // of the widgets when the locale changes. - mContext.registerReceiver(mBroadcastReceiver, new IntentFilter( - Intent.ACTION_CONFIGURATION_CHANGED), null, null); + mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, + new IntentFilter(Intent.ACTION_CONFIGURATION_CHANGED), null, null); // Register for broadcasts about package install, etc., so we can // update the provider list. |