Commit Graph

2680 Commits

Author SHA1 Message Date
songferngwang
a92051ad07 Avoid to reset the data
Bug: 333646302
Test: verify the data after rotating the device
Change-Id: I8fd74d174792a3a72e1c9e0f4394ad816b37425e
2024-04-17 08:36:29 +00:00
Bill Lin
fce30a15f5 Revert "Apply "@style/GlifTheme.Light" for Fingerprint enroll activities"
This reverts commit cba2df43cb.

Reason for revert: 333815129

Change-Id: I83c16179565d189c43bab2f8bdcc25b3b3f1c980
2024-04-11 08:12:12 +00:00
lbill
cba2df43cb Apply "@style/GlifTheme.Light" for Fingerprint enroll activities
Flag: NA
Bug: 332639317
Test: manual test FPS enrolling
Change-Id: Ia7f99f642d0b72d9f5796be02627a744fc528c9e
2024-04-09 09:08:46 +00:00
Chaohui Wang
51a4bea7d9 Use SpaDialogWindowTypeActivity for WEP dialog
TODO: Set different window type when called from Quick Settings.

Bug: 332643450
Test: am start -n com.android.settings/.network.WepNetworkDialogActivity
Change-Id: Ie888e7cc116234199316b030fb5f35dea6dbb3ac
2024-04-03 15:26:26 +08:00
Jason Chang
edb0ff11e1 Merge "Fix face unlock setup page is abnormal" into 24D1-dev am: d245c1108a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/26784347

Change-Id: Iaa927a8b3f6df29d634bfb6baacdb96aeb415899
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-03 03:25:00 +00:00
Samuel Huang
0ae12e27ac Merge "Add SATELLITE_COMMUNICATION to Settings app" into main 2024-04-02 01:09:04 +00:00
Jason Chang
710a3ddc94 Fix face unlock setup page is abnormal
Apply GlifV4Theme.DayNight for FaceEnrollIntroduction related pages.

Flag: NONE

Bug: 329778849

Test: manully test with reproducible steps:
1. Flash and factory wipe the device with latest build
2. Complete SUW and update all the apps
3. Go to settings > security& privacy > face unlock >
   observe setup page

Change-Id: I73293808d225ecad013d507bd9c38b23324b17ec
2024-04-01 12:46:33 +00:00
Samuel Huang
06562e0f35 Add SATELLITE_COMMUNICATION to Settings app
SATELLITE_COMMUNICATION is a signature|privileged permission. Used to get satellite status.

Bug: 315928920
Test: presubmit
Change-Id: I117dab50b8157e2f81de7b1ff6998c45fb84c734
2024-03-29 14:53:29 +00:00
Sunny Shao
8803ae7823 Fix the action bar shows up problem
- Hide the internal action bar.
- Refine the Utils.setupEdgeToEdge API.
- Rollback the testcases.

Bug: 328622648
Fixes: 331308440
Test: atest com.android.settings.UtilsTest SettingsActivityTest
Change-Id: I7dfbc93def3e772b57bf06b8276315cee7402a9c
2024-03-29 08:32:22 +08:00
Sunny Shao
e6104d7546 ApnSettingsActivity shows the ActionBar
- Use the Theme.Settings.NoActionBar
- Update test cases

Fixes: 331308440
Test: atest com.android.settings.UtilsTest SettingsActivityTest
Change-Id: Ica93e765690707654ae651261ac8d236ed8e1d58
2024-03-27 13:45:28 +08:00
Treehugger Robot
e14c8e1def Merge "Revert "ApnSettingsActivity shows the ActionBar"" into main 2024-03-27 02:10:20 +00:00
Sasha Kuznetsov
39d4b434cb Revert "ApnSettingsActivity shows the ActionBar"
This reverts commit 5a7f5a0931.

Reason for revert: seems to cause b/331379466 according to the culprit range search

Change-Id: I6ab2474864d43a1a8bcb50de5bc9ab5c0ac08f4e
Bug: 331379466
2024-03-27 00:57:00 +00:00
Treehugger Robot
1f7028de47 Merge "ApnSettingsActivity shows the ActionBar" into main 2024-03-26 10:55:40 +00:00
Sunny Shao
5a7f5a0931 ApnSettingsActivity shows the ActionBar
- Use the Theme.Settings.NoActionBar
- Settings use the CollapsingToolbar and
  don't need the old style toolbar.

Fixes: 331308440
Test: manual test
Change-Id: Ieb9acd858f5a8993f30547c3c8c3c2ab3a5865af
2024-03-26 16:32:06 +08:00
Amith Yamasani
3286a76bbf Merge "Revert "Intent handler for new BACKGROUND_RESTRICTIONS_SETTINGS"" into main 2024-03-26 05:11:53 +00:00
Amith Yamasani
f43f72e5d2 Revert "Intent handler for new BACKGROUND_RESTRICTIONS_SETTINGS"
Revert submission 26202178-intent_restricted

Reason for revert: Not shipping this API for Androd 15

Reverted changes: /q/submissionid:26202178-intent_restricted

