Set RTT capability on the emergency PhoneAccount
When a device doesn't have a SIM inserted, Telephony registers a special
PhoneAccount with Telecom for making emergency calls. This changes sets
the RTT capability on that emergency PhoneAccount under certain
circumstances, letting the phone dial an emergency RTT call even without
a SIM.
In order for a device to support this functionality, they should set the
config_support_simless_emergency_rtt config to true in their device
overlay.
Fixes: 147078534
Test: manual
Change-Id: Idab399e99f4a25396003329e6d03048d8767ba7b
Merged-In: Idab399e99f4a25396003329e6d03048d8767ba7b
diff --git a/res/values/config.xml b/res/values/config.xml
index d4e4c79..423236d 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -257,6 +257,16 @@
audio stream which the remote party will be able to hear. -->
<bool name="config_support_telephony_audio_device">false</bool>
+ <!-- Whether the device supports dialing emergency RTT calls when there's no SIM card installed
+ -->
+ <bool name="config_support_simless_emergency_rtt">false</bool>
+
+ <!-- Array of countries that support sim-less emergency RTT calls. Values should be
+ ISO3166 country codes in lowercase. -->
+ <string-array name="config_simless_emergency_rtt_supported_countries">
+ <item>us</item>
+ </string-array>
+
<string-array translatable="false" name="config_volte_provision_error_on_publish_response">
<item>403 not authorized for presence</item>
</string-array>