Commit Graph

54142 Commits

Author SHA1 Message Date
Mill Chen
f6895743cf Deprecate Settings panels and its infrastructure
Bug: 328525899
Test: robotest
Change-Id: I30bc423e31e9202e70c509459f4397c296c8423f
2024-05-06 22:47:07 +00:00
Mill Chen
f4d7fe3082 Deprecate Volume panel and relevant objects
Bug: 328529042
Test: robotest
Change-Id: I462ddb72b2f764a016d957cc4195fc8298c5f21d
2024-05-06 22:33:06 +00:00
Mill Chen
840aa5e40b Deprecate Nfc panel and relevant objects
Bug: 328528962
Test: robotest
Change-Id: Ia2acf4268e9a444d8b4cfe36c6eb2bd198f4be64
2024-05-06 22:27:02 +00:00
Mill Chen
4c061771b7 Deprecated Wifi panel and relevant objects
Bug: 328529085
Test: robotest
Change-Id: I960718acbdf1d2be6c3b6b396cf2ac69d4aa3046
2024-05-06 22:22:52 +00:00
Pawan Wagh
b98a8acf9b Turn off automatic updates in page-agnostic mode
Update global settings to disable updates in page-agnostic mode

Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Bug: 295035851
Bug: 302391134
Change-Id: I170bb3ffd50a08a1399bffcde23e5f111d9a5a1d
2024-05-06 22:17:30 +00:00
Pawan Wagh
a697fba513 Show persistent notification for page-agnostic mode
When device enters page-agnostic mode using 16KB developer
options, show notification to user using boot receiver and service.
On clicked on notification, show detailed instructions on how to
get back to production mode. Removing OEM carrier unlock allowed
condition.

Bug: 295035851
Bug: 338139755
Bug: 302600682
Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Change-Id: Ib7a57af4c6151d2a8da1ec94130532d10b1679aa
2024-05-06 22:16:27 +00:00
Treehugger Robot
94291dfd2d Merge "Redirect Wifi Panel to settings page" into main 2024-05-06 19:13:19 +00:00
Mill Chen
e4f785c773 Redirect Volume Panel to settings page
Flag: com.android.settings.flags.slices_retirement
Bug: 328529042
Bug: 202262476
Test: manual test
adb shell am start -a android.settings.panel.action.VOLUME

Change-Id: I54f30d18eb10db864dcf5ee745b168b03e388b14
2024-05-06 18:13:37 +00:00
Eric Biggers
9ab4bf20f7 Merge changes I20f2330d,Iaca5b20c into main am: 790e28c431 am: 231766c463
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3061866

Change-Id: I66a91364d8211acf73310d55997bd5f6d08e2ae8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-06 18:09:47 +00:00
Mill Chen
1bd9cab5a0 Redirect Wifi Panel to settings page
Flag: com.android.settings.flags.slices_retirement
Bug: 328529085
Test: manual test
adb shell am start -a android.settings.panel.action.WIFI

Change-Id: Iaa7a7fd83000aa8106ceac486c8c96e3a9d1854d
2024-05-06 17:56:37 +00:00
Mill Chen
3905f1069a Redirect NFC Panel to settings page
Flag: com.android.settings.flags.slices_retirement
Bug: 328528962
Test: manual test
adb shell am start -a android.settings.panel.action.NFC

Change-Id: I5232c9e8ed8608d8f27bedbef10c62d7cc12cb8e
2024-05-06 17:54:32 +00:00
Eric Biggers
790e28c431 Merge changes I20f2330d,Iaca5b20c into main
* changes:
  Remove unused class ShadowKeyStore
  Use KeyProperties.UID_SELF instead of KeyStore.UID_SELF
2024-05-06 17:36:00 +00:00
songferngwang
5f3fc72bd4 Show sim onboarding for user when insert sim and no DDS
When the user remove the sim and then insert it back, the DDS may
be -1. If the DDS is -1, then the mobile data can not be turned on.

Show the sim onboarding for user for this case, the user can update
DDS by the flow.

