Commit Graph

153 Commits

Author SHA1 Message Date
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
Nikhil Nayunigari
bfd3722e06 Changes to add Ethernet settings row item
Adds EthernetSettings row item to NetworkProviderSettings and its
controller.

Flag: com.android.settings.connectivity.ethernet_settings

Test: atest
SettingsRoboTests:
com.android.settings.network.EthernetSwitchPreferenceControllerTest

Change-Id: I27965ad0c8563657b17e0aa6d3bd19b97fcf5615
2025-02-15 18:20:46 +00:00
Will Leshner
6f21b063f8 Only show "hub mode" settings when the glanceable_hub_v2 flag is true.
Bug: 395320922
Test: atest CommunalPreferenceControllerTest
Flag: com.android.systemui.glanceable_hub_v2
Change-Id: I46e5931205a219806917fafcc1a7aac3b7046796
2025-02-10 09:57:23 -08:00
Yuri Ufimtsev
5716bd85f9 Merge "Allow to open Content Protection settings externally" into main 2025-01-07 00:58:53 -08:00
Nikhil Nayunigari
891ea3d18a Merge "Feature flag for Ethernet Settings" into main 2025-01-06 09:53:14 -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
Nikhil Nayunigari
adf30c5706 Feature flag for Ethernet Settings
Flag: com.android.settings.connectivity.ethernet_settings

Adding an aconfig flag for Ethernet Settings CUJs as defined in
go/al-ethernet-prd

Bug: b/384375770
Change-Id: I028e4ac1038416b720fa8872301f50c65f1d4a5f
2025-01-02 21:27:25 +00:00
Treehugger Robot
7c861dc669 Merge "Hide Linux terminal if VM isn't supported" into main am: c8e78dc149 am: bf33cb8c33
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3428339

Change-Id: Ica0388cb13627e2920ab2876ab38c2c070396919
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-28 08:18:17 -08:00
Jaewan Kim
614074e5c7 Hide Linux terminal if VM isn't supported
Bug: 385216798
Test: atest
Flag: Build.RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES
Change-Id: I06fe52cf877deb3cd9ebc61af1579931b97d7766
2024-12-21 00:31:55 +09: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
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
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
Azhara Assanova
47e665802b [AAPM] Update ActionDisabledByAdminDialog and ExternalSourcesDetails strings
The new advanced protection support intent will be launched by the
existing ActionDisabledByAdminDialog if the enforcing admin of a certain
restriction is advanced protection. To determine that, Change-Id
If931dcddad508f88aac1280b587da4767b937875 introduces an API to query the
enforcing admin.

In addition, this change updates ExternalSourcesDetails to display
a disabled by advanced protection string in the preference summary.

Tests will be written in a follow up change.

Bug: 358229113
Bug: 369361373
Test: manual
Test: atest ActionDisabledByAdminDialogTest
Test: atest ExternalSourcesDetailsTest
Test: atest LocationInjectedServicesPreferenceControllerTest
Flag: android.security.aapm_api
Flag: android.security.aapm_feature_disable_install_unknown_sources
Change-Id: Icedef421d65f7ccde6562734e39a87d4458567ff
2024-11-26 10:20:18 +00:00
lbill
88cf7037b0 [Screen off unlock UDFPS] Fingerprint Settings integration 2/2
1. Integrate FingerprintSettings with Toggle
2. Sync the Toggle state with SettingProvider key
   "screen_off_unlock_udfps"

Reference: go/udfps-aof #Settings UI design(Deck)

Bug: 373792870
Bug: 369939804
Bug: 369938501
Flag: android.hardware.biometrics.screen_off_unlock_udfps
Test: atest FingerprintSettingsFragmentTest
    atest DevelopmentSettingsDashboardFragmentTest
    atest FingerprintSettingsUnlockCategoryControllerTest
    atest FingerprintSettingsScreenOffUnlockUdfpsPreferenceControllerTest
Test: adb shell settings put secure
      screen_off_unlock_udfps <1|0>
Change-Id: I03794f53684bfb60b4a854e14507e67f60c55a7d
2024-10-30 02:29:43 +00:00
Dongzhuo Zhang
b48d9f0e56 Change to use android.provider.new_default_account_api_enabled flag to control the contacts storage settings launch.
Bug: 368641291
Flag: android.provider.new_default_account_api_enabled

Change-Id: I5d415daab83f1836d55d340ed0172c51ecf21622
2024-10-22 22:47:22 +00:00
Treehugger Robot
07bcb127dd Merge "Clean up 24Q3 aconfig flag reset_mobile_network_settings" into main 2024-10-15 16:10:40 +00:00
Chris Antol
42e146e9db Revert^2 "[Catalyst] Add settings service"
eafda3c490

