Prevent apps from toggling Wifi when in Airplane mode

The callers of setWifiEnabled must have NETWORK_SETTINGS permissions
to able to enable Wifi in Airplane Mode.
Add unit tests to verify the newly introduced code paths.

Bug: 63515218
Test: Unit tests, mannual testing with an app
Change-Id: Id5e6941a9748619b0c2b54102fb244178dd47472
2 files changed
tree: da337df6390d4a79454bb49ffdf49b5d171ad4dd
  1. service/
  2. PREUPLOAD.cfg