Commit Graph

3313 Commits

Author SHA1 Message Date
Treehugger Robot
585d034210 Merge "[Catalyst] Implement get{Read,Write}Permissions for Wifi hotspot" into main 2024-12-29 15:32:44 -08:00
Priyanka Advani (xWF)
47d59ab974 Merge "Revert "[AAPM] Add advanced protection dialog according to API f..."" into main 2024-12-27 14:25:58 -08:00
Sunny Shao
80f8684b9e [Catalyst] Implement get{Read,Write}Permissions for Wifi hotspot
NO_IFTTT=Catalyst migration

Test: Devtool
Fix: 384827196
Flag: com.android.settings.flags.catalyst_tether_settings
Change-Id: I6716b8060754d87a07cd00d0074b800985729459
2024-12-27 20:42:48 +08:00
Jacky Wang
cfcf20c70a [Catalyst] Provide screen key to @ProvidePreferenceScreen
NO_IFTTT=Catalyst only

Bug: 386179791
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: Ie8106ec45a32e4a61826512fc62746c9ffc47d9c
2024-12-27 17:14:27 +08:00
Jacky Wang
c1fb46f717 [Catalyst] Implement get{Read,Write}Permissions for Use Wi-Fi Calling
Bug: 385288187
Flag: com.android.settings.flags.catalyst_wifi_calling
Test: devtool
Change-Id: I28d51248285ee153bdbfe04dd31e137107bef501
2024-12-27 15:44:38 +08:00
Treehugger Robot
0553c76186 Merge "[Catalyst] Implement get{Read,Write}Permissions for Wi-Fi" into main 2024-12-26 21:30:12 -08:00
Jason Chiu
0fe222774d [Catalyst] Implement get{Read,Write}Permissions for Wi-Fi
NO_IFTTT=Catalyst only

Fix: 385268791
Flag: com.android.settings.flags.catalyst_internet_settings
Test: devtool
Change-Id: I136aacd63d079a8d3bfafba3b0aa3fd92bd582a4
2024-12-26 16:02:49 +08:00
Yuchen Sun
0f1c0f3ceb Merge "[Expressive design] Update wifi entry preference padding." into main 2024-12-25 22:43:29 -08:00
Yuchen
ccf8ae4fa3 [Expressive design] Update wifi entry preference padding.
Bug: 349681531
Flag: EXEMPT migration
Test: visual
Change-Id: I511d2b3e183472a12fdd07a293eda4c04617bc6c
2024-12-25 03:19:55 +00:00
Priyanka Advani (xWF)
2574343b43 Revert "[AAPM] Add advanced protection dialog according to API f..."
Revert submission 30767017-aapm-dialog-api-feedback

Reason for revert: Droidmonitor created revert due to b/384828570. Will be verifying through ABTD before submission.

Reverted changes: /q/submissionid:30767017-aapm-dialog-api-feedback

Change-Id: Ibf26aca2453f2007370974290f5c16d6b091341e
2024-12-23 13:41:43 -08:00
Chaohui Wang
d830acf625 Send initial status for wifiStateFlow
To make sure this flow is never empty, use unknown as default.

Fix: 383050153
Flag: EXEMPT bug fix
Test: manual - on Network & internet
Test: unit test
Change-Id: Iaa421749ab917ebc651a95ccdf1a4ab1cb9ba112
2024-12-23 11:50:51 +08:00
Treehugger Robot
54653364bc Merge "[Catalyst] Refine Wi-Fi preferences" into main 2024-12-20 06:56:56 -08:00
Weng Su
9d83ce76ba [Catalyst] Refine Wi-Fi preferences
- Use application context to get system services to avoid memory leaks

NO_IFTTT=Catalyst only

Bug: 385116691
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiHotspotSwitchPreferenceTest \
         WifiSwitchPreferenceTest

Change-Id: I4340136d8d0118801ef450809424127f84afbb92
2024-12-20 21:45:49 +08:00
Azhara Assanova
f2f9874122 Merge "[AAPM] Add advanced protection dialog according to API feedback" into main 2024-12-19 09:41:27 -08:00
Treehugger Robot
4bfd857a7e Merge changes from topic "catalyst" into main
* changes:
  [Catalyst] Specify read/write permissions for "Mobile data"
  [Catalyst] Update permission check API signature
