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

Commit b7a84c00 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Update BOOT_COMPLETED docs to clarify the stopped state behavior

Clarify that on Android 15 and newer, the 
ACTION_BOOT_COMPLETED broadcast is also sent when
an app is launched from the stopped state.

Bug: 380673972
Test: n/a
Flag: DOCS_ONLY
Change-Id: I195bc4bb3981c4c80cc52ee0d0b4d48994829b72
parent 31f04d4d
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2750,6 +2750,13 @@ public class Intent implements Parcelable, Cloneable {
     * To receive this broadcast, your receiver component must be marked as
     * being {@link ComponentInfo#directBootAware}.
     * <p class="note">
     *
     * <p>
     * Starting from Android {@link Build.VERSION_CODES#VANILLA_ICE_CREAM}, this broadcast is
     * not only sent after the device boots but also delivered to an app when it is
     * removed from the {@link ApplicationInfo#FLAG_STOPPED Stopped} state, such as the first
     * launch after force-stopping the app.
     *
     * This is a protected intent that can only be sent by the system.
     *
     * @see Context#createDeviceProtectedStorageContext()
@@ -2773,6 +2780,13 @@ public class Intent implements Parcelable, Cloneable {
     * their lock pattern or PIN for the first time), you can listen for the
     * {@link #ACTION_LOCKED_BOOT_COMPLETED} broadcast.
     * <p class="note">
     *
     * <p>
     * Starting from Android {@link Build.VERSION_CODES#VANILLA_ICE_CREAM}, this broadcast is
     * not only sent after the device boots but also delivered to an app when it is
     * removed from the {@link ApplicationInfo#FLAG_STOPPED Stopped} state and the user is
     * unlocked, such as the first launch after force-stopping the app.
     *
     * This is a protected intent that can only be sent by the system.
     */
    @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)