summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eric Schmidt <erschmid@google.com> 2016-05-31 15:56:48 -0700
committer Eric Schmidt <erschmid@google.com> 2016-06-07 21:22:52 +0000
commitb603eae9b363ca292d721243819dfd701a194b65 (patch)
tree107fc1b98ed6ffea02f3c4a0a4e03132f979649f
parent5fb0843a7f276d8f597e8e6337d60e2901afd430 (diff)
docs: Added CL commands for data-saver testing
Bug: 28951799 Change-Id: I03ae59b1d98b8e58dc859c8158b318718c8a9f13
-rw-r--r--docs/html/preview/features/data-saver.jd30
1 files changed, 26 insertions, 4 deletions
diff --git a/docs/html/preview/features/data-saver.jd b/docs/html/preview/features/data-saver.jd
index 761556e1ead6..abc47eaa3837 100644
--- a/docs/html/preview/features/data-saver.jd
+++ b/docs/html/preview/features/data-saver.jd
@@ -179,10 +179,13 @@ if (connMgr.isActiveNetworkMetered()) {
Testing with Android Debug Bridge Commands
</h2>
-The <a href="{@docRoot}tools/help/adb.html">Android Debug Bridge (ADB)</a>
-provides a few commands that you can use to check and configure network
-permissions:
-
+<p>
+ The <a href="{@docRoot}tools/help/adb.html">Android Debug Bridge (ADB)</a>
+ provides a few commands that you can use to test your app in Data Saver
+ conditions. You can check and configure network
+ permissions or set wireless networks as metered to test your app on unmetered
+ networks.
+</p>
<dl>
<dt>
<code>$ adb shell dumpsys netpolicy</code>
@@ -231,4 +234,23 @@ permissions:
Removes the specified package UID from the whitelist to block background
metered data usage while Data Saver is enabled.
</dd>
+
+ <dt>
+ <code>$ adb shell cmd netpolicy list wifi-networks</code>
+ </dt>
+
+ <dd>
+ Lists all wifi networks, displaying whether they're metered.
+ </dd>
+
+
+ <dt>
+ <code>$ adb shell cmd netpolicy set metered-network &lt;WIFI_SSID&gt;
+ true</code>
+ </dt>
+
+ <dd>
+ Sets wifi with the specified SSID as metered, allowing you to simulate a
+ metered network on an unmetered network.
+ </dd>
</dl> \ No newline at end of file