2024-12-13 20:57:36 -08:00
Azhara Assanova
e2248f1c4f [AAPM] Add advanced protection dialog according to API feedback
This change also updates ActionDisabledByAdminDialog because the
AdvancedProtectionManager#createSupportIntent method is now static.

Bug: 378968840
Bug: 352420507
Test: ActionDisabledByAdminDialogTest
Test: WepNetworksPreferenceControllerTest
Test: manual
Flag: android.security.aapm_api
Change-Id: I8443742aadead45091fee757cbdf715d28eee495
2024-12-13 13:25:38 +00:00
Weng Su
e5d19b38cb Skip authentication if device was unlocked recently
- Sync the same behavior from SystemUI to Settings

Bug: 365611488
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiNetworkDetailsFragmentTest \
         WifiDetailPreferenceController2Test \
         WifiTetherSSIDPreferenceControllerTest \
         com.android.settings.wifi.dpp.WifiDppUtilsTest
atest -c com.android.settings.spa.wifi.dpp.WifiDppUtilsTest

Change-Id: Ie3e8374b1fdbbc61e9e5bbf0f5162b18ba1452f3
2024-12-13 18:10:44 +08:00
Jacky Wang
821d320051 [Catalyst] Update permission check API signature
NO_IFTTT=Catalyst only

Bug: 374115149
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: Ib13a5fddd517e3e260815b753b55c008e24d70d8
2024-12-13 16:09:58 +08:00
Hani Kazmi
2ccbf1dbe9 Merge "[AAPM] UX for disabling WEP" into main 2024-12-11 09:05:58 -08:00
Jacky Wang
3d595b169d [Catalyst] Fix enable state for Wi-Fi hotspot
NO_IFTTT=Catalyst only

Bug: 383232049
Flag: com.android.settings.flags.catalyst_tether_settings
Test: manual
Change-Id: I067e97820a19822eaad2e93e30d42f7f767bf855
2024-12-10 17:29:49 +08:00
Jacky Wang
fdbfa69183 Merge changes from topic "catalyst" into main
* changes:
  [Catalyst] Migrate bluetooth screen to catalyst
  [Catalyst] Migrate BluetoothFooterPreference
  [Catalyst] Fully migrate BluetoothMainSwitchPreference
  [Catalyst] Add SatelliteRepository.isSatelliteOn helper method
  [Catalyst] Support callChangeListener for MainSwitchBarPreference
2024-12-10 07:11:09 +00:00
Jacky Wang
95719f21b3 [Catalyst] Add SatelliteRepository.isSatelliteOn helper method
NO_IFTTT=Catalyst only

Bug: 335132588
Flag: EXEMPT refactor
Test: manual
Change-Id: Ib10f7f616a6deed438a129da4b2cb927915bfcda
2024-12-09 17:47:14 +08:00
Treehugger Robot
759c5644d1 Merge "[Expressive design] Migrate WifiPrivacyPage." into main 2024-12-09 07:55:43 +00:00
Jacky Wang
d989dc5c36 [Catalyst] Refine WifiHotspotSwitchPreference
NO_IFTTT=Catalyst only

Bug: 368359963
Flag: com.android.settings.flags.catalyst_tether_settings
Test: devtool
Change-Id: Ica09fe05cc4d30e1f55b4bd91996425ef951abf7
2024-12-09 12:44:59 +08:00
Weng Su
6fb75678e5 [Catalyst] Migrate Wi-Fi Hotspot preference
Bug: 368359963
Flag: com.android.settings.flags.catalyst_tether_settings
Test: Manual testing
atest -c TetherSettingsTest \
         TetherScreenTest

Change-Id: I89d418454af7887a4892c616f4efff481b536a91
2024-12-06 10:47:37 +00:00
Yuchen
8394517609 [Expressive design] Migrate WifiPrivacyPage.
Bug: 349681531
Flag: EXEMPT migration
Test: WifiPrivacyPageTest
Change-Id: Ic5574e6abe812d7b870e5aa70574960201d44082
2024-12-05 07:26:10 +00:00
Hani Kazmi
4efa8adfa6 [AAPM] UX for disabling WEP
Toggle is restricted, and trying to connect shows an error

