Commit Graph

24321 Commits

Author SHA1 Message Date
cjybyjk
6a3db1f45b Settings: SoftAp: add Hidden SSID preference
Signed-off-by: cjybyjk <cjybyjk@zjnu.edu.cn>
Change-Id: I8a222a9a9ae8f005953b738368168d551a502491
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:29 +09:00
IacobIonut01
3f0760f894 Settings: Use ListPreference instead of DropDownPreference
Change-Id: I34c21377840ec8a298f3c49e03445151eecc3ec4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2025-12-10 00:41:26 +09:00
Dmitry Muhomor
b45269eb32 add per-connection Wi-Fi MAC address randomization option
fixup! add per-connection Wi-Fi MAC address randomization option
2025-12-10 00:41:26 +09:00
Michael Bestas
cee9137640 Merge tag 'android-security-16.0.0_r3' into staging/lineage-23.0_merge-android-security-16.0.0_r3
Android security 16.0.0 release 3

* tag 'android-security-16.0.0_r3':
  Import translations. DO NOT MERGE ANYWHERE
  Backport BT pairing dialog changes
  [nfc] Fix string injection in default payment app selector
  Add check to prevent privilege escalation from trampoline added in change Ie469c47005afb941f5646a2f790736362c23c697.
  Hide sensistive content from locked profiles
  Prevent SettingsSliceProvider from accessing unused packages
  Ignore face settings extras when called by an external package.
  startActivityForResult with earlier new Intent
  Hide notification content in history
  Use correct API to get calling package name in CredentialStorage
  Drop PendingIntent extras from external packages during enrollment.
  Do not enable the Content Protection toggle for non-admin users.
  Add ComponentName explicitly to make sure arbitary intents aren't launched from Settings.
  AppRestrictions - use vetted component
  Add battery health tip

Change-Id: Ifbcbfcc5e95e3b69085c9c7f795914ec21b4d0a9
2025-12-07 21:01:34 +02:00
Haijie Hong
8ec6581ae7 Backport BT pairing dialog changes
This is a combination of two commits against b/409868905, merged for
backport convenience.  It updates the string and button style for the BT
pairing dialog.

Bug: 236134583
Bug: 236134775
Test: local tested
Flag: EXEMPT minor style update
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:22378fd5a1bb2ca8d63f5df4e47c0af218c66a57
Merged-In: Icd9f509b5363b3ec3900738e21486e54d4e66e4b
Change-Id: Icd9f509b5363b3ec3900738e21486e54d4e66e4b
2025-10-10 14:23:05 -07:00
Joe Bolinger
83447688f8 Add check to prevent privilege escalation from trampoline added in change Ie469c47005afb941f5646a2f790736362c23c697.
Add additional check in enrollment base class.

Flag: EXEMPT CVE_FIX
Bug: 418774489
Test: atest FaceEnrollTest FaceEnrollIntroductionTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c07d03e5ef9ff05f34b6358440af6770044579ae)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:e0476f87117c1b689b96c9a37ac12162d79c6cf6
Merged-In: I49f4a980a0c9ed80cc2e370a42bd60425d018a4c
Change-Id: I49f4a980a0c9ed80cc2e370a42bd60425d018a4c
2025-10-10 14:22:09 -07:00
Mill Chen
586f8dedd8 Prevent SettingsSliceProvider from accessing unused packages
DISABLE_TOPIC_PROTECTOR

Bug: 388034510
Test: adb shell cmd slice get-permissions com.android.settings.slices
      atest SettingsSliceProviderTest
Flag: EXEMPT security issue
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:fc32bd01fa26a116c4217fec157be43f01633add
Merged-In: Ia655fbb9cb46f192559b82f957e3b2f0dd86946c
Change-Id: Ia655fbb9cb46f192559b82f957e3b2f0dd86946c
2025-10-10 14:21:13 -07:00
Michael Bestas
f678426e9e Merge branch 'android16-security-release' of https://android.googlesource.com/platform/packages/apps/Settings into lineage-23.0
* 'android16-security-release' of https://android.googlesource.com/platform/packages/apps/Settings:
  Hide sensistive content from locked profiles
  Ignore face settings extras when called by an external package.
  startActivityForResult with earlier new Intent
  Use correct API to get calling package name in CredentialStorage
  Prevent SettingsSliceProvider from accessing unused packages
  Hide notification content in history
  Do not enable the Content Protection toggle for non-admin users.
  Add ComponentName explicitly to make sure arbitary intents aren't launched from Settings.
  AppRestrictions - use vetted component
  Drop PendingIntent extras from external packages during enrollment.

