If the phone process has died, Settings cannot make calls to
TelephonyManager. Update the handling of this case to new best
practices.
Bug: b/394077023
Test: m & atest CellularSecurityPreferenceController
Flag: EXEMPT bugfix
Change-Id: I64ecb143d0830873b590ce4a397c398d8b41943f
The UI flicker is because preference change is notified twice after
onActivityResult calls setBoolean: 1) Catalyst framework registers a
common listener on each preference's storage to update UI when
preference value is changed. 2) The PhoneStateListener in
AirplaneModeStorage. Remove the second listener fixes the issue.
NO_IFTTT=Catalyst only
Fix: 395774878
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: I9f93faf1da87d52a82d9019361b17b4b500d79fe
Adds a click listener to the ethernet interface row and displays a
settings subpage with interface connection status.
Flag: com.android.settings.connectivity.ethernet_settings
Test: atest SettingsRoboTests:
com.android.settings.network.NetworkProviderSettingsTest
Change-Id: Id64ce3657b47dd4ca70d425dd3d13227c8468d2c
Revert submission 31790253
Reason for revert: DroidMonitor: Potential culprit for http://b/397368653 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Reverted changes: /q/submissionid:31790253
Change-Id: I851046019821fff0d132efb0b00cbff1e3ecbe72
Bug: 393951373
FLAG: EXEMPT flag clean up
Test: atest NetworkSelectSettingsTest WifiCallingSettingsForSubTest SatelliteSettingsPreferenceControllerTest
Test: manual test in live network
Change-Id: I154e9be8a8c771fafb37af078be7b495f18b6100
* changes:
Return DISABLED_FOR_USER in deviceinfo/simstatus availability if not admin user
Return UNSUPPORTED_ON_DEVICE in deviceinfo/simstatus when no telephony
Added unit tests for SimStatusPreferenceController visibility
Return DISABLED_FOR_USER in IMEI availability if not admin user
Return UNSUPPORTED_ON_DEVICE in network/imei when no telephony
Added unit test for MobileNetworkImeiPreferenceController visibility
Added unit tests for ImeiInfoPreferenceController visibility
Return UNSUPPORTED_ON_DEVICE in network/phonenumber when no telephony
The correct return when checking for the IMEI field availability
for non-admin users is DISABLED_FOR_USER.
UNSUPPORTED_ON_DEVICE should only be used when the setting is
unconditionally hidden as the device does not support the feature.
Bug: 395714454
Flag: EXEMPT bugfix
Test: atest ImeiInfoPreferenceControllerTest
Test: atest MobileNetworkImeiPreferenceControllerTest
Change-Id: I4ee89a84953993daad539d33d3a2e576540c580f
If the device does not have any telephony support (either via the
build-time config_show_sim_info=false boolean flag, or when not
declaring the PackageManager.FEATURE_TELEPHONY_DATA feature flag),
returning UNSUPPORTED_ON_DEVICE makes more sense than
CONDITIONALLY_UNAVAILABLE, as there is no runtime change that would
make it available.
This change also aligns the behavior with the deviceinfo/imei
entry.
Bug: 395714454
Flag: EXEMPT bugfix
Test: atest MobileNetworkImeiPreferenceControllerTest
Change-Id: Ia01cf3812f8343eabd8ea6970b691ac71432e8bd
If the device does not have any telephony support (either via the
build-time config_show_sim_info=false boolean flag, or when not
declaring the PackageManager.FEATURE_TELEPHONY_DATA feature flag),
returning UNSUPPORTED_ON_DEVICE makes more sense than
CONDITIONALLY_UNAVAILABLE, as there is no runtime change that would
make it available.
This change also aligns the behavior with the deviceinfo/phonenumber
entry.
Bug: 395714454
Flag: EXEMPT bugfix
Test: atest MobileNetworkPhoneNumberPreferenceControllerTest
Change-Id: I5f2392969fad1884a89de3870ad37be5601fbe37
- Shows device apps' info up to 3 on Satellite settings' page.
- Add a new page to show all device's app info with Satellite supported.
Flag: com.android.internal.telephony.flags.satellite_25q4_apis
Fix: b/395813844
Test: atest pass
Change-Id: Ibd5e1c74b636639082ec9477f2b6796bcbc8340d
If in ECBMode, start ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS to show a
dialog instead.
This align with the deactivate sim case
Bug: 393298086
Test: atest SubscriptionActivationRepositoryTest
Test: adb shell cmd phone emergency-callback-mode
Flag: EXEMPT bugfix
Change-Id: Id40d087b7d2d3ca99504ec75bac1c5e29c67258d
* changes:
Phone number only available if telephony capable
Phone number only available for admin users
Added unit test for MobileNetworkPhoneNumberPreferenceController visibility
Added unit tests for PhoneNumberPreferenceController visibility
- Keep the Save button enabled at all times
- Show error in the Hostname view to remind the user
- "The field is required" error
- "The hostname you typed isn't valid" error
Bug: 386323822
Flag: EXEMPT bugfix
Test: Manual testing
atest -c PrivateDnsModeDialogPreferenceTest \
PrivateDnsPreferenceControllerTest
Change-Id: I63973bd5001b838d7f27827e6a6d4ac96ac78ca9
The Phone Number field in either the about or network details pages
should not be shown if the device does not have telephony
capabilities.
Bug: 392808943
Flag: EXEMPT bugfix
Test: atest PhoneNumberPreferenceControllerTest
Test: atest MobileNetworkPhoneNumberPreferenceControllerTest
Change-Id: I04f682cc829d5dc7879e6cdacdaebc55a3b6fd2c
The phone number is hidden to non-admin users, following the same
reasoning that exists for other telephony-specific fields like the
baseband IMEI.
Bug: 392808943
Flag: EXEMPT bugfix
Test: atest PhoneNumberPreferenceControllerTest
Test: atest MobileNetworkPhoneNumberPreferenceControllerTest
Change-Id: I4e612219d0c7439930e91b3e1d6e368a0dfd073e