Bug: 336380853
Test: verified UI
Change-Id: I7fd086cb08917f2cac2c1252585687179a2a2f93
2024-05-06 10:16:47 +00:00
songferngwang
8b2305acd4 Add the OtherSection for NetworkCellularGroupProvider
Bug: 338914255
Test: Verified the SIMs UI
Change-Id: I49d5e4126e43054b5d147de15d35805d1e445c38
2024-05-06 10:16:02 +00:00
Chaohui Wang
caaddc87f3 Clean up unused params from SubscriptionAnnotation
Bug: 338904413
Test: m Settings
Change-Id: Ic714066e45bb0050361c8096394929828a871589
2024-05-06 09:57:38 +00:00
Chaohui Wang
4d725d7715 Merge "Adjust padding on SIM onboarding screens" into main 2024-05-06 08:54:10 +00:00
Chaohui Wang
ffcbbd375a Clean up MobileNetworkSummaryStatus
Fix: 338904413
Test: m Settings
Change-Id: Ic26bf7833c8fbdbeffc4f47dcd6dcd6191394e1b
2024-05-06 07:26:06 +00:00
Weng Su
9245bf0b89 Merge "Don't set the Wi-Fi dialog to the topmost UI" into main 2024-05-06 07:18:49 +00:00
Chaohui Wang
5058a7f3b5 Adjust padding on SIM onboarding screens
Fix: 330899892
Test: visual - on Sim Onboarding Page
Change-Id: I2f09d8fc20ad9c51bb5d8c9fae703433a7f87ed8
2024-05-06 03:09:02 +00:00
Song Chun Fan
ba39bd6edd [Install-unknown-apps] not include all the apps that have OP_REQUEST_INSTALL_PACKAGES granted
Due to a recent change in AppOpsService, apps that share system_uid have all the appops granted. However, we don't want them to be listed under "Install unknown apps" if they don't explicitly declare the permission usage of REQUEST_INSTALL_PACKAGES in their manifest. This CL fixes that.

Change-Id: I025bc17c335093ae5d3b15a3bef67d659c8f790f
BUG: 338066634
BUG: 336677341
FIXES: 338066634
Test: manual by checking the Settings page
2024-05-03 21:48:16 +00:00
Lais Andrade
699bbe760d Fix feedback for main haptic settings toggle
The SettingsMainSwitchPreferenceController might trigger a state change
twice on the page main switch when the user toggles the setting value.

Make sure we only trigger haptic feedback when the state is changing
between untoggled to toggled to avoid a double-click feedback.

No flag for small bug fix, no UI changes.

Fix: 338334977
Test: enable the "Use vibration & haptics" settings and feel a single
      click feedback
Change-Id: I0c22b99bcb40f35ebe09c153133c354306ed1ff0
2024-05-03 14:56:30 +01:00
Weng Su
a955648be4 Don't set the Wi-Fi dialog to the topmost UI
- Set Wi-Fi dialog to topmost UI only when called by SysUI

Bug: 293965733
Flag: None
Test: Manual testing
atest -c WifiDialogActivityTest

Change-Id: I9215b3e7f86c0d31fa0c4c492f29032c3d14ad6d
2024-05-03 21:12:54 +08:00
Jason Chiu
41bd910d11 Merge "Check whether the user is a sub profile before starting Settings homepage" into main 2024-05-03 02:14:26 +00:00
Treehugger Robot
7b125fbe7d Merge "Add ActivityOptions to start instant hotspot settings in the background" into main 2024-05-02 22:28:43 +00:00
Weng Su
c5ab12732b Add ActivityOptions to start instant hotspot settings in the background
- Set intent with ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED

Bug: 338244101
Flag: None
Test: Manual testing
atest -c SharedConnectivityRepositoryTest

Change-Id: Ie983758dc039a7bbca80cca478ca23444527089b
2024-05-03 04:26:50 +08:00
Pawan Wagh
570afa5b7d Merge "Apply OTA from /vendor/boot_otas" into main am: 8c85f8b3c3 am: 883f1e9dba
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3065886

Change-Id: I122ccf18200a1fe0f17646c22a9139585cfb4dcc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-02 20:08:49 +00:00
Pawan Wagh
8c85f8b3c3 Merge "Apply OTA from /vendor/boot_otas" into main 2024-05-02 19:28:44 +00:00
Pawan Wagh
7d0d858136 Make links in dialog text clickable
Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Bug: 295035851
Change-Id: I71d4f5cb1e27cd52e6f0c5aaeabc9b3f89520cf1
2024-05-02 18:04:58 +00:00
Yuri Lin
5e73ecaeaa Merge "Rename ZenMode(s)SettingsBase to ZenMode(s)FragmentBase" into main 2024-05-02 14:28:32 +00:00
Tetiana Meronyk
4e13fdcd37 Remove telephony related settings preferences for HSUM devices
Bug: 338358654
Test: atest UserDetailsSettingsTest
Change-Id: I53c3a8e4386b5d7738caffb42abf15dd33c360c7
2024-05-02 11:57:38 +00:00
Roy Chou
7288884b6e Merge "fix(magnification suw): followTyping preference should be hidden in magnification suw page" into main 2024-05-02 05:44:58 +00:00
Jason Chiu
bd74caeb99 Check whether the user is a sub profile before starting Settings homepage
Fix: 336449492
Test: atest SettingsHomepageActivityTest LocationInjectedServicesPreferenceControllerTest UserDetailsSettingsTest ActionDisabledByAdminDialogHelperTest ProfileSelectFragmentTest ProfileSelectLocationFragmentTest
- Start a managed app's info page
- Start a private app's info page
- Switch to a secondary user and start Settings
- Switch to the guest user and start Settings