Change-Id: I2e6b262a366c24202897f3e040825f9e41d31a02
2025-09-12 17:57:21 +03:00
Bruno Martins
64de97c728 Biometrics: Pass halHandlesDisplayTouches to FingerprintSensorPropertiesInternal
Depends-on: I56166950c6ef7cbb0c4ac2c0b7998e4a909d4af9
Change-Id: I1b7eef5449f813deee23ebe9ff07d4d3b73ccf4b
2025-08-28 13:38:19 +03:00
Alexander Koskovich
95d3909299 Add a mobile data toggle for setup
mIsInSetupWizard was moved to top of NetworkProviderSetting's onCreate
so it is available for addPreferences().

Change-Id: I9299c3033e96bcd30450ec239f14fb5daa800d63
2025-08-28 13:38:18 +03:00
Tommy Webb
a8f79a720f DynamicDenylistManager shall not exist
Remove DynamicDenylistManager to avoid its conflicting behavior
with our firewall. This stops the resetting of firewall policies
on boot and for other reasons. The user is in control of these
policies and doesn't need them to be unexpectedly reset.

Issue: calyxos#2211
Test: Manual: Turn off Background network access for any app. Then,
in Firewall, turn off another toggle like Wi-Fi. Reboot, and check
the toggles. Background network access and Wi-Fi should still be off.
Change-Id: Ie62ddfa3a893c9adf5d4fd0c8670235a5a51e03f
2025-08-28 13:35:14 +03:00
Joe Bolinger
d50de07930 Drop PendingIntent extras from external packages during enrollment.
Bug: 388528350
Flag: EXEMPT bugfix
Test: atest FingerprintEnrollIntroductionTest FaceEnrollIntroductionTest
(cherry picked from commit 4ccdeee849d5fef78498ba33cadc525523efcbd7)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9dd5ed1cea0449812775fb76a46f8be2e6862425)
Merged-In: I61281dcf95e53100a96d6a218f3f00fd1b4ea3f9
Change-Id: I61281dcf95e53100a96d6a218f3f00fd1b4ea3f9
2025-08-12 18:50:11 -07:00
Adam Bookatz
dc41d27f1b Do not enable the Content Protection toggle for non-admin users.
Flag: EXEMPT bugfix
Bug: 409318132
Test: m -j256 Settings && atest
SettingsRoboTests:ContentProtectionTogglePreferenceControllerTest
(cherry picked from commit ef801e1a8ec3a18ce9e0221fc7e1dfe495d0be8a)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:094c9df207d9bb430427dadc2e327b4834b57b01)
Merged-In: I46609c795923d427a5b7fa10bc2e8b071fad72d6
Change-Id: I46609c795923d427a5b7fa10bc2e8b071fad72d6
2025-08-12 18:50:04 -07:00
Michael Bestas
6d9d8a5819 Remove useless USB page header
* This causes the options to go off screen and almost always
  require scrolling in order to reach all the options.

Change-Id: I3880982978aa50f11bf24b4da6e91a0917181811
2025-06-22 13:02:41 +03:00
Mill Chen
fc32bd01fa Prevent SettingsSliceProvider from accessing unused packages
DISABLE_TOPIC_PROTECTOR

Bug: 388034510
Test: adb shell cmd slice get-permissions com.android.settings.slices
      atest SettingsSliceProviderTest
Flag: EXEMPT security issue
Change-Id: Ia655fbb9cb46f192559b82f957e3b2f0dd86946c
Merged-In: Ia655fbb9cb46f192559b82f957e3b2f0dd86946c
2025-06-03 00:02:02 -07:00
Treehugger Robot
4f4deeaf16 Merge "Drop PendingIntent extras from external packages during enrollment." into security-aosp-25Q2-staging 2025-05-21 19:33:39 -07:00
Adam Bookatz
094c9df207 Do not enable the Content Protection toggle for non-admin users.
Flag: EXEMPT bugfix
Bug: 409318132
Test: m -j256 Settings && atest
SettingsRoboTests:ContentProtectionTogglePreferenceControllerTest
Change-Id: I46609c795923d427a5b7fa10bc2e8b071fad72d6
(cherry picked from commit ef801e1a8ec3a18ce9e0221fc7e1dfe495d0be8a)
2025-05-20 09:35:32 -07:00
Joe Bolinger
9dd5ed1cea Drop PendingIntent extras from external packages during enrollment.
Bug: 388528350
Flag: EXEMPT bugfix
Test: atest FingerprintEnrollIntroductionTest FaceEnrollIntroductionTest
Change-Id: I61281dcf95e53100a96d6a218f3f00fd1b4ea3f9
(cherry picked from commit 4ccdeee849d5fef78498ba33cadc525523efcbd7)
2025-05-16 18:04:18 -07:00
Vadym Omelnytskyi
a2d3155609 Revert "Screen Resolution: add space for 4-digit values"
This reverts commit 14050c89f5.

