Commit Graph

53407 Commits

Author SHA1 Message Date
Meng Wang
1331449353 When erasing an eSIM, verify the device screen PIN lock if one is set.
SIM PIN lock existence isn't checked anymore.

Bug: 335672518
Test: b/335672518#comment6
Change-Id: Iff40c1fb9a2463311768d24d09dfc3aeeee128f9
2024-04-26 20:33:38 +00:00
Jason Chiu
a2ae051044 Merge "Revert "Fix crash of starting private app info pages for LS"" into main 2024-04-26 13:20:55 +00:00
Joseph Vincent
812eef847e Merge "Add line break strategy to remove header hyphenation" into main 2024-04-26 09:54:00 +00:00
Jason Chiu
a09d2650b9 Revert "Fix crash of starting private app info pages for LS"
This reverts commit f9fabeae1c.

Reason for revert: Java crash when trying to open Settings on secondary user

Bug: 336697633
Bug: 337044085
Change-Id: I0c6793ce2a28294c093c9786cecddd19bd643141
2024-04-26 09:17:45 +00:00
Samuel Huang
9b8558394c Fix the "Use this SIM" switch does not disable during phone calls am: 4f454b43c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27105181

Change-Id: I2be1b144aa7d1d120692ccfece3c921e488fc308
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 09:13:17 +00:00
Samuel Huang
4f454b43c6 Fix the "Use this SIM" switch does not disable during phone calls
If the registration failed (e.g., device doesn't support satellite), SatelliteManager will not emit the current state by callback. We send `false` value by ourself to make sure the flow has initial value.

Bug: 315928920
Test: atest, manual
Change-Id: Ic87f71bc576cfb1f8e4053c5784fca401adaec08
2024-04-26 05:54:40 +00:00
Treehugger Robot
984039eec8 Merge "Provide different ways to detect battery defender." into main 2024-04-26 04:18:55 +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
Yiling Chuang
11e810e7a7 Provide different ways to detect battery defender.
Bug: 335567248
Test: robotests
Change-Id: Ie1d3d7da99fa698468ffd124410cfd3b56bc0c34
2024-04-26 03:10:51 +00:00
Samuel Huang
fea80bf236 Merge "Ignore ACTION_PRIMARY_SUBSCRIPTION_LIST_CHANGED event if satellite session is started" into 24D1-dev 2024-04-26 03:08:53 +00:00
Eric Biggers
3fd46cc27d Use KeyProperties.UID_SELF instead of KeyStore.UID_SELF
Since the class 'android.security.KeyStore' is going away, the UID_SELF
constant is being moved to a more appropriate location in KeyProperties.
Update code that references this constant to use the new location.  No
change in behavior; the value of the constant remains the same.

Bug: 326508120
Test: build
Flag: NONE mechanical refactoring with no behavior change
Change-Id: Iaca5b20c37b7952df8f26a99b3f7391c5a7f01b6
2024-04-25 19:21:31 +00:00
Rafael Higuera Silva
1d307afd95 Merge "Extract and fix logic for showing rac dialog." into 24D1-dev am: 958b737fcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27072479

Change-Id: I9f5c4c8dea3c7aebc73b5121d6ace7aca22c1dfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 19:07:24 +00:00
Tetiana Meronyk
86322e6398 Merge "Keep Multiuser toggle hint visible at all times" into main 2024-04-25 16:16:18 +00: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
Manish Singh
50b5bae531 Don't send data for non-main users
This is a regression caused by ag/26661827

Fix: 333872544
Test: manual
Test: atest PrivateSpaceSafetySourceTest
Change-Id: I0465899af3745fa39eab8806dbceb347d70b0aa3
2024-04-25 12:23:40 +00:00
Tetiana Meronyk
37ac9a393b Keep Multiuser toggle hint visible at all times
Bug: 336773027
Test: atest UserSettingsTest
Change-Id: Ib5f4ad674c4099a276c8c86d0ed96bdba956540c
2024-04-25 11:41:09 +00:00
Manish Singh
544fa52e1a Merge "Don't show uninstall for all users" into main 2024-04-25 09:30:05 +00:00
Chaohui Wang
446e0a18d1 Refresh the preferred APN after "Reset to default"
Previously, ApnSettings will updated the preferred APN selection when
data connection changes, but this is not the source of truth.

Observe the preferred APN directly to fix.

Fix: 257316932
Test: manual - on ApnSettings
Test: unit test
Change-Id: Ie323316ab8f7fa63edf5cf90633bcdd4486728c4
2024-04-25 11:14:21 +08:00
Ivan Chiang
6afb9ece62 Add the different summary for the app store details
When the initiating package is different from the installing package,
show the different summary. E.g WebApk

Test: atest AppInstallerInfoPreferenceTest
Bug: 329140383
Change-Id: Icd5559bce06c059844269d70926b3c0b39589edb
2024-04-25 02:41:33 +00:00
Rafael Higuera Silva
36d99e8b09 Extract and fix logic for showing rac dialog.
Added tests to make sure the logic makes sense.

Bug: 335745726
Test: make, manual, atest SubscriptionUtilRoboTest, atest SubscriptionUtilTest, atest ResetNetworkTest
Change-Id: I7092f2747f1ca1f9ef4dc99275a916b9e24d8b28
2024-04-25 01:34:47 +00:00
David Jacobo
240b32fa91 settings: Make use of ACTION_NETWORK_PROVIDER_SETTINGS
This CL makes use of the newly introduced action for
NETWORK_PROVIDER_SETTINGS.

Bug: None
Test: atest -c ProviderModelSliceTest
Change-Id: Ie0ccde2f49502a634801401e1b33f1d4b9c7d728
2024-04-24 17:08:42 -07:00
Thomas Nguyen
f6f2f6135d Disable SIM On/Off operation when device is in a Satellite session am: c6005fb22a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27073216

Change-Id: I529d0a86739891873c205b3ff9eff065e50ed201
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 21:56:40 +00:00
Thomas Nguyen
c6005fb22a Disable SIM On/Off operation when device is in a Satellite session
Bug: 330585109
Test: SatelliteManagerTestOnMockService SatelliteSessionControllerTest SatelliteControllerTest
Manual test with demo and real mode

Change-Id: Iade6426981f76a0b9b71828e0c86d3088c3e974e
2024-04-24 16:35:13 +00:00
Yuri Lin
d1347a5d85 Merge "Base classes for general modes settings and rule-specific settings pages." into main 2024-04-24 15:59:01 +00:00
Yuri Lin
34c82e17ec Base classes for general modes settings and rule-specific settings pages.
Flag: android.app.modes_ui
Bug: 335259054
Test: manual through toy extensions of the base classes
Change-Id: I3b950c5556299aaf89fd730c91bf87adfe2f0784
2024-04-24 10:31:15 -04:00
Matías Hernández
7cfc461e63 Merge "Add support for rules with filter=ALL in ZenModesBackend" into main 2024-04-24 12:02:41 +00:00
Tetiana Meronyk
94537be5d6 Merge "Add separate summary "Owner" for main user on the device" into main 2024-04-24 10:28:33 +00:00
Matías Hernández
3819299a08 Add support for rules with filter=ALL in ZenModesBackend
This is represented as an extra, special value for the AllowChannels field in ZenPolicy, with special treatment.

Bug: 327419222
Bug: 331267485
Test: atest ZenModeTest
Flag: android.app.modes_ui
Change-Id: I44440e40e729d295150b36beda824ddbfa1f170d
2024-04-24 12:07:20 +02:00
Jason Chang
7007b1ba3b Merge "Fix Talkback announcement for SFPS enrollment issues" into 24D1-dev am: 58b70959a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/26976676

Change-Id: I5e6098952d00ec28c487eaa0e1e2825036de9e19
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 08:42:45 +00:00
Treehugger Robot
5ef0fe533e Merge "Prevent blank sim label showing on screen." into main 2024-04-24 05:14:03 +00:00
tomhsu
49e3afc551 Prevent blank sim label showing on screen.
fix: 333642116
Test: Manual test, see b/333642116#14
Change-Id: I776135d8ba609c4ea1fac47cfb765e00f8525497
2024-04-24 05:02:25 +00:00
Edgar Wang
16ac28580a Merge "Fix Settings Crash" into main 2024-04-24 04:00:18 +00:00
Chaohui Wang
a968e2dea8 Merge "Get icon id from CellIdentity instead of CellInfo" into main 2024-04-24 03:56:49 +00:00
Paulz Chen
a2187ca756 Merge "Reland add FeatureProvider for SyncAcrossDevices Settings integration." into main 2024-04-24 02:27:31 +00:00
Treehugger Robot
a56a64adf4 Merge "Update logs for BluetoothDetailsHearingAidsPresetsController" into main 2024-04-24 02:15:19 +00:00
paulzhchen
5f391359e3 Reland add FeatureProvider for SyncAcrossDevices Settings integration.
Prior CL ag/26930404 was reverted because an unused class was
trimmed in AOSP, causing test cases to throw NoClassDefFoundError
exceptions. This CL combines ag/26930404 and ag/26995936 to address
the failure.

Bug: 330498032
Test: atest FakeFeatureFactory, atest SyncAcrossDevicesPreferenceControllerTest
Change-Id: I0a7ebccdebcad20e06d7542d7c4a0005885f393b
2024-04-24 02:02:35 +00:00
Joseph Vincent
c44d4f3f6f Merge "Clear settings task on deleting private space" into main 2024-04-23 20:07:36 +00:00
Treehugger Robot
44914893da Merge "Tightens Accessibility Settings owners." into main am: 1c7a9269a1 am: 90d0111cfd
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3052422

Change-Id: I49233063956e05ad9738d15c72833fecca5c8349
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 20:06:15 +00:00
Treehugger Robot
1c7a9269a1 Merge "Tightens Accessibility Settings owners." into main 2024-04-23 19:35:23 +00:00
Tetiana Meronyk
9e32702ded Add separate summary "Owner" for main user on the device
Bug: 298008926
Test: visual
Change-Id: I78ece410ab939a4727e44e371ae43779e96950e0
2024-04-23 17:38:49 +00:00
Manish Singh
9229860d60 Don't show uninstall for all users
when the only profiles that have the package are hidden in quiet mode

Fix: 334041279
Test: atest AppInfoSettingsMoreOptionsTest
Test: manual
Change-Id: Ic8e594eb1db5bed926783a244a24e24c4435f04e
2024-04-23 16:54:09 +00:00
YK Hung
7cfa402cf9 Merge "Remove redundant battery usage slot in database." into main 2024-04-23 16:13:50 +00:00
Edgar Wang
59cb0e1b30 Fix Settings Crash
TelephonyManager modify getAllowedCarriers api, cause Setting crash.
Add try catch to avoid the issue.

Bug: 335751239
Change-Id: I5777c92f8eaf44413f60002e746e9969b3bd9f0d
Test: manual test
2024-04-23 16:02:09 +00:00
Manish Singh
6f5b862544 Merge "Fix crash of starting private app info pages for LS" into main 2024-04-23 14:13:38 +00:00
josephpv
f58acef107 Clear settings task on deleting private space
When private space is deleted from private space settings launched from
the All apps settings cog the settings sub activity is not cleared and
visibile in recents.
With this change it is taken care to remove and clear the sub settings
task hosting the Private space settings page when private space does not
exist and to make sure the activity is removed if it is the last
activity in that stack.

Bug: 333538964
Test: Manual
Change-Id: I22ba8ca8d2947c6604280cf398cd47434038d542
2024-04-23 13:30:15 +00:00
josephpv
35661f7d65 Add line break strategy to remove header hyphenation
This change sets line break strategy and the max lines limit for the
private space setup choose lock screen header

Screenshot:
go/ss/8CFXUAUkKXAZiPM.png

Bug: 331538317
Test: Manual
Change-Id: I8c8bd8d130dc0d61d050d274ac0b734a6c5e3d21
2024-04-23 12:12:25 +00:00
mxyyiyi
740f348265 Remove redundant battery usage slot in database.
Bug: 336423923
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I1b2d172a42a20a8cc8dc734498e37ed92e4624dd
2024-04-23 18:59:24 +08:00
Hyunho Shin
ebc05f131d Merge "Add a try-catch statement to handle the runtime exception" into main 2024-04-23 10:51:29 +00:00
Manish Singh
82e6ad5098 Merge "PrivateSpaceAuthenticationActivity to support dual-pane mode" into main 2024-04-23 09:58:57 +00:00
Chaohui Wang
dae4c04b74 Get icon id from CellIdentity instead of CellInfo
Currently NetworkSelectSettings.forceUpdateConnectedPreferenceCategory()
only pass CellIdentity, but not the CellInfo.

Get icon id from CellIdentity to fix.

Fix: 336238346
Test: visual - on NetworkSelectSettings
Change-Id: Ia30a45eef9d55815c8a45629c86cf83a6a480868
2024-04-23 17:22:24 +08:00