Commit Graph

138799 Commits

Author SHA1 Message Date
Meng Wang
bcf91ee6a7 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
Merged-In: Iff40c1fb9a2463311768d24d09dfc3aeeee128f9
Change-Id: Iff40c1fb9a2463311768d24d09dfc3aeeee128f9
2024-04-26 21:28:58 +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
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
Rafael Higuera Silva
958b737fcc Merge "Extract and fix logic for showing rac dialog." into 24D1-dev 2024-04-25 18:27:53 +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
Kuan Wang
1ece0152d2 Add unique job id for the service to enable power monitor receiver.
Test: atest BootBroadcastReceiverTest
Bug: 328860438
Change-Id: I5e79f8da90097b1a404e96f5112c6884fc3beba1
(cherry picked from commit 0c85e4bca9)
2024-04-25 08:40:03 +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
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
Jason Chang
58b70959a6 Merge "Fix Talkback announcement for SFPS enrollment issues" into 24D1-dev 2024-04-24 08:28:23 +00:00
Treehugger Robot
bccfb85bc2 Merge "Update satellite icon to match with system UI's" into 24D1-dev 2024-04-23 13:25:44 +00:00
Treehugger Robot
09bcd6cab8 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-22 16:51:12 +00:00
Jason Chang
0c61a9662c Fix Talkback announcement for SFPS enrollment issues
Remove the redundant "enrolled %" string when talkback announcement.

Bug: 324488176

Flag: NONE

Test: manually do SFPS enrolling then hearing the sounds to check.
Change-Id: I00d1f885bca2609cd954817943a1d4f5625a95b3
2024-04-22 13:38:30 +00:00
Bill Yi
e49cffe60f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia29286a18eaeca72bdbff24b8709e5d42a778df4
2024-04-22 01:31:27 -07:00
Chaohui Wang
4f5920c3f5 Not include user input in regex
Check prefix and remove prefix first, to avoid include user input in
the regex to fix.

Fix: 335136289
Test: manual - on SIMs
Test: unit test
Change-Id: Iff4dcfc3662c744d00b586d05e64b4f5fe33a0d8
2024-04-22 04:56:57 +00:00
Treehugger Robot
72e6b810bf Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-19 16:00:28 +00:00
Bill Yi
1d50029068 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibe0a0b833ab13c32ea9ab79b4af642fd014bf535
2024-04-18 22:31:33 -07:00
Bill Yi
0a7a98a394 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2ae71da857787ac20d45d8c29a6b824662e510cc
2024-04-18 22:27:38 -07:00
Treehugger Robot
29ad4163c2 Merge "When erasing an eSIM, verify the device screen PIN lock if one is set." into 24D1-dev 2024-04-18 17:46:59 +00:00
Rafael Higuera Silva
6389239f76 Merge "Add logic to log interaction of RAC warning dialog." into 24D1-dev 2024-04-18 16:28:38 +00:00
Hakjun Choi
632b2f09df Update satellite icon to match with system UI's
Reflected updated satellite icon.

Bug: 335580537
Test: manually verify the icon is matched with the icon on notification area
Change-Id: I6a4eb05ceb0d8ad208b1fb8ac1c43cfc389d1dec
2024-04-18 09:29:59 +00:00
Meng Wang
63d10cc4ba When erasing an eSIM, verify the device screen PIN lock if one is set.
SIM PIN lock existence isn't checked anymore.

Bug: 329202869
Test: manual - see b/329202869#comment41
Merged-In: I2c4d2b7e224973c4afa75573e05afe7607d2ae6b
Change-Id: I2c4d2b7e224973c4afa75573e05afe7607d2ae6b
(cherry picked from commit f4462ac5c2)
2024-04-17 22:16:46 +00:00
Treehugger Robot
f02cfc9526 Merge "Add logic to log interaction of RAC warning dialog." into 24D1-dev 2024-04-17 17:30:24 +00:00
Samuel Huang
efe0ce2b2f Merge "Disable SIM On/Off operation when device is in Satellite Enabled Mode" into 24D1-dev 2024-04-17 07:44:44 +00:00
Treehugger Robot
5278c0f83e Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-16 17:25:07 +00:00
Treehugger Robot
093aa25cf3 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-16 17:25:07 +00:00
Treehugger Robot
4b86ea2ca3 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-16 17:25:07 +00:00
Vaibhav Devmurari
50a16b9fef Merge "Modify PK Settings page to make it more user friendly" into 24D1-dev 2024-04-16 13:26:07 +00:00
Samuel Huang
316e7bf3e6 Disable SIM On/Off operation when device is in Satellite Enabled Mode
Cherry-picking ag/26965536 into the 24D1-dev branch caused conflicts. Therefore, manually create this CL to migrate the MobileNetworkSwitchController to Kotlin and utilize Compose.

Bug: 315928920
Test: atest, manual
Change-Id: I215b5a4615a3b3da6fc160f76c85c814210cc3ef
Merged-In: I7aaaf43b4c449129197e7cc92565d274ffdd2d8c
2024-04-16 09:52:00 +00:00
YK Hung
67df73a1fd Merge "Add charging string V2 for settings" into 24D1-dev 2024-04-16 01:25:31 +00:00
Bill Yi
391eb07072 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I75c35ca032a0d20f8befb60d3c7c0daabe6995d3
2024-04-15 17:26:46 -07:00
Bill Yi
650dc6b4ad Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia9654246b3b1a4f026d2a95205ff94004e7360a5
2024-04-15 17:23:19 -07:00
Bill Yi
379550239e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2f59f1e5376bd9ac3576fefdbfe7c042d03c1948
2024-04-15 17:19:30 -07:00
Pajace Chen
d9b44a8b9c Add charging string V2 for settings
Apply charging string V2 for settings

