How to change network connection using Appium Java client 5.0.2?


I am facing an issue while setting connections (Data ON/OFF, Wifi ON/OFF etc). I am using current capabilities of java client but not able to do so… I am not using ads because it is not working with cloud. Can anyone please help me here?

Appium version - 1.7.2
Java client - 5.0.2