Commit Graph

2818 Commits

Author SHA1 Message Date
tom hsu
93f714446a [Satellite] Move satellite setting related code to a folder
Flag: EXEMPT refactor
Fix: b/403149290
Test: build pass
Test: atest pass
Change-Id: I849adc99fb16d1278efd1d481a4fd99fadb45e98
2025-03-13 16:12:16 +00:00
Chelsea Hao
5c203edc6f Merge changes from topic "audio_stream_broadcast" into main
* changes:
  A broadcast receiver to handle `ACTION_LE_AUDIO_PRIVATE_BROADCAST_RECEIVED`.
  Add a broadcast receiver for private broadcast receive data.
2025-03-12 18:25:39 -07:00
juquan
160b8bc1bb [Device Supervision] Implement createConfirmSupervisionCredentialsIntent API
The `ConfirmSupervisionCredentialsActivity` has been added and it's intended to be launched via the intent.

Bug: 392961554
Flag: android.app.supervision.flags.enable_supervision_settings_screen
Test: atest SupervisionMainSwitchPreferenceTest
Change-Id: I2322256a5711d5b90f826f467110c6861a7734ad
2025-03-12 10:34:06 -07:00
chelseahao
ec38f8bad7 Add a broadcast receiver for private broadcast receive data.
Test: atest
Bug: 398700619
Flag: com.android.settingslib.flags.audio_stream_media_service_by_receive_state
Change-Id: I1c75386241227a0f76aee61d677954ff8ce55b5f
2025-03-12 12:26:22 +08:00
Graciela Putri
6ed930462b Remove (experimental) from app aspect ratio settings title
Flag: EXEMPT string change
Fix: 305215544
Test: m
Change-Id: Idbb01ec99014efc40c285212e5e6ef8c91fa8333
2025-03-06 03:36:22 -08:00
Azhara Assanova
db59b0e729 Update ActionDisabledByAdvancedProtectionDialog
For UI, the dialog was migrated to SpaDialogWindowTypeActivity, which
has a Material3 theme and can support rendering over QuickSettings.

This change also adds logic around which message to show depending on
the received extras for feature ID and the dialog type.

Finally, the dialog will display the support button if the help Intent
URI exists and resolves to an activity. Tests around the support button
will be added in a follow up CL.

Bug: 389080341
Test: Visual test
Test: atest ActionDisabledByAdvancedProtectionDialogTest
Flag: EXEMPT bug fix
Change-Id: I0ed23cd44666a40ad54d755f628cd36ef06cc145
2025-03-04 12:00:50 +00:00
Daniel Norman
b0103842f5 Merge "fix(deep): Add intent actions for a11y magnification & flash notif pages" into main 2025-03-03 10:59:32 -08:00
Daniel Norman
843dbecf2c fix(deep): Add intent actions for a11y magnification & flash notif pages
This aligns these accessibility system feature settings pages with other
similar pages, allowing an external caller to launch this page by
sending an intent.

Similar to other accessibility system settings neither page is protected
by a permission since these settings provide no avenue for abuse.

Bug: 388304424
Test: adb shell am start -W -a android.settings.MAGNIFICATION_SETTINGS;
      Observe that the Magnification Settings page is opened.
Test: adb shell am start -W -a android.settings.FLASH_NOTIFICATIONS_SETTINGS;
      Observe that the Flash Notifications Settings page is opened.