Reason for revert: b/406416297
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:626993cd66a1e2b75cc40445373d22503f73f19e)
Merged-In: Ib683398cf3c3753d2874e4f108c0bb09a9635ab5
Change-Id: Ib683398cf3c3753d2874e4f108c0bb09a9635ab5
2025-04-25 14:06:57 -07:00
tom hsu
c8b730509d [Satellite] Restrict requestIsSupported only in Manual type
- SatelliteManager#requestIsSupported only can be used in Manual
   conneciton type. Hence add a type check with this API for the
   condition check

Flag: EXEMPT bug fix
Fix: b/395811260
Test: atest pass
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d033f603b819c5b1264d116648c9f6f00b061320)
Merged-In: Ia9fed86a63dd8fa87cc20a83888b3cabbf28ddd8
Change-Id: Ia9fed86a63dd8fa87cc20a83888b3cabbf28ddd8
2025-03-31 20:54:29 -07:00
tom hsu
e9e45b4a01 [Satellite] Refactor API usage to Util class.
Flag: EXEMPT refactor
Fix: b/403149290
Test: atest pass
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8916db934fb3d7dc1f94f67c7b409beeff2c6ac6)
Merged-In: I8f6375c59cbb2010ad9232b8abe71af60c6133f9
Change-Id: I8f6375c59cbb2010ad9232b8abe71af60c6133f9
2025-03-31 20:54:17 -07:00
Yuri Lin
0773c4d93f Merge "Merge bundle global & type preference controllers." into main 2025-03-24 12:13:24 -07:00
Zhibin Liu
32bc5aab59 Merge "Add support to configure state of operator name in status bar [2/2]" into main am: 7c598253ff
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3516771

Change-Id: Icbafc5ffafb3181412e181800505c3d8be6ae5f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-24 00:57:43 -07:00
Zhibin Liu
7c598253ff Merge "Add support to configure state of operator name in status bar [2/2]" into main 2025-03-24 00:15:24 -07:00
Steven Moreland
a9de5ee4ce Increase 16 KB test timeout, to see how it affects flakes.
Bug: 405230142
Test: N/A
Change-Id: I6370880160eb6024afa505ed1e42542184940d91
2025-03-21 17:54:38 -07:00
Yvonne Jiang
081fab1330 Merge "Update "Manage PIN" entry point." into main 2025-03-21 15:05:09 -07:00
Yvonne Jiang
2887142833 Update "Manage PIN" entry point.
- Updates default icon to outlined version
- Makes availability conditional on existence of supervising credential
- Does not disable entry point when the main switch is disabled

Bug: 405159398
Test: atest SupervisionPinManagementScreenTest
Test: atest SupervisionDashboardScreenTest
Flag: android.app.supervision.flags.enable_supervision_settings_screen
Change-Id: I764a6b767019007a93aacf29ecf47677e16cb058
2025-03-21 12:10:30 -07:00
Treehugger Robot
bf2a6a4c95 Merge "Ignore test to avoid test failed" into main 2025-03-21 10:08:55 -07:00
tom hsu
ef8acb4757 Ignore test to avoid test failed
- This is a work around to avoid test failed then take time to look
   into the root cause.

Flag: EXEMPT bug fix
Bug: b/405279842
Test: atest pass
Change-Id: Idfbf606ed3edf0d7bc4a48b4498e8bdf5a0984c8
2025-03-21 15:58:45 +00:00
tom hsu
8be6d98b1f [Satelllite] Avoid using "add ESIM page"
- When user clicks preference UI, show a dialog to nofity user
   satellite session.

Flag: EXEMPT bug fix
Fix: b/402544816
Test: atest pass
Test: Manual test

Change-Id: Ifeff9368fed906bc56abcc8eb23748a71f79ee4d
2025-03-21 13:48:21 +00:00
Treehugger Robot
af3a006b2a Merge "Add context to FingerprintExtPreferencesProvider" into main 2025-03-21 02:23:39 -07:00
Treehugger Robot
dc34cabee1 Merge "Show hearing device pairing intro according to the device's supported status" into main 2025-03-21 01:55:57 -07:00
jasonwshsu
e3eb185e00 Show hearing device pairing intro according to the device's supported status
Bug: 390078046
Test: atest HearingDevicePairingIntroPreferenceControllerTest
Flag: EXEMPT bugfix
Change-Id: I19b9825a55732c9edb058dd517d6021549e55307
2025-03-21 14:28:12 +08:00
MiltonWu
7379aee081 Add context to FingerprintExtPreferencesProvider
Bug: 405274627
Test: atest FingerprintSettingsFragmentTest
Flag: EXEMPT interface changed
Change-Id: I66527bab885555df1dcab087862e5b1a96593ef5
2025-03-21 06:24:47 +00:00
Treehugger Robot
5540cd1606 Merge "[Satellite] Show category of Your data plan with Manual connection type." into main 2025-03-20 22:05:59 -07:00
tom hsu
0569647a24 [Satellite] Show category of Your data plan with Manual connection type.
- When satellite entitlement is unsupported, it shall show the category of Your data plan with Manual connection type.

