Replace old no-service resource with new one

The new no-service resource is a list of countries which use the "no
service" message by default instead of "emergency calls only." This
allows us to customize the config even when no SIM is present.

Bug: 126651774
Test: atest ServiceStateTrackerTest
Change-Id: I6bf57c61c2b0fbce9d2bae8c3f3870ae1aa716de
This commit is contained in:
Jordan Liu
2019-06-25 16:37:56 -07:00
parent b6a11c53cc
commit 15f983296e
2 changed files with 6 additions and 4 deletions

View File

@@ -3783,9 +3783,11 @@
<integer name="config_stableDeviceDisplayWidth">-1</integer>
<integer name="config_stableDeviceDisplayHeight">-1</integer>
<!-- Decide whether to display 'No service' on status bar instead of 'Emergency calls only'
when SIM is unready. -->
<bool name="config_display_no_service_when_sim_unready">false</bool>
<!-- List of countries in which we display 'No service' on status bar
instead of 'Emergency calls only' when SIM is unready. -->
<string-array translatable="false" name="config_display_no_service_when_sim_unready">
<item>"DE"</item>
</string-array>
<!-- Class names of device specific services inheriting com.android.server.SystemService. The
classes are instantiated in the order of the array. -->

View File

@@ -3551,7 +3551,7 @@
<java-symbol type="integer" name="config_stableDeviceDisplayWidth" />
<java-symbol type="integer" name="config_stableDeviceDisplayHeight" />
<java-symbol type="bool" name="config_display_no_service_when_sim_unready" />
<java-symbol type="array" name="config_display_no_service_when_sim_unready" />
<java-symbol type="layout" name="slice_grid" />
<java-symbol type="layout" name="slice_message_local" />