From eb70b243f7547b51b28be444648347248177fc6d Mon Sep 17 00:00:00 2001 From: Weng Su Date: Fri, 12 Nov 2021 22:50:12 +0800 Subject: [PATCH] Fix the CtsVerifier issue - The "android.settings.WIFI_SETTINGS" intent-filter needs to be the first element of the intent-filter in the activity for profile intent filters - Redirect the "android.settings.WIFI_SETTINGS" action to Internet Settings via FRAGMENT_CLASS meta-data - Add PRIMARY_PROFILE_CONTROLLED meta-data to WifiSettings2Activity - Remove unnecessary WifiSettings2Activity from Settings.java Bug: 205258444 Test: manual test - Long press the Internet Tile in QS for WIFI_SETTINGS action testing - Use adb command to test the shortcut action adb shell am start com.android.settings/.Settings\\\$WifiSettings2Activity Change-Id: I9ac397828edf1083efcf790eb41b3e978ed6bdca --- AndroidManifest.xml | 34 ++++++++++++++------------ src/com/android/settings/Settings.java | 1 - 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index e4e1a10d293..afaf0466c8e 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -305,12 +305,16 @@ android:icon="@drawable/ic_homepage_network" android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> + + + + + android:value="com.android.settings.network.NetworkProviderSettings"/> + android:value="@string/menu_key_network"/> + android:value="true"/> @@ -321,9 +325,11 @@ android:icon="@drawable/ic_homepage_network" android:exported="true"> + android:value="com.android.settings.network.NetworkProviderSettings"/> + android:value="@string/menu_key_network"/> + - - + + - - - - - - + + + android:value="com.android.settings.network.NetworkProviderSettings"/> + android:value="@string/menu_key_network"/> + android:value="true"/>