How to disable warning messages?
You can use Tasker with the AutoInput plugin to detect the pop ups and close them. 

Or you can use Tasker to turn Wi-Fi, GPS etc on/off. You may have to add Tasker as an admin app for it to control the GPS and some other functions.