diff --git a/docs/html/preview/features/data-saver.jd b/docs/html/preview/features/data-saver.jd index 761556e1ead6a..abc47eaa3837e 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 -The Android Debug Bridge (ADB) -provides a few commands that you can use to check and configure network -permissions: - +
+ The Android Debug Bridge (ADB) + 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. +
$ adb shell dumpsys netpolicy
@@ -231,4 +234,23 @@ permissions:
Removes the specified package UID from the whitelist to block background
metered data usage while Data Saver is enabled.
+
+ $ adb shell cmd netpolicy list wifi-networks
+ $ adb shell cmd netpolicy set metered-network <WIFI_SSID>
+ true
+