diff options
| author | 2013-09-25 22:43:16 +0000 | |
|---|---|---|
| committer | 2013-09-25 22:43:16 +0000 | |
| commit | 92baafb43a825e7585259dcb2da9c7b03d0cf72c (patch) | |
| tree | 076b164c4339d90e55281b02858cbbd4c403a08d | |
| parent | 04b0840b2e5367547fdd92f4e2c68cde16486062 (diff) | |
| parent | 4516798862bf46d12b3f1130b8480e8c804146d0 (diff) | |
Merge "Moving Launcher permission to Framework. (Bug 10343529)" into klp-dev
| -rw-r--r-- | api/current.txt | 2 | ||||
| -rw-r--r-- | core/res/AndroidManifest.xml | 21 | ||||
| -rw-r--r-- | core/res/res/values/strings.xml | 16 |
3 files changed, 39 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index a603b773b933..92e66de587c3 100644 --- a/api/current.txt +++ b/api/current.txt @@ -71,6 +71,7 @@ package android { field public static final java.lang.String INJECT_EVENTS = "android.permission.INJECT_EVENTS"; field public static final java.lang.String INSTALL_LOCATION_PROVIDER = "android.permission.INSTALL_LOCATION_PROVIDER"; field public static final java.lang.String INSTALL_PACKAGES = "android.permission.INSTALL_PACKAGES"; + field public static final java.lang.String INSTALL_SHORTCUT = "com.android.launcher.permission.INSTALL_SHORTCUT"; field public static final java.lang.String INTERNAL_SYSTEM_WINDOW = "android.permission.INTERNAL_SYSTEM_WINDOW"; field public static final java.lang.String INTERNET = "android.permission.INTERNET"; field public static final java.lang.String KILL_BACKGROUND_PROCESSES = "android.permission.KILL_BACKGROUND_PROCESSES"; @@ -132,6 +133,7 @@ package android { field public static final java.lang.String SUBSCRIBED_FEEDS_WRITE = "android.permission.SUBSCRIBED_FEEDS_WRITE"; field public static final java.lang.String SYSTEM_ALERT_WINDOW = "android.permission.SYSTEM_ALERT_WINDOW"; field public static final java.lang.String TRANSMIT_IR = "android.permission.TRANSMIT_IR"; + field public static final java.lang.String UNINSTALL_SHORTCUT = "com.android.launcher.permission.UNINSTALL_SHORTCUT"; field public static final java.lang.String UPDATE_DEVICE_STATS = "android.permission.UPDATE_DEVICE_STATS"; field public static final java.lang.String USE_CREDENTIALS = "android.permission.USE_CREDENTIALS"; field public static final java.lang.String USE_SIP = "android.permission.USE_SIP"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 4c15e18af425..b41b5b569da9 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1403,6 +1403,27 @@ android:label="@string/permlab_expandStatusBar" android:description="@string/permdesc_expandStatusBar" /> + <!-- ============================================================== --> + <!-- Permissions related to adding/removing shortcuts from Launcher --> + <!-- ============================================================== --> + <eat-comment /> + + <!-- Allows an application to install a shortcut in Launcher --> + <permission + android:name="com.android.launcher.permission.INSTALL_SHORTCUT" + android:permissionGroup="android.permission-group.SYSTEM_TOOLS" + android:protectionLevel="dangerous" + android:label="@string/permlab_install_shortcut" + android:description="@string/permdesc_install_shortcut" /> + + <!-- Allows an application to uninstall a shortcut in Launcher --> + <permission + android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" + android:permissionGroup="android.permission-group.SYSTEM_TOOLS" + android:protectionLevel="dangerous" + android:label="@string/permlab_uninstall_shortcut" + android:description="@string/permdesc_uninstall_shortcut"/> + <!-- ==================================================== --> <!-- Permissions related to accessing sync settings --> <!-- ==================================================== --> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index c57873e983df..c20c427b5bb9 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -599,6 +599,22 @@ <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permdesc_expandStatusBar">Allows the app to expand or collapse the status bar.</string> + <!-- Title of an application permission, listed so the user can install application shortcuts + in their Launcher --> + <string name="permlab_install_shortcut">install shortcuts</string> + <!-- Description of an application permission, listed so the user can install application shortcuts + in their Launcher --> + <string name="permdesc_install_shortcut">Allows an application to add + Homescreen shortcuts without user intervention.</string> + + <!-- Title of an application permission, listed so the user can uninstall application shortcuts + in their Launcher --> + <string name="permlab_uninstall_shortcut">uninstall shortcuts</string> + <!-- Description of an application permission, listed so the user can install application shortcuts + in their Launcher --> + <string name="permdesc_uninstall_shortcut">Allows the application to remove + Homescreen shortcuts without user intervention.</string> + <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permlab_processOutgoingCalls">reroute outgoing calls</string> <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> |