Flag: EXEMPT low risk manifest change
Change-Id: Ibe9e1031f30416c5f3fcfb7ae2fe76e8dcd45714
2025-02-28 23:36:16 +00:00
Yiyi Shen
d6f139b0cf [Audiosharing] Add join handler activity to manifest
Test: compile
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I9b59300f399f970ae40ffa6fcfdf7f643e271f62
2025-02-25 16:48:46 +08:00
Yiyi Shen
c5ef00c9ae [Audiosharing] Add actions to AudioSharingReceiver intent filter
Test: compile
Bug: 395786392
Flag: EXEMPT manifest
Change-Id: Id918afe9728867df89a6f0f755520bf837fab6e0
2025-02-17 15:48:28 +08:00
Jacky Wang
68bb5a04c9 [Catalyst] Enforce WRITE_SYSTEM_PREFERENCES permission
Bug: 374115149
Bug: 394744563
Flag: com.android.settingslib.flags.settings_catalyst
Test: manual
Change-Id: I63b84aea001033e81b1d811a2de983d8d107015c
2025-02-06 18:03:58 +08:00
yomna
d4dc1fed9e Fix broken Safety Center redirect when SafetySourceData is null
Bug: b/373942609
Test: m & atest CellularSecurityPreferenceControllerTest
Flag: EXEMPT bugfix
Change-Id: I2373ccb5cb51bca23815db9f7645efccc3e0cd88
2025-01-28 02:06:27 +00:00
Lorenzo Lucena Maguire
f5560622f1 Merge "Create Double Tap Power Settings Activity" into main 2025-01-17 11:35:54 -08:00
Lorenzo Lucena Maguire
081836703a Create Double Tap Power Settings Activity
Test: manually launched activity
Bug: 390257067
Flag: EXEMPT declared activity in xml
Change-Id: Idc858b4e916df7e716790b7297b1bd5a58874452
2025-01-17 07:58:21 +00:00
Mill Chen
24c7b78014 Enhance contrast ratio for factory reset page
The current contrast ratio is lower than 4.5. Update the background
color to fix it.

Fix: 379816159
Test: visual test
Flag: EXEMPT bug fix
Change-Id: I1f896b678903966de8bffd6a371c590337c091cb
2025-01-15 05:57:49 +00:00
Shawn Lin
10265d8d90 Merge "[Biometric Onboarding & Edu] Update Set up Face Unlock page" into main 2025-01-08 19:29:47 -08:00
Yuri Ufimtsev
5716bd85f9 Merge "Allow to open Content Protection settings externally" into main 2025-01-07 00:58:53 -08:00
Victor Li
9e36d12ec5 Merge "Set audiostreams service exported=true with BLUETOOTH_PRIVILEGED permission." into main 2025-01-06 18:13:44 -08:00
Yuri Lin
5979b88c7c Merge "Send APP_NOTIFICATION_PROMOTION_SETTINGS intent to the preference" into main 2025-01-06 10:59:50 -08:00
Victor Li
c1b478c9cb Set audiostreams service exported=true with BLUETOOTH_PRIVILEGED permission.
Bug: 387887193

Change-Id: Ie80d8ad9ae3d169eda04d1f4cc87da71c34cbd44
2025-01-06 05:12:31 -08:00
chelseahao
679b76d8e9 Support generic qr code scanners.
Test: atest
Bug: 308368124
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I8dee57903c42d00351e28a891cee917e078839ac
2025-01-06 15:11:40 +08:00
Hani Kazmi
57e649ae4e Merge "Revert "Revert "[AAPM] Add advanced protection dialog according ..."" into main 2025-01-03 09:25:46 -08:00
Yuri Ufimtsev
3eff731e52 Allow to open Content Protection settings externally
Test: adb root && adb shell aflags enable android.view.contentprotection.flags.exported_settings_activity_enabled && adb reboot && sleep 60 && adb shell am start -a android.settings.CONTENT_PROTECTION_SETTINGS
Bug: 385310040
Flag: android.view.contentprotection.flags.exported_settings_activity_enabled
Change-Id: I1a5e33196051de88ceaddb638edab702f762fe5d
2025-01-03 15:48:27 +00:00
Shawn Lin
962f57dc3d [Biometric Onboarding & Edu] Update Set up Face Unlock page
Update icons, strings and layouts for new UX design

Bug: 370940762
Test: manual:
      Pre condition - no face enrolled
      Go Settings>Security & privacy>Device unlock>Face unlock