Bug: 352420507
Change-Id: If20bf030d1c0aba55dac135a9f5f51e9a4255596
Test: Manually. Automated tests to follow
Flag: com.android.wifi.flags.wep_disabled_in_apm
2024-12-04 16:01:07 +00:00
Jacky Wang
f2d4490fa8 [Catalyst] Refine WifiSwitchPreference
NO_IFTTT=Catalyst only

Bug: 372733639
Flag: com.android.settings.flags.catalyst_internet_settings
Test: devtool
Change-Id: I3e46ea61135e37bab89cbdbeb04d1f1938593a89
2024-12-03 20:25:38 +08:00
Jacky Wang
10f0cd821c [Catalyst] Migrate "Use Wi-Fi calling"
Bug: 372732219
Flag: com.android.settings.flags.catalyst_wifi_calling
Test: devtool
Change-Id: I3183b1234b4129aa0cf0e5bc5324596a08f21195
2024-12-03 16:43:15 +08:00
Treehugger Robot
0496fc2de5 Merge "[Catalyst] Migrate Wi-Fi switch preference" into main 2024-12-03 08:31:30 +00:00
Jacky Wang
9011a4f965 [Catalyst] Fix NPE when open wifi calling screen
Bug: 379961379
Flag: com.android.settings.flags.catalyst_wifi_calling
Test: manual
Change-Id: I7c58ee786f5ca8ad76624d2c33d0375b3a0f1993
2024-12-03 14:55:22 +08:00
Weng Su
9faf231dc4 [Catalyst] Migrate Wi-Fi switch preference
NO_IFTTT=Add Catalyst preference

Bug: 372733639
Flag: com.android.settings.flags.catalyst_internet_settings
Test: Manual testing
atest -c NetworkProviderSettingsTest \
         NetworkProviderScreenTest
atest -c WifiSwitchPreferenceTest

Change-Id: Ic6023907608e831d0a946005dd0eb6fd88b301c0
2024-12-03 06:51:18 +00:00
Treehugger Robot
7e8222833b Merge "Remove all pending messages when fragment destroyed" into main am: f85bc08954 am: 07323c29b6
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3329595

Change-Id: I46c5134df5fbe920acc628f4e9456681ca21d2e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-11 12:39:49 +00:00
Treehugger Robot
f85bc08954 Merge "Remove all pending messages when fragment destroyed" into main 2024-11-11 11:50:09 +00:00
dingfeisong
64aaa1440a Remove all pending messages when fragment destroyed
Remove all pending messages when the fragment has destroyed.
Otherwise, after fragment disattachs its context, an exception
will be reported when process the messages.

Bug:377166756

Change-Id: I333cedb45c0fe43b81abbfbe19e37f42f98def91
Signed-off-by: dingfeisong <dingfeisong@xiaomi.corp-partner.google.com>
2024-11-04 13:40:27 +08:00
Treehugger Robot
75e2dc4b21 Merge "Avoid disabling the Wi-Fi hotspot switch causing Talkback confusion" into main 2024-10-28 05:38:51 +00:00
Weng Su
259d3a47c8 Avoid disabling the Wi-Fi hotspot switch causing Talkback confusion
- Use local variables to filter inappropriate callbacks when the switch is busy

Bug: 374234537
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiTetherSwitchBarControllerTest

Change-Id: If5237230c73cae5a6230a6d3fdaa65a8511bdcd8
2024-10-28 03:31:32 +08:00
Fan Wu
60521ee2f9 Add WifiCallingScreen and corresponding TS flag
Bug: 372732219
Test: atest
Flag: com.android.settings.flags.catalyst_wifi_calling_settings