Change-Id: If542aa7ffe0e5dffa49bb5ad3e14ed23441843d4
2024-03-25 23:29:29 +00:00
Treehugger Robot
8e2324d9e0 Merge "Add missing required permissions for Settings" into main 2024-03-25 07:56:20 +00:00
Himanshu Gupta
8735770fa8 Merge "Disable PS entry point and Activity when PS is not allowed." into main 2024-03-24 14:45:32 +00:00
yomna
3fe5e5f843 Add missing required permissions for Settings
SettingsSpaUnitTests BackgroundInstalledAppsPageProviderTest#title_displayed is failing due to
missing permissions GET_BACKGROUND_INSTALLED_PACKAGES, which is required for the test.

Bug: b/329486029
Test: m & atest SubscriptionInfoListViewModelTest SettingsSpaUnitTests
Change-Id: I88038a5858e9a969ca8e3df6bc4e4e33d753f1e8
2024-03-23 02:22:48 +00:00
Himanshu Gupta
5e451db395 Disable PS entry point and Activity when PS is not allowed.
In this change we disable:
1. Security Center Entry point
2. PrivateSpaceAuthenticationActivity

when private profile is not present and cannot be added.

Additionally, the intent exposing PrivateSpaceAuthenticationActivity
is also non-exported and changed to a better name.

Bug: 328578044
Test: Manual build and flash
Change-Id: I13d298316c6d719d0b06e4969989ea1da83dd4c6
2024-03-22 13:44:23 +00:00
jasonwshsu
4fad32be20 Add intent to open hearing device settings page and pairing page
* Hearing devices quick settings tile need to launch related page

Bug: 291423171
Test: Add intent only
Change-Id: I59d2ac06505029852dd6cd2ca16c86f201e4148c
2024-03-22 17:35:51 +08:00
Chaohui Wang
dd5b4d3d31 Merge "Add BootBroadcastReceiver required permissions" into main 2024-03-21 03:35:57 +00:00
Treehugger Robot
937693d538 Merge "Add new Cellular Network Security page" into main 2024-03-19 16:15:32 +00:00
yomna
5599de4fb5 Add new Cellular Network Security page
Test: m & atest CellularSecurityNotificationsDividerControllerTest CellularSecurityNotificationsPreferenceControllerTest CellularSecurityEncryptionDividerControllerTest CellularSecurityPreferenceControllerTest
Bug: b/318428717
Change-Id: I4a6ec5f47beb36bd455e04c2e6c4cea0ba65110f
2024-03-18 21:22:10 +00:00
Chaohui Wang
ad0b01e7cf Add BootBroadcastReceiver required permissions
These permissions are required for any Settings tests to run, otherwise
the tests will fails.

Instead of adding these permissions to each of the tests, add it to the
Settings-core.

Bug: 329046490
Test: unit tests
Change-Id: I54dc1ebfdd062acc224021429dce318d7c12809b
2024-03-18 09:23:34 +00:00
Jacky Wang
a234e1696e Enable android:restoreAnyVersion
Bug: 317149339
Test: Manual tests
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:65e283dca7ac2d353fe36d95bfd133767b2b347f)
Merged-In: If1f37519b59159c5cd6fa49a3e23dcc85348336e
Change-Id: If1f37519b59159c5cd6fa49a3e23dcc85348336e
2024-03-13 03:23:43 +00:00
Jacky Wang
65e283dca7 Enable android:restoreAnyVersion
Bug: 317149339
Test: Manual tests
Change-Id: If1f37519b59159c5cd6fa49a3e23dcc85348336e
2024-03-08 16:41:56 +08:00
Charlotte Lu
3b856490e8 Merge "Change WepNetworkDialogActivity exported="true"." into main 2024-03-04 10:15:53 +00:00
Chelsea Hao
7eb6df8ee7 Merge "[Audiosharing] Remove audio streams from settings." into main 2024-03-04 02:33:18 +00:00
Charlotte Lu
823e41ead2 Change WepNetworkDialogActivity exported="true".
Test: Visual Test
Fix: 327310887
Change-Id: Iecc2910eda75f3aad60f4a876b0e1d54d203cd74
2024-02-29 07:51:32 +00:00
Marcus Ge
747d0afa21 Merge changes I69049a13,I7fcc01b8 into main
* changes:
  [Accessibility] Migrate high text contrast under feature flag
  [Accessibility] Add contrast control screen UI and setup entry point
2024-02-28 19:38:27 +00:00
chelseahao
e44cf95424 [Audiosharing] Remove audio streams from settings.
Bug: 324023639
Test: manual
Change-Id: Id1e69422200fdc4b02ac8789ab9370d3ea0448c1
2024-02-28 16:50:45 +08:00
marcusge
cddd7b3660 [Accessibility] Add contrast control screen UI and setup entry point
Bug: 241805782
Test: atest, local raven device
Screenshot: attached on bug
Flag: aconfig
com.android.settings.accessibility.enable_color_contrast_control