Change-Id: I1c7c95d95c4739d70839a742ebc4e72b59b1d555
2024-05-02 10:17:28 +08:00
Tetiana Meronyk
dc0c58b427 Make Multiuser toggle disabled for all non-main users
Only let main user (Owner) change state of the toggle
Bug: 336764498
Test: atest MultiUserSwitchBarControllerTest

Change-Id: Ib694d1cb4685764c64633efc090765b470a0a015
2024-05-01 17:21:14 +00:00
Chaohui Wang
377a7a3054 Check isActivationChangeableFlow in SimPreference
Fix: 336209156
Test: manual - SimPreference
Change-Id: I8745e05dbab9701b9c046137fe76d98880a7b20a
2024-05-01 14:15:36 +00:00
Treehugger Robot
72ba6ec2ca Merge "Rename Multiple users page to Users" into main 2024-05-01 09:47:56 +00:00
Treehugger Robot
b48c66ebea Merge "settings: Make use of ACTION_NETWORK_PROVIDER_SETTINGS" into main 2024-04-30 21:44:24 +00:00
Joshua Mccloskey
968015c4e6 Merge "Restart fingerprint auth on cancel." into main 2024-04-30 20:51:44 +00:00
Daniel
385f5a0c7b Replace credential provider placeholder
Replace credential provider placeholder with the actual credential
autofill provider.

Bug: 330177328
Test: cts
Change-Id: Ib6c9688b3f728706b1f5ac0faa3f042bb6dc447c
2024-04-30 19:45:55 +00:00
Tetiana Meronyk
177e852ea9 Rename Multiple users page to Users
Ensure it is still searchable by "multiple users" prompt.

Bug: 336764972
Test: manual
Change-Id: I1126bfe601b75532882d6158d82be1a3b566aefc
2024-04-30 18:48:40 +00:00
Yuri Lin
7469ed03de Rename ZenMode(s)SettingsBase to ZenMode(s)FragmentBase
to be more consistent with more Settings usages and with the DashboardFragment class these extend.

Flag: android.app.modes_ui
Bug: 335259054
Test: n/a, just renamed
Change-Id: Ie64c06eb3ed92822ba47cf272f507d4b4a85d11c
2024-04-30 14:22:49 -04:00
Oli Thompson
9b102c8921 Merge "Correctly unlock storage for work profiles with unified challenge" into main 2024-04-30 13:33:47 +00:00
Manish Singh
54461d2679 Merge "Apply personal filter when private tab not shown" into main 2024-04-30 09:55:34 +00:00
SongFerng Wang
42321d57a1 Merge "Correct the wording of mobile data summary" into main 2024-04-30 09:31:13 +00:00
Chaohui Wang
ad9c64fcdc Merge "Reapply "Create CallStateRepository.isInCallFlow"" into 24D1-dev am: bbc3a352e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27150958

Change-Id: I8398dcad2f0c0da66cf9c579c5adb5f4c91c2e98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-30 08:12:16 +00:00
Chaohui Wang
bbc3a352e3 Merge "Reapply "Create CallStateRepository.isInCallFlow"" into 24D1-dev 2024-04-30 07:47:30 +00:00
SongFerng Wang
07c7cd6702 Correct the wording of mobile data summary
Bug: 337035270
Change-Id: Idc65508e8d4f68376fdfdba873ad049362445ac2
Test: verify the wording
2024-04-30 07:28:09 +00:00
Tom Hsu
219fb8a3f6 Merge "Revert^2 "Add a new warning dialog for Satellite mode"" into 24D1-dev am: 0a8d830616
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27150955

Change-Id: I02b98dfea84be429e9a46dc8d0e3846dda29f203
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-30 07:24:09 +00:00
Tom Hsu
0a8d830616 Merge "Revert^2 "Add a new warning dialog for Satellite mode"" into 24D1-dev 2024-04-30 07:05:49 +00:00
Chaohui Wang
7bbd8fa4e3 Reapply "Create CallStateRepository.isInCallFlow"
This reverts commit 93e4c65d3d.

Fixed the test by cherry-pick change
I7a3d27cb53c930a56ab0f0896b545807bf4f9dc0.

Bug: 336209156
Test: manual - on MobileNetworkSwitchController
Test: atest SubscriptionInfoListViewModelTest
Change-Id: Id606d6ee90acd8a98de706d8533fed0aac96bff4
2024-04-30 12:33:54 +08:00
Pawan Wagh
569313f809 Merge "Set 16K dev option as checked by default for 16KB page size" into main am: 4c647972fe am: 07f71333bc
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3053444

Change-Id: Ic5a19b725b60cc466eba2879b50cdb7b2711bdfb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-30 04:20:46 +00:00