I don’t know on android >4.0 but on previous version (rooted phone) even when the phone isn’t lock you can’t disable wifi/gps or Data connection. It gets enabled again immediately after.