- allow setting to handle some wifi related intents
- remove ssid check (phone setting doesn't have one), instead, show error message if the adding thew new network fails
Bug: 79118119,110349081
Test: manual
Change-Id: I5bf3ac489e514ad545435ea10b9a3c7f6e3101f8
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a92c87b..d57ddd0 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -77,6 +77,17 @@
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
+
+ <!-- Handles wifi related intent -->
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.WIFI_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <intent-filter android:priority="1">
+ <action android:name="android.net.wifi.PICK_WIFI_NETWORK" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+
<meta-data android:name="distractionOptimized" android:value="true"/>
</activity>