Appium with Selenium: “networkConnection settings changes" not working in Android 5.0.2

My network changes wifi,data and airplane ON/OFF test scripts getting fail in Android 5.0.2, but the same scripts getting pass on android 4.4.4 version.

Please let me if any changes we need to modify by manually before run automation script in current version 5.0.2.