commit | c4d0186b30f94ec28f86dcbe533cccf7ce01c128 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue Oct 09 18:55:11 2018 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Oct 12 16:35:46 2018 +0900 |
tree | 6da766b32168527cb3c7125998e8491253d1f721 | |
parent | 272a77dd9a36130455e923473e62f3008b4473f8 [diff] |
Change permissions checks for setAirplaneMode. Require NETWORK_SETTINGS (or NETWORK_SETUP_WIZARD) instead of the legacy CONNECTIVITY_INTERNAL permission. The users are as follows: - The system callers (Phone, Settings, SystemUI, VrSettings) all have NETWORK_SETTINGS. - SetupWizard has NETWORK_SETUP_WIZARD - sl4a has NETWORK_STACK Bug: 115302596 Test: builds, boots, airplane mode via SystemUI works Change-Id: I8ca40182bd8b5e3fd9a82296c0cc28de30ed4baf