Flag: EXEMPT bug fix
Fix: b/405250203
Test: atest pass
Change-Id: I91c5be123d59753d93db37226d0ae17ebb5ea1f5
2025-03-20 20:42:00 -07:00
Kevin Liu
c4cba7cd6b Merge "Fix the deprecated directlyOn method" into main am: a519bd5654
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3545520

Change-Id: I6ed116e75f81b391734e28dc800513f2ed1d643b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-20 08:50:01 -07:00
Kevin Liu
a519bd5654 Merge "Fix the deprecated directlyOn method" into main 2025-03-20 08:18:59 -07:00
Tom Hsu
2e6be73789 Fix test failed of SatelliteSettingsPreferenceControllerTest
- This was fixed already. To avoid keeping failed here, make a work around to this test file.

Flag: EXEMPT bug fix
Fix: 404551954
Test: presubmit pass
Change-Id: I7e6d787a51991525c344a502fbf33b9ca6251667
Merged-In: Icf82dab5a497304df9c3e6a8159e5806ac687445
2025-03-20 04:27:01 -07:00
Marcelo Arteiro
157030dcef Pending Location information added to Dark Theme
Resolved an issue in Settings where sunset/sunrise dark mode failed silently when a location was unavailable. Now, an error dialog is shown, even if location services are enabled, but a specific location is missing.

A footer stating the same issue is now present while the location is pending.

Existing banner that appears when Location is disabled is now being removed once Location is turned on. Previously the UI would refresh only after exiting and returning to the preference view.

Bug: 324548844
Bug: 402025928
Test: atest UiModeManagerServiceTest
Flag: EXEMPT bugfix
Change-Id: I914937185f11a686b453f929728b6329ebd05389
2025-03-20 03:21:45 -07:00
Yiyi Shen
cf5646c92b Merge "[Audiosharing] Refresh preference when onServiceConnected" into main 2025-03-20 03:14:38 -07:00
Yiyi Shen
d09272e607 Merge "[Audiosharing] Avoid dup volume control entries" into main 2025-03-20 01:02:37 -07:00
Haijie Hong
d22895a781 Don't show key missing dialog for exclusively managed device
Test: local tested
Flag: EXEMPT minor fix
Bug: 404890083
Change-Id: I5ec0541b55af81bd3424e3b1af329cecd3a480ad
2025-03-20 00:22:42 -07:00
Shawn Lin
d7c403acae Merge "Reland:Launch multiple biometric enrollment when no biometric is enrolled" into main 2025-03-19 20:02:06 -07:00
Treehugger Robot
0a1019cc64 Merge "Only call super.updateState when work profile exists" into main 2025-03-19 16:31:38 -07:00
Xiaomiao Zhang
76069fe415 Merge "Create data store for safe search preference." into main 2025-03-19 15:40:28 -07:00
Yuri Lin
2034843773 Only call super.updateState when work profile exists
Since the updateState() method is being called regardless of the availability of a work profile, we were trying to get settings for USER_NULL, which was leading to crashes.

Flag: com.android.server.notification.polite_notifications
Fixes: 402317471
Test: manual with existing work profile & without existing work profile
Change-Id: Icddabd9a7575713f42a0f5bd955b65a7e46c7f45
2025-03-19 17:53:12 -04:00
Xiaomiao Zhang
b7de2ba4a5 Create data store for safe search preference.
Test: atest SupervisionSafeSearchPreferenceTest
Test: atest SupervisionWebContentFiltersScreenTest
Test: manually tested with physical device
Flag: android.app.supervision.flags.enable_web_content_filters_screen
Bug: 401568995
Change-Id: Ia9e3f73ac6e9efbe7933dc2958443e9fdb5b4422
2025-03-19 20:59:14 +00:00
Treehugger Robot
e2984b4b06 Merge "Change the resource ID of advanced protection help URI" into main 2025-03-19 10:52:36 -07:00
Azhara Assanova
96c6ed59a6 Change the resource ID of advanced protection help URI
Change-Id I3c6d24e3e9a4358ab1adb342dbee8fc56ac16794 added advanced
protection help URI to frameworks/base/core/res/res/values/config.xml,
so this change removes the duplicate resource from Settings and updates
ActionDisabledByAdvancedProtectionDialog to use the framework resource.

Bug: 401233918
Test: manual
Test: atest ActionDisabledByAdvancedProtectionDialog
Flag: EXEMPT bug fix
Change-Id: Ic84909f4c16d3449bd9981be6659987b1963a26a
2025-03-19 16:02:17 +00:00