Test: atest FaceEnrollTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: Ie469c47005afb941f5646a2f790736362c23c697
2025-01-02 23:49:00 -08:00
Yuri Lin
023509c895 Send APP_NOTIFICATION_PROMOTION_SETTINGS intent to the preference
This adds APP_NOTIFICATION_PROMOTION_SETTINGS to the set of intents that can go to AppNotificationSettings, and additionally adds the appropriate highlight key when the fragment is started with that intent action.

Flag: android.app.ui_rich_ongoing
Test: manual with flag on & off via sending intents over adb; AppNotificationSettingsTest
Bug: 369150427
Change-Id: I1c48fdae161979f1a221f7c57e83e94f6aadc306
2025-01-02 11:04:22 -05:00
Hani Kazmi
8e28132ba2 Revert "Revert "[AAPM] Add advanced protection dialog according ..."
Revert submission 31078830-revert-30767017-aapm-dialog-api-feedback-TBLFTCNTUN

Reason for revert: Addressed failing test

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

Change-Id: I3321b4f5baaca9dd270350b9201998ffe0d40473
2025-01-02 05:07:50 -08:00
Daniel Huang
8143a69996 Merge "[Update] Expose the regional preferences pages" into main 2024-12-29 23:41:58 -08:00
danielwbhuang
4e1bf7db92 [Update] Expose the regional preferences pages
1. Link ACTION_MEASUREMENT_SYSTEM_SETTINGS to MeasurementSystemItemFragment
2. Link ACTION_NUMBERING_SYSTEM_SETTINGS to NumberingPreferencesFragment
3. Link ACTION_REGION_SETTINGS to RegionPickerFragment
4. Deprecate NumberingPreferencesFragment

Bug: 381038747
Flag: android.provider.system_regional_preferences_api_enabled
Test: use test app to try intent ACTION, atest
Change-Id: Id76e589ce25ae5dfc3443948300c6c21ab30672c
2024-12-30 11:29:19 +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
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
Vladimir Komsiyski
18fe317f1d Merge "VDM Settings" into main 2024-12-20 23:46:44 -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
Vladimir Komsiyski
af3e3026ff VDM Settings
Demo: go/vdm-settings-demo

Bug: 371713473
Bug: 338974320
Test: atest
Flag: android.companion.virtualdevice.flags.vdm_settings
Change-Id: I4a818b1b31ad59ee3de22105b969aec4c7f4d529
2024-12-19 04:57:19 -08:00
Chelsea Hao
341fe8eb13 Merge "Export AudioSharingReceiver so that it could be launched by sysui." into main 2024-12-18 19:18:15 -08:00
Yining Liu
b7ecb25410 Merge "Expose Lock screen notifications settings page." into main 2024-12-17 16:21:30 -08:00
chelseahao
b45f0656e5 Export AudioSharingReceiver so that it could be launched by sysui.
Test: atest
Bug: 384405138
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I901bee334f631e29053535c332c86d4d2fdd6279
2024-12-17 12:32:49 +08:00
Yining Liu
2ad1f26902 Expose Lock screen notifications settings page.
Expose the Lock screen notifications settings page for intents.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: atest
Change-Id: I439e214f5a9bfda40777ffb60ca0bbf2a15e196d
2024-12-16 23:27:36 +00: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
chenjean
fe361a526e feat(HCT): Perform custom migration logic for existing HCT users
This logic is triggered by two scenarios:
(A) During first bootup after OTA update to Android 16, if the
    user had HCT enabled.
  - Trigger: ACTION_PRE_BOOT_COMPLETED.
  - Migration: HCT is disabled and notification is shown.
(B) Restore backup from Android 15 (or earlier), if the backup
    had HCT enabled and new device does not.
  - Trigger: SettingsProvider's restore process.
  - Migration: HCT is not restored and notification is shown.

We store whether the user has seen this notification in a new secure
setting ACCESSIBILITY_HCT_SHOW_PROMPT. This setting is also backed up.

Bug: 369906140
Flag: com.android.graphics.hwui.flags.high_contrast_text_small_text_rect
Test: atest SettingsRoboTests:com.android.settings.accessibility.HighContrastTextMigrationReceiverTest
Test: flash an incremental update on a build with HCT enabled;
      observe HCT is disabled and a notification is sent.