Change-Id: I7fcc01b822b460c6585c41a5831575ba0ffbcc93
2024-02-27 23:36:52 +00:00
Rafael Higuera Silva
be3a609c25 Merge "Add new dialogue when user is going to delete sim that use RAC." into main 2024-02-26 04:09:19 +00:00
Rafael Higuera Silva
736df6d2ef Add new dialogue when user is going to delete sim that use RAC.
Test: make
Bug: 316419093
Change-Id: Iaed54afa7cfd20c1dd6adbd4d50f54cab3da095d
2024-02-23 23:11:56 +00:00
Varun Shah
646d052228 Merge "Add new Special App Access screen for Backup Tasks." into main 2024-02-22 21:46:53 +00:00
Varun Shah
a00a81cc1c Add new Special App Access screen for Backup Tasks.
This new screen shows apps that hold the new RUN_BACKUP_JOBS permission.

Also add a reference to this screen in an app's info page under the
"Advanced" section for apps that have requested this permission.

Bug: 320563660
Test: BackupTasksAppsTest
Test: BackupTasksAppsPreferenceControllerTest
Test: visually via the Settings page

Change-Id: I7136fc74f3b0d0124889e7cf9e1234f917346432
2024-02-17 21:54:12 +00:00
Amith Yamasani
022a815033 Intent handler for new BACKGROUND_RESTRICTIONS_SETTINGS
Use the existing battery usage screen as entry point
for ACTION_BACKGROUND_RESTRICTIONS_SETTINGS.

Bug: 320150834
Test: am start -a android.settings.BACKGROUND_RESTRICTIONS_SETTINGS
      atest ActivityManagerTest#testBackgroundRestrictionsIntent
Change-Id: I479ab666334eeb3232a9200b70a6d3ce2ddd2ad9
2024-02-14 22:27:10 +00:00
Jay Sullivan
33173589ab Merge "[ECM] Declare MANAGE_ENHANCED_CONFIRMATION_STATES permission (Settings)" into main 2024-02-08 22:22:46 +00:00
SongFerng Wang
5b716c2c6b Merge "SIM Onboarding flow completed" into main 2024-02-07 04:48:55 +00:00
Becca Hughes
3aa7212b26 Merge "Fix enterprise settings bug" into main 2024-02-06 22:35:07 +00:00
songferngwang
f1ea484425 SIM Onboarding flow completed
- Add the setup flow for switching sim and rename and setup primary sim
  items
- Add the bottom sheet and progress dialog.
Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: build pass. Will upload another cl for testing

Change-Id: Ie9680f0a67afe453c1449c0f2b59e98fd627e215
2024-02-06 10:56:59 +00:00
Jay Thomas Sullivan
91bcebcf62 [ECM] Declare MANAGE_ENHANCED_CONFIRMATION_STATES permission (Settings)
Declare the MANAGE_ENHANCED_CONFIRMATION_STATES permission in
packages/apps/Settings/AndroidManifest.xml.

Settings needs this permission to interact with
EnhancedConfirmationManager.

(Note that this is strictly a hint. In practice, Settings uses the
system uid has therefore access to the permission regardless of
whether we declare it here.)

Test: presubmit
Bug: 320512579
Change-Id: Id9eda14b6e3b0d4f0f45b6bb039d9ac84260a740
2024-02-05 14:07:40 -08:00
Becca Hughes
401ebcb53d Fix enterprise settings bug
This fixes a bug where the picker
is not using the correct user id
and also ensures that the settings
activity uses the correct user when
launched.

Test: flash & test w/ work profile
Bug 322071206

Change-Id: I846593ff9ae320d9bb774e3e79ed9ef41f101ff5
2024-02-05 10:58:09 -08:00
mxyyiyi
98785eef45 Add BATTERY_DATA permission for batteryusage.BootBroadcastReceiver
Bug: 323497440
Test: manual
Change-Id: If2e2f34c13914a3d4e36f343fa91b40407335639
2024-02-05 11:51:13 +08: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
Anthony Alridge
1d83f831f7 Forward developer settings intent to primary profile
This appeared to have been accidentally removed in ag/25458819.
Without it the "Cross profile intent filters are set" cts test fails.

Bug: 310115681
Test: cts verifier > BYOD Managed Provisioning > Cross profile intent
filters are set

Change-Id: I2dbb081c0099d42c6e2160f31d7a5bf30c680558
2024-01-29 10:03:34 +00:00
Riley Jones
317173b7cd Merge "Created a dedicated activity for EditShortcutsPreferenceFragment. This will allow it to be reached via intent." into main 2024-01-25 21:33:33 +00:00
Riley Jones
4e195505b9 Created a dedicated activity for EditShortcutsPreferenceFragment.
This will allow it to be reached via intent.

Test: Send an intent with the ACCESSIBILITY_SHORTCUT_SETTINGS action (make sure the "targets" fragment argument is populated with a string array of shortcut targets)
Flag: None (Change adds definitions but no new behavior)
Bug: 297583708
Change-Id: Ie0dd4918a4f38c04b781308f170b568af30bb238
2024-01-24 02:09:12 +00:00
Hakjun Choi
4b80409474 Merge "Add Satellite Messaging activity" into main 2024-01-24 01:31:30 +00:00