Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5b210a8 authored by Kevin Hufnagle's avatar Kevin Hufnagle
Browse files

Merge from oc-preview-docs-release: docs: Added note that INSTALL_SHORTCUT is...

Merge from oc-preview-docs-release: docs: Added note that INSTALL_SHORTCUT is implicit broadcast as of O.

The INSTALL_SHORTCUT broadcast is now a private, implicit broadcast,
so app developers should pin a shortcut themselves using the methods
in the ShortcutManager class on Android O and higher. Updated
manifest permission doc accordingly.

Test: make ds-docs
Bug: 36442658
Change-Id: I1777dfde691089485dc4e6b7cb8a9de0ee527298
Original-Change-Id: I0ef5595e2f08efbab6c28af5fa2f6b6c2295424c
parent ea0de895
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1965,6 +1965,11 @@
    <eat-comment />
    <eat-comment />


    <!-- Allows an application to install a shortcut in Launcher.
    <!-- 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
         <p>Protection level: normal
    -->
    -->
    <permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
    <permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"