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

Commit 0a7f1d4c authored by Rubin Xu's avatar Rubin Xu
Browse files

Update javadoc for EXEMPT_FROM_POWER_RESTRICTIONS

Mention that it does not exempt apps from Doze mode.

Bug: 365116592
Flag: EXEMPT DOCS_ONLY
Test: None
Change-Id: Ibb444d2c69bb115c319ff802817005901d7ed4b0
parent 8bd6ab3a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4051,10 +4051,13 @@ public class DevicePolicyManager {
    public static final int EXEMPT_FROM_HIBERNATION =  3;
    /**
     * Exempt an app from all power-related restrictions, including app standby and doze.
     * Exempt an app from all power-related restrictions, including app standby.
     * In addition, the app will be able to start foreground services from the background,
     * and the user will not be able to stop foreground services run by the app.
     *
     * <p><strong>Note:</strong> This option does NOT exempt apps from Doze mode. In fact,
     * DPC apps themselves are not automatically exempted from Doze mode either.
     *
     * @hide
     */
    @SystemApi