summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorBaligh Uddin <baligh@google.com>2012-11-02 16:50:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-02 16:50:29 -0700
commit940e92e124db5e97427d4c4942ce68d953879060 (patch)
treed700cb9fd63d4fae963271fe14feb09604de9571 /services
parent35d0dea38bad69082f4153d9c335061a70fac4fc (diff)
parent841ce670b29180a157a084a9c0e803b13e92020c (diff)
downloadframeworks_base-940e92e124db5e97427d4c4942ce68d953879060.zip
frameworks_base-940e92e124db5e97427d4c4942ce68d953879060.tar.gz
frameworks_base-940e92e124db5e97427d4c4942ce68d953879060.tar.bz2
am 841ce670: Merge commit \'81af21e67cd842d16d4b45e8a2d1ec56ff8d764f\' into jb-mr1-dev
* commit '841ce670b29180a157a084a9c0e803b13e92020c': (26 commits) hide the correct text, and more text, on bounce Improve PIN key layouts. Obscure speech for PIN password keys when no headset plugged in. Initial changes to allow dropping on delete target to remove widget. hide multiuser selector when IME is up. Block swipe up gesture if challenge non-interactive. Properly disable challenge handle. Disable disable back if using an alternate back icon. Disable security handle when swiping into camera widget. Import translations. DO NOT MERGE Fix small issue with previous CL Widget size policy, size callbacks Don't show security method until we actually return from the camera Fix whitespace problem and sync with prototype. PUK support. Fix build. SIM PIN support. Use clock's widget as the default keyguard widget Add configurable em-dash separator for all concatenated keyguard strings Cleaning up keyguard persistence threads when the pager is detached. (Bug 7460991) ...
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/AppWidgetServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/AppWidgetServiceImpl.java b/services/java/com/android/server/AppWidgetServiceImpl.java
index d0dd9cf..daa82f2 100644
--- a/services/java/com/android/server/AppWidgetServiceImpl.java
+++ b/services/java/com/android/server/AppWidgetServiceImpl.java
@@ -599,7 +599,7 @@ class AppWidgetServiceImpl {
}
public void bindAppWidgetId(int appWidgetId, ComponentName provider, Bundle options) {
- mContext.enforceCallingPermission(android.Manifest.permission.BIND_APPWIDGET,
+ mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BIND_APPWIDGET,
"bindAppWidgetId appWidgetId=" + appWidgetId + " provider=" + provider);
bindAppWidgetIdImpl(appWidgetId, provider, options);
}
@@ -607,7 +607,7 @@ class AppWidgetServiceImpl {
public boolean bindAppWidgetIdIfAllowed(
String packageName, int appWidgetId, ComponentName provider, Bundle options) {
try {
- mContext.enforceCallingPermission(android.Manifest.permission.BIND_APPWIDGET, null);
+ mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BIND_APPWIDGET, null);
} catch (SecurityException se) {
if (!callerHasBindAppWidgetPermission(packageName)) {
return false;