Bug: 328546483
Test: Manual test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6f3c97f60a966a8ec357ba4d15b19d9d7a04b34d)
Merged-In: Ic68bf4231da81d865faa285bca97a929abe26a42
Change-Id: Ic68bf4231da81d865faa285bca97a929abe26a42
2024-04-12 06:23:55 +00:00
songferngwang
428aaacefa Fix the settings crash
When the user select mobile network settings item with subid=-1 in
the search list, then some of objects are not initialized.

Bug: 325956182
Test: atest AutoSelectPreferenceControllerTest
atest MobileNetworkPhoneNumberPreferenceControllerTest
atest MobileNetworkSpnPreferenceControllerTest
atest MobileNetworkImeiPreferenceControllerTest
atest WifiCallingPreferenceControllerTest

Change-Id: I17c24b6f542392f018c65b689862f9735fad4b9f
(cherry picked from commit e0b5de28ae)
2024-04-12 06:07:21 +00:00
Chaohui Wang
e499724357 Merge "Move nfc_detection_point.png to res/drawable" into 24D1-dev 2024-04-12 03:10:48 +00:00
Treehugger Robot
1aea823b37 Merge "Restore enterprise policy checks" into 24D1-dev 2024-04-11 18:44:39 +00:00
Treehugger Robot
46d35a41d7 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-11 17:26:52 +00:00
Treehugger Robot
2e1f012b2b Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-11 17:26:52 +00:00
Treehugger Robot
7efcaf884a Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-04-11 17:26:52 +00:00
Neil Fuller
a39c14c08e Restore enterprise policy checks
Restore enterprise policy checks removed by commit
fdab44f9e7 and not since restored by other
changes.

Bug: 325886855
Bug: 316584466
Bug: 235445309
Test: Treehugger only
Change-Id: Id3d79805bb2289b84ad34ac05a97e50f0410502f
(cherry picked from commit 5d80553a15)
2024-04-11 12:48:51 +00:00
Samuel Huang
f2ed0ec752 Avoid SIM card on/off dialog pop-up if satellite is enabled
In order to support Satellite SOS, device will have two modems, one for TN, one for NTN(satellite).

When device switches to satellite mode, PSS only disables TN eSIM (and not TN PSIM). Since NTN image only supports eSIM, there is no need to disable TN PSIM before switching to NTN image. Somehow device is seeing that TN PSIM is available and is showing the user to enable it. So we need to handle it by not showing this dialog during satellite mode enabled.

Bug: 330585109
Test: atest, manual
Change-Id: I9781b7e1cef8f7f10e7ecdbb23ca729da4d06eba
2024-04-11 05:20:53 +00:00
Bill Yi
172b3d5664 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8fca1324f16465e3eac933506b9c60316a037093
2024-04-10 20:37:04 -07:00
Bill Yi
e049a82da8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2f88e30a1664d04b066bed046c51aef1e5ee77c5
2024-04-10 20:33:56 -07:00
Bill Yi
519a9badad Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id689b746d3126100265b56378adf533ab2a46697
2024-04-10 20:30:41 -07:00
Rafael Higuera Silva
268fa16d5b Add logic to log interaction of RAC warning dialog.
Bug: 326618987
Test: make, atest EuiccRacConnectivityDialogFragmentTest
Change-Id: Iccec9245da27d525cfb3d74504ab86859e152a6e
Merged-In: Iccec9245da27d525cfb3d74504ab86859e152a6e
(cherry picked from commit ea0453e5f6)
2024-04-10 16:26:06 +00:00
Chaohui Wang
b67133310a Move nfc_detection_point.png to res/drawable
From res/drawable-nodpi, for easier overlay.

Bug: 333631061
Test: visual - on NFC
Change-Id: I5b83a399d6ba10644843c816fa369efef869a006
2024-04-10 17:59:19 +08:00
Song Chun Fan
844d2f4c67 [Settings/Archive] remove all checks for the archiving system property
No longer needed

BUG: 331165939
Test: builds
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6ae958abd26ed77ecd4d3fb1720bb912553da2ea)
Merged-In: I24bc9a3d7503da1606d29eb3dfa963b0e6bf9d3e
Change-Id: I24bc9a3d7503da1606d29eb3dfa963b0e6bf9d3e
2024-04-09 18:08:41 +00:00
Rafael Higuera Silva
5405aa17a1 Add logic to log interaction of RAC warning dialog.
Bug: 326618987
Test: make, atest EuiccRacConnectivityDialogActivityTest
Change-Id: If4e3285b3715e9630d4932d4bf1bcb71e4167cff
Merged-In: If4e3285b3715e9630d4932d4bf1bcb71e4167cff
2024-04-09 17:14:35 +00:00
Vaibhav Devmurari
28e20afb08 Modify PK Settings page to make it more user friendly
PK Settings page:
    - Show current PK layout selected for the current user profile and current IME language instead of a list of IMEs

PK layout mapping page:
    - Show IME name in header only if multiple active IMEs
    - Show the PK layout selection criteria (Automatic v/s User selected)

Bug: 325925410
Bug: 326195401
Test: manual
Change-Id: I93a2e169742a800fa116fa5d55e1a91e5548cebb
Merged-In: I93a2e169742a800fa116fa5d55e1a91e5548cebb
2024-04-09 10:42:57 +00:00
Rafael Higuera Silva
f6e0b08fc6 Merge "Add new warning dialogue when user is Resetting mobile network settings." into 24D1-dev 2024-04-05 23:43:02 +00:00