Test: flash an incremental update on a build with HCT disabled;
      observe no change to HCT and no notification.

Change-Id: I4d294ffc0b2eabc59ee7988a579d678975a16380
2024-12-13 05:01:33 +00:00
Chris Antol
7935068c0e Revert^2 "Integrate Settings with Preference Service"
This reverts commit b2986f77a4.

Reason for revert: Re-introduce change, fixing bad test

Change-Id: Ie4e19b4691b335bab69364d12afb832e8c9b0ce1
2024-12-06 17:20:48 +00:00
Chaitanya Cheemala (xWF)
b2986f77a4 Revert "Integrate Settings with Preference Service"
This reverts commit 9edbc798bf.

Reason for revert: Likely culprit for b/382590599  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: Ib41c13e8ba2e0eaa1ec31486ccf1f61f55793e95
2024-12-06 13:41:46 +00:00
Chris Antol
9edbc798bf Integrate Settings with Preference Service
Bug: 379750656
Flag: com.android.settingslib.flags.settings_catalyst
Test: unit tests
Change-Id: I6584e61bcdaa370ed879686fa5abc3f9e1c039e4
2024-12-05 16:48:34 +00:00
Jin Jeong
7975c1c217 Merge "New System API to launch SIM Preference in Setting" into main 2024-12-04 01:31:58 +00:00
Joshua Mccloskey
ec0086ef43 Merge "Fast enroll" into main 2024-12-03 18:32:52 +00:00
Joshua McCloskey
a2085f18b7 Fast enroll
Test: manual
Bug: 375320734
Flag: com.google.android.settings.flags.pixel_fingerprint_enroll
Change-Id: Iaf3acfca8471165514660a2403e69be161392501
2024-12-02 17:07:59 +00:00
shaoweishen
b7616da05c [Physical Keyboard] Add intent support for PK layout setting page
This is part of feature for keyboard setting update, which allows gBoard to deep link to layout picker page.
document: go/deeplink_pk_layout_picker

Change-Id: I4277e175be7eed338f855e8144b5531c614e2c04
Bug: 318594345
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Test: verified on Device
2024-12-02 09:12:25 +00:00
jinjeong
2e7db438ab New System API to launch SIM Preference in Setting
Bug: b/381319469
Test: Manual
FLAG: com.android.internal.telephony.flags.action_sim_preference_settings
Change-Id: I91815464a2462820de4f3db1bd59e6987910089d
2024-11-28 12:22:53 +00:00
danielwbhuang
46a7540510 Expose the regional preferences page
1. Link ACTION_TEMPERATURE_UNIT_SETTINGS to TemperatureUnitFragment
2. Link ACTION_FIRST_DAY_OF_WEEK_SETTINGS to FirstDayOfWeekItemFragment

Bug: 381038747
Flag: android.provider.system_regional_preferences_api_enabled
Test: use test app to try intent ACTION
Change-Id: I7f8942a506a8252ebd10ee70237b51cd1923718a
2024-11-26 19:42:17 +08:00
George Chang
d5e121d582 Revert^2 "Add intent filters for NfcTagAppsSettings"
This reverts commit 581b9b4346.

Reason for revert: CarDeveloperOptionsUnitTests fixed

Change-Id: I65a477b1db837e7e9fd0bce6fb1d2af84a747408
Test: adb shell am start -a android.nfc.action.CHANGE_TAG_INTENT_PREFERENCE
Test: atest CarDeveloperOptionsUnitTests
Bug: 379618293
Bug: 335916336
2024-11-18 11:29:49 +00:00
Chaitanya Cheemala (xWF)
581b9b4346 Revert "Add intent filters for NfcTagAppsSettings"
This reverts commit 2a41717baf.

Reason for revert: Likely culprit for b/379618293  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I8988203a5bfa7a8e000e7833bca812d04ba30d12
2024-11-18 09:56:41 +00:00