summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kevin Hufnagle <khufnagle@google.com> 2017-12-01 21:16:57 +0000
committer android-build-merger <android-build-merger@google.com> 2017-12-01 21:16:57 +0000
commit4f7413ea39e52fba994d41007f3f02170f1edfb2 (patch)
tree809bfaac39be98d76b0f2c0d1ce779da8926db01
parentf27dd76fa9f78eb116d3b425e9896d458aaf96fc (diff)
parent22d290b289c0748e41632da1fb8d0ce39fc0f526 (diff)
Merge "Merge from oc-preview-docs-release: docs: Added note that INSTALL_SHORTCUT is implicit broadcast as of O." into oc-dev am: a96e533840 am: 87b5b0aa1a am: 9d3563ad78
am: 22d290b289 Change-Id: I994b9e0f7ea2b585c4f8f03231ed4d4c92e7e18e
-rw-r--r--core/res/AndroidManifest.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index e9e726b98ae7..5906b2762718 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -2058,6 +2058,11 @@
<eat-comment />
<!-- Allows an application to install a shortcut in Launcher.
+ <p>In Android O (API level 26) and higher, the <code>INSTALL_SHORTCUT</code> broadcast no
+ longer has any effect on your app because it's a private, implicit
+ broadcast. Instead, you should create an app shortcut by using the
+ {@link android.content.pm.ShortcutManager#requestPinShortcut requestPinShortcut()}
+ method from the {@link android.content.pm.ShortcutManager} class.
<p>Protection level: normal
-->
<permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"