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

Commit 859ebc0d authored by Quddus Chong's avatar Quddus Chong
Browse files

cherrypick from mnc-dev branch:

docs: Fixed adb shell commands for setting/getting the inactive state of an app.
bug: 23372372.
Original Change-Id: I4fc846018189761d00111e196e5de9214009e6ad.

Change-Id: Id1d9c45200abec339bbc330ba9988349dcd19473
parent 78226d74
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -101,9 +101,9 @@ and calling the following commands:
</p>
<pre class="no-prettyprint">
$ adb shell dumpsys battery unplug
$ adb shell am set-idle &lt;packageName&gt; true
$ adb shell am set-idle &lt;packageName&gt; false
$ adb shell am get-idle &lt;packageName&gt;
$ adb shell am set-inactive &lt;packageName&gt; true
$ adb shell am set-inactive &lt;packageName&gt; false
$ adb shell am get-inactive &lt;packageName&gt;
</pre>

<p class="note"><strong>Note</strong>:
+2 −2
Original line number Diff line number Diff line
@@ -166,12 +166,12 @@ $ adb shell dumpsys deviceidle -h

<pre>
$ adb shell am broadcast -a android.os.action.DISCHARGING
$ adb shell am set-idle &lt;packageName&gt; true
$ adb shell am set-inactive &lt;packageName&gt; true
</pre>

  </li>
  <li>Simulate waking your app using the following command:
    <pre>$ adb shell am set-idle &lt;packageName&gt; false</pre>
    <pre>$ adb shell am set-inactive &lt;packageName&gt; false</pre>
  </li>
  <li>Observe the behavior of your app when it is woken. Make sure it recovers gracefully
    from standby mode. In particular, you should check if your app's Notifications and background