Change-Id: I729410b1d9ea2f9c99739faafbb6b40394d7a9dc
2024-10-14 18:56:35 +00:00
Chaitanya Cheemala (xWF)
eafda3c490 Revert "[Catalyst] Add settings service"
Revert submission 29815608-catalyst

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

Reverted changes: /q/submissionid:29815608-catalyst

Change-Id: If42ddb09c07da5672c3d55c2517b75647ea77ae5
2024-10-14 14:18:07 +00:00
Jacky Wang
92354f8bed [Catalyst] Add settings service
Bug: 372981584
Flag: com.android.settings.flags.catalyst_service
Test: Manual
Change-Id: I0bb3752e65e879bd831b7d8c83ea160be32a893e
2024-10-14 18:03:05 +08:00
rambowang
796f631ff8 Clean up 24Q3 aconfig flag reset_mobile_network_settings
Bug: 271921464
Test: m -j
Flag: EXEMPT flag clean up
Change-Id: I13f9cf25263c1465860272d5891554088e174474
2024-10-11 16:20:43 +00:00
Jacky Wang
125bbc0ccc Include settings flags into flags_packages
Required for resource & manifest flags.

Bug: 332202168
Flag: EXEMPT Modify Android.bp
Test: Set android:featureFlag to manifest Service locally
Change-Id: Iaf02e494b1a23b92616a5ff5e8fb84e93b4a340e
2024-09-26 11:25:43 +08:00
Jacky Wang
f6a573530e Move ObservablePreferenceFragment class
Bug: 365922551
Flag: EXEMPT Move class only
Test: Presubmit
Change-Id: I17851055b09d73b95e6adaafbe96f4375d5f637e
2024-09-13 20:39:59 +08:00
Jacky Wang
b3e1b527d8 Catalyst framework integration
Bug: 335132588
Flag: com.android.settingslib.flags.settings_catalyst
Test: Presubmit
Change-Id: Ic0f0193fd5cee144f2fab36ae5190156efb7bd10
2024-09-09 21:14:53 +08:00
Shaowei Shen
a2c65ecec4 Merge "[Physical Keyboard] Add flag for keyboard a11y new page features" into main 2024-08-14 02:26:13 +00:00
shaoweishen
b79d962c93 [Physical Keyboard] Add flag for keyboard a11y new page features
Bug: 345399212
Test: N/A
Flags: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I03a6c7bbb042f90761838724a0097f35b008449c
2024-08-13 09:06:33 +00:00
Chaohui Wang
7477f4ea9a Show category when search "Mobile data"
The displayed category is "SIMs".

Bug: 346776183
Flag: EXEMPT bug fix
Test: manual - search "Mobile data"
Test: unit test
Change-Id: If3c395281e96603193e7476a9e76d1f9e9213531
2024-07-30 09:48:28 +08:00
Yuchen Sun
93036e2045 Clean up slice from spa and move androidx.slice dependency to Settings.
Test: build successfully
Flag: EXEMPT clean up
Bug: 352442832
Change-Id: Ifc222a91991d4924f1cb7b5c1e7fd90968bfed26
2024-07-18 08:25:48 +00:00
Alina Zaidi
b456e84570 [Dev option] Use DesktopModeStatus and ToggleOverride from wm/shell in Settings DesktopModePreferenceController
Test: Added tests
Bug: 348193756
Flag: com.android.window.flags.show_desktop_windowing_dev_option
Change-Id: I0dc3c62df992a2454bd7c1fc239302489107ae59
2024-07-08 16:07:43 +00:00
Yalan Yiue
c291f22722 Merge "Launch oobe from Settings" into main 2024-07-02 17:22:14 +00:00
yyalan
dc9701f427 Launch oobe from Settings
Bug: 344860480
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Test: Manual
Change-Id: Iabc155d2f99717c6489308ffb1e63ef4e59f0332
2024-07-01 15:35:55 +00:00
Joshua McCloskey
d5321719fe Removed redundant dependcy from build file
Test: Verified that the additional libraries don't cause any issue with
settings
Bug: 346161718
Flag: BUILD ONLY

Change-Id: Ie3d266c486d507c241d800fa7f2680a595896280
2024-06-26 18:57:04 +00:00
Julia Reynolds
dea5102c44 Migrate Settings intents
to our new modes ui

Fixes: 333909883
Test: manual - created test app that launches each intent, launched each
with flag on and flag off
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui

Change-Id: I8259b554fe34b453880890c667165547033ccd06
2024-06-20 12:48:40 -04:00
Joshua McCloskey
584b6c9e96 Biometrics Enrollment refactor (7/N)
This cl moves the creation of repos and interactors to the
SettingsApplication.
Bug: 297082837
Test: atest

