Hi, I’ve tried to change network connection settings with set_network_connection() method from Python’s webdriver. I’ve used
set_network_connection(0) //No connection
“Mobile data” and “WiFi” in Android’s settings are turned off, but connection is still possible (e.g. I can browse websites).
Tested on LG G4 (Android 5.1), Samsung Galaxy S6 (Android 5.1.1) and Nexus 6 (Android 7.0)