A recent change is made in the wifi framework to allow apps with NETWORK_SETTINGS permission to bypass checks for the CHANGE_WIFI_STATE permission. Remove apps with NETWORK_SETTINGS permission from the list because turning off CHANGE_WIFI_STATE for those apps will not do anything. Bug: 78228349 Test: compile, robo test Manual test: flash go to Settings -> Apps & notifications -> Advanced -> Special app access -> Wi-Fi control Verify that the "Settings" app is no longer in the list Top right corner -> show system Verify that "System UI" is no longer in the list Change-Id: Ia430a6fb4d5dee534a03609ad1877976204935b2
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.