diff options
| author | 2016-06-07 21:57:50 +0000 | |
|---|---|---|
| committer | 2016-06-07 21:57:50 +0000 | |
| commit | 16ac726542d5c4c016131a85d58f66aff9736e8e (patch) | |
| tree | ce01aabff81af06b8d1e62adcabc5ed0f270d19f | |
| parent | 2e9b43efd53fbbce733b6e5c328f37c635c699a3 (diff) | |
| parent | d0ef8a01470e83c9161e398b804b5264d71a6bb3 (diff) | |
docs: Added CL commands for data-saver testing am: b603eae9b3 am: 2d05938af9
am: d0ef8a0147
* commit 'd0ef8a01470e83c9161e398b804b5264d71a6bb3':
docs: Added CL commands for data-saver testing
Change-Id: I14490c4309d6318436b8430035de8cb27329141e
| -rw-r--r-- | docs/html/preview/features/data-saver.jd | 30 |
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 <WIFI_SSID> + 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 |