Change-Id: I3d78b6745e1127a0a7e73ec20ae95e9c9db2c139
2024-10-24 10:44:24 +08:00
Fan Wu
059593f1b1 Update WifiCallingSettingsForSub to inherit DashboardFragment. Controller logic will be refactored later
Bug: 372732219
Test: atest
Flag: EXEMPT refactor
Change-Id: I8fc419acd0311cc5b11d78662fb6a13b2c61b169
2024-10-23 09:07:59 +00:00
Weng Su
efe8d52f77 Connect to OWE Wi-Fi network when QR code has no password
- Since there is no password for Wi-Fi security in OPEN and OWE, try to connect to one of them

Bug: 360377330
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiDppQrCodeScannerFragmentTest

Change-Id: Ia0a59e099b724170ad993df8b4246b94e0da392c
2024-10-14 07:02:18 +08:00
Weng Su
5644fe1aa7 Add log for new error string in WiFi QR code scanning
Bug: 371506692
Flag: EXEMPT log only update
Test: manual test
Change-Id: I2bc15b0aa0a98a5f8193383decb60308544c810c
2024-10-04 18:27:34 +08:00
Treehugger Robot
78153998c7 Merge "Distinguish different errors of wifi QR code" into main 2024-10-02 21:26:00 +00:00
Yufan Cao
73f66eb8f1 Distinguish different errors of wifi QR code
When failure occurs after scanning wifi QR code, only "Check connection
and try again" will show, which is confusing for user to understand the
errors and take next action.

Add more string resources to cover different errors.

Co-authored-by: Yufan Cao <Yufan.Cao@sony.com>

Flag: EXEMPT bugfix
Test: manual test
Bug: 362305039
Change-Id: I85145eb67eecdc3aa06bb7b8a7b3e7f0ffea1f62
2024-10-02 20:23:42 +00:00
Quang Anh Luong
5aa95553cd Do not auto-downgrade WPA3->Transition mode if password too short
Hotspot security is auto-downgraded from WPA3->Transition mode if the
band is changed from 6Ghz -> 2.4/5GHz. However, Transition mode requires
a password of 8 chars or more, but WPA3 SAE does not. Avoid changing the
security type if the current password is less than 8 chars.

Flag: EXEMPT minor bugfix

Bug: 366452667
Test: atest WifiHotspotRepositoryTest
Change-Id: I1abadd59966e170b51899782746b9f14e33e6186
2024-09-26 07:09:47 +00:00
Weng Su
0256fe816d Avoid launching captive portal pages when uri is empty
- If uri is empty it will cause ActivityNotFoundException when calling startActivity

Bug: 363782926
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiDetailPreferenceController2Test

Change-Id: I48b9a53afe08a7c5e8e512c1961d6aea22a12a21
2024-09-16 17:05:10 +08:00
Weng Su
c749ba028a Fix Wi-Fi details crash in secondary users
- When Wi-Fi details are restricted for secondary users, UI components will be removed to prevent user interaction
  - The UI update function may not obtain the expected resources, causing NPE issues

Bug: 362151753
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiNetworkDetailsFragmentTest

Change-Id: Ia97b4e202faff85ced0b6eaf2e4b4f0dc04b5cef
2024-09-05 03:58:40 +08:00
Weng Su
e8c9816d15 Merge "Fix WifiPrivacy for special SSID AP" into main 2024-08-30 09:25:46 +00:00
Weng Su
407f69fec5 Fix WifiPrivacy for special SSID AP
- root cause: specail SSID AP(contain '%', end with '\' or '/' and end with '???'), andriodx Navigation cannot find destination

- changes: use Base64 UrlEncode replace String

Bug: 360304229
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiPrivacyPageProviderTest

Change-Id: Ifb89451477f2ba143f504b94c8d4d9167aee2c2e
2024-08-30 16:24:49 +08:00
Chaohui Wang
c72c540ab6 Merge "Clean up InternetPreferenceController" into main 2024-08-30 03:29:56 +00:00
Weng Su
1d92232b84 Add WIFI_LEVEL_UNREACHABLE logs
- Add WIFI_LEVEL_UNREACHABLE logs in Wi-Fi details settings

Bug: 362269742
Flag: EXEMPT add logs only
Test: Manual testing
Change-Id: I9a2b01df06417bafa85d300f1abe41797ec08143
2024-08-29 17:08:25 +08:00