Commit Graph

2809 Commits

Author SHA1 Message Date
Aurélien Pomini
22119f516a Remove old contrastDialog from dev options
Flag: NA
Bug: 333905689
Test: treehugger, manual

Change-Id: I400ab2b14cf8589be97123f3bcf3b26c98009d07
2024-05-16 13:15:23 +00:00
Yiyi Shen
e5bd60a0cf [Audiosharing] Migrate feature from overlay to Settings
Bug: 340379827
Test: atest
Change-Id: I3a88ac1d2f575f3be1f26f617479bbfd25cf6a8e
2024-05-16 05:05:41 +00:00
Joshua McCloskey
0336781be0 UDFPS Enrollment Refactor (4/N)
Accessibility + text/dpi change + rotation should be properly handled.
Debug repos were added to make UI developemnt for UDFPS much easier(not
requiring calls to fingerprint manager).

Change-Id: I89900cea0d9e953124781cdf308fb38858de5d16
2024-05-13 22:05:26 +00:00
Marcus Ge
fd0dd5dfdd Merge "[Contrast] Migrate contrast settings into Display" into main 2024-05-10 15:23:47 +00:00
Manish Singh
07fec29f7c Merge "Support multi-pane deeplink in PrivateSpaceAuthenticationActivity" into main 2024-05-10 09:29:30 +00:00
mxyyiyi
d3ce90347b Update database clear & job refresh mechanism for time zone change intent
- Clear database and reset periodic job
- Take a snapshot of current battery usage stats

Bug: 336423923
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I4aade9db950b508e2190605371f246904f131da3
2024-05-10 11:22:58 +08:00
Manish Singh
51dd526faf Support multi-pane deeplink in PrivateSpaceAuthenticationActivity
Bug: 334792208
Fix: 336996032
Test: manual
Change-Id: I0cffe64faa1f0981ee09e3775249efcd7073d7ce
2024-05-09 13:07:37 +00:00
marcusge
24289fa084 [Contrast] Migrate contrast settings into Display
Test: local raven device
Bug: 333905689

Change-Id: Ie94633c23ebe024b8fb48d7ffebdd7b1dfa588da
2024-05-09 06:32:29 +00:00
tomhsu
a50dd92e49 Expose SatelliteWarningDialogActivity
Bug: 337154438
Test: Manual test
Test: Build pass
Change-Id: I530c554433d99b4732416b8f1b83677ddc0ff6d8
2024-05-09 06:16:34 +00:00
Pawan Wagh
412739469c Merge "Show persistent notification for page-agnostic mode" into main am: 4795662e6a am: e84cce90b3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3073296

Change-Id: I886b3bdfcc3ea8d554862002aa8c89f4d63b1a0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-07 02:43:24 +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
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
1b308f5df8 Revert^2 "Add a new warning dialog for Satellite mode"
This reverts commit 15c90207e2.

Reason for revert: ag/27138142 shall fix the crash instead of reverted one.

Change-Id: Icf46fda7af9c9bb6921bc10de0f9c93926f42fac
2024-04-30 02:17:15 +00:00
Tom Hsu
b5391d1d3f Merge "Revert "Add a new warning dialog for Satellite mode"" into 24D1-dev am: 45549d928b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27139078

Change-Id: Ib7b007734f3916b5caf652a79708f20f8df90bf6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-29 12:51:08 +00:00
ELIYAZ MOMIN
15c90207e2 Revert "Add a new warning dialog for Satellite mode"
This reverts commit 680d062c77.

Reason for revert: <Potential culprit for b/337796129  - 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: I6fbb7a0587fbb474012e1a97a75c036420500f99
2024-04-29 11:37:35 +00:00
Tom Hsu
71e0980f4c Merge "Add a new warning dialog for Satellite mode" into 24D1-dev am: cec2f402a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27113656

Change-Id: I4962f1906eb66b54385d459fc2a3cc987ee74b84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-29 11:17:30 +00:00
tomhsu
680d062c77 Add a new warning dialog for Satellite mode
Bug: 337154438
Test: atest pass.
Test: Maunal test pass.
Change-Id: I33dbf3502c780cedd5422e2b44678ecb9a22a662
2024-04-29 08:37:28 +00:00
Song Chun Fan
cec07fa4d4 Merge "[Settings] Remove REQUEST_INSTALL_PACKAGES from manifest" into main 2024-04-26 17:12:23 +00:00
Samuel Huang
a94bfd4a47 Merge "Ignore ACTION_PRIMARY_SUBSCRIPTION_LIST_CHANGED event if satellite session is started" into 24D1-dev am: fea80bf236
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27071155

Change-Id: Idcbc71555ddbebbd28553530ca8ddd6e364635ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 03:22:25 +00:00
Songchun Fan
316a373d83 [Settings] Remove REQUEST_INSTALL_PACKAGES from manifest
This line was initially added to support unarchiving, but it wasn't
necessary because the Settings app already has INSTALL_PACKAGES
permission.

Having REQUEST_INSTALL_PACKAGES causes it to be listed in
the "Install unknown apps" page, which might be confusing to the users.
This CL removes it.

BUG: 304255818
Test: manual with Archive/Restore
Change-Id: Iebead9c0faf0226046784add271c155fb89a0845
2024-04-25 17:37:00 -07:00
Samuel Huang
faa640e8fc Ignore ACTION_PRIMARY_SUBSCRIPTION_LIST_CHANGED event if satellite session is started
When satellite session is started, we need to suppress the 'Choose SIM for mobile data' and 'Update preferred SIM' dialogs to prevent user turn on SIM.

Bug: 334139957
Test: atest, manual
Change-Id: Id56a98f3d1cfd38875173a643c992393d3dbeec8
2024-04-25 13:34:43 +00:00
Jason Chiu
bcd2d58f88 Highlight the Security menu entry while deeplinking to PS settings
Bug: 334792208
Test: visual
Change-Id: I6e55a3746e8b9999e4b6e7b32fa47729a061a7e2
2024-04-24 15:32:58 +00:00
Treehugger Robot
ab1163beea Merge "Add READ_SYSTEM_GRAMMATICAL_GENDER to Settings app" into main 2024-04-22 07:27:19 +00:00
Varun Shah
74668d1e7e Merge "Remove RUN_BACKUP_JOBS special app access page." into main 2024-04-19 17:41:28 +00:00
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
Annemarie Apple
7038405f14 Add READ_SYSTEM_GRAMMATICAL_GENDER to Settings app
Change-Id: I9b6cbb55f7da836762a7f8fc795322c85e08f9ee
Flag: EXEMPT XML
Bug: 335025399
2024-04-17 02:35:57 +00:00
Varun Shah
321e08e538 Remove RUN_BACKUP_JOBS special app access page.
Bug: 333624438
Test: visual
Change-Id: Ib01bd6556768a943ae7fae013c6ccb82b1b96697
2024-04-16 01:02:49 +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
Samuel Huang
9c5ce0172f Merge "Add SATELLITE_COMMUNICATION to Settings app and fix checkcolor_hook" into 24D1-dev 2024-04-03 04:48:24 +00: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
c6e13c10c4 Add SATELLITE_COMMUNICATION to Settings app and fix checkcolor_hook
SATELLITE_COMMUNICATION is a signature|privileged permission. Used to get satellite status.

Bug: 330585109
Test: presubmit
Change-Id: I35b226eeaa7fd018c658148c7496d9638fe8ecb7
Merged-In: I117dab50b8157e2f81de7b1ff6998c45fb84c734
2024-04-02 07:59:10 +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