Add WiFi toggle prompts - settings
If permission review is enabled toggling WiFi on or off
results in a user prompt to collect a consent. This applies
only to legacy apps, i.e. ones that don't support runtime
permissions as they target SDK 22.
bug:28715749
Change-Id: I10d1231ea0c47eec5993dbe367cc0c245cba9385
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 722bba3..ac8954d 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2793,6 +2793,17 @@
android:excludeFromRecents="true">
</activity>
+ <activity android:name=".wifi.RequestToggleWiFiActivity"
+ android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"
+ android:excludeFromRecents="true"
+ android:permission="android.permission.CHANGE_WIFI_STATE">
+ <intent-filter>
+ <action android:name="android.net.wifi.action.REQUEST_ENABLE" />
+ <action android:name="android.net.wifi.action.REQUEST_DISABLE" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
<activity android:name=".wifi.WifiDialogActivity"
android:label=""
android:theme="@style/Transparent"