Change-Id: I9049da6f03bb1dc18d4186961444bf613d773d0e
2024-06-05 18:18:59 +00:00
mxyyiyi
8eaf8edf7e Add AppOptimizationModeEventsUtils to save & update app optimization mode expiration events.
- [Update] Save app optimizaiton mode set & expire events from turbo.
- [Reset ] Restore optimization mode for expired events in Periodic job.
- [Delete] Cancel expiration event if user updates mode in app usage page.

Bug: 338965652
Test: atest + manual
Change-Id: I3fb7311207da1bdb1146ea1ff041aca6adb66052
2024-06-03 19:42:26 +08:00
Chaohui Wang
5920567bee Remove unused "androidx.test.rules" from production
Bug: 316941721
Test: m Settings
Change-Id: I995efda7e4b9dbcb7a3dafcda6da0346153fa60e
2024-05-30 12:26:30 +08:00
Kholoud Mohamed
85c38bc078 Fix incorrect password attempts messaging on headless
Bug: 257276847
Test: manual
Flag: ACONFIG android.app.admin.flags.headless_single_user_fixes DISABLED
Change-Id: I2fb70d99203228ce4ee36f84eb4dfed36fa6fd8c
2024-04-19 12:49:31 +00:00
Manish Singh
c1a314b2c9 Statically inlcude the frameworks flags lib
Bug: 329914404
Bug: 329738797
Test: build
Change-Id: I12c94e298d9fa69e509c0c57ac5d7d7040b04b04
2024-03-20 15:45:44 +00:00
Jacky Wang
006bf17c4f [DataStore] Migrate BatteryBackupHelper to BackupRestoreStorage
Bug: 325144964
Test: Manual tests
Change-Id: I19f7c78969d70648d1e45f1627827d98b1fdd1e0
2024-03-03 22:42:00 +08:00
Treehugger Robot
12f99280a0 Merge "Drop platform_apis from android_library" into main am: ff6f53b24a am: 2605622758
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2971233

Change-Id: Ica708b747589d0daf7c4f62554cb03755b573668
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 19:43:11 +00:00
Treehugger Robot
2605622758 Merge "Drop platform_apis from android_library" into main am: ff6f53b24a
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2971233

Change-Id: I193568ec0dc8884dfa0be634e90b26295658aee8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 19:09:57 +00:00
Spandan Das
266a9a503c Drop platform_apis from android_library
This property is a no-op for this module type.

Test: m nothing
Bug: 215379393
Change-Id: I73811c70c4191eb6005a5f365f0b1c149d30564b
2024-02-21 14:37:30 +00:00
Ronish Kalia
902abe911d Merge "[DON'T BLOCK] Test ownership migration rules" into main 2024-02-12 19:30:40 +00:00
Aditya Choudhary
01735e6b40 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: I7fbd55a92f4302a6e03bcff0283737fd9295165d
Merged-In: I7fbd55a92f4302a6e03bcff0283737fd9295165d
2024-02-09 17:45:41 +00:00
Aditya Choudhary
4f5c1ac5bc [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3f65505208d57fa18be353f815c44fdd6f004f4b)
Merged-In: I7fbd55a92f4302a6e03bcff0283737fd9295165d
Change-Id: I7fbd55a92f4302a6e03bcff0283737fd9295165d
2024-02-09 16:54:41 +00:00
Aditya Choudhary
3f65505208 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: I7fbd55a92f4302a6e03bcff0283737fd9295165d
2024-02-09 16:14:48 +00:00
Joshua McCloskey
98374376cc Updating navigation view model
Test: atest com.android.settings.fingerprint2.ui.enrollment.modules.enrolling.rfps.viewmodel
com.android.settings.fingerprint2.ui.enrollment.viewmodel
com.android.settings.fingerprint2.ui.settings
com.android.settings.fingerprint2.domain.interactor
com.android.settings.fingerprint2.enrollment.viewmodel
Bug: 295205754

Change-Id: I210712ab76050b89452fb871cd2a4fb28bfd4012
2024-02-07 18:33:52 +00:00
josephpv
e1a2c82db3 Add Private space Delete settings page inside PS settings page
Contains implementation of settings page for Delete private space
controller inside private space settings page.
- On selecting to delete private space displays list of account signed in
to private profile and deletes the private space after authentication.
- Shows a toast message after private space is deleted

- Adds dependency for setupdesgin loading layout to show a loading
  screen while deletion of private space is in progress.

Recording Link : b/318383729
go/ss/4Aq3rmbSGHMHesK.png

Bug: 318383729
Test: atest DeletePrivateSpaceControllerTest

Change-Id: Ia1730915e2469b47823c507f9ef6cd8f63c99baf
2024-01-31 19:29:13 +00:00
Jacky Wang
5efa494163 Add SettingsLintDefaults to Settings-core
Bug: 319351140
Change-Id: I024e42126d576c26c7891942a5ddd99fc2e39309
Test: manual compile with lint
2024-01-17 15:02:38 +08:00