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

Commit 5b057743 authored by David Friedman's avatar David Friedman Committed by Android (Google) Code Review
Browse files

Merge "Docs: Fixes instructions for manually putting device into Doze." into mnc-docs

parents 673e4736 8e69aaff
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ minutes per app.</p>

<p>
  High-priority GCM messages do not otherwise affect Doze mode, and they don’t
  affect the state of any other app, This means that your app can use them to communicate
  affect the state of any other app. This means that your app can use them to communicate
  efficiently while minimizing battery impacts across the system and device.
</p>

@@ -377,13 +377,18 @@ matches the <a href="#whitelisting-cases">acceptable use cases</a> for whitelist
  <li>Run your app and leave it active.
  </li>

  <li>Shut off the device screen. (The app remains active.)
  </li>

  <li>Force the system to cycle through Doze modes by running the following
  commands:
  </li>

  <pre class="no-pretty-print">$ adb shell dumpsys battery unplug
$ adb shell dumpsys deviceidle step
$ adb shell dumpsys deviceidle -h</pre>
  <pre class="no-pretty-print">
$ adb shell dumpsys battery unplug
$ adb shell dumpsys deviceidle step</pre>

  <p>You may need to run the second command more than once. Repeat it until
  the device state changes to idle.</p>
  </li>

  <li> Observe the behavior of your app after you reactivate the device. Make