summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2015-05-13 16:09:47 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2015-05-13 16:09:47 -0700
commitb4a592e95954efc47b6da92ce8f4702cf454a8be (patch)
tree584afae097314eabce42c3adf3d7a4e80bcef7b0
parent9a682002d0f0da0292af5b8e96aa51b7942acf81 (diff)
downloaddeb-b4a592e95954efc47b6da92ce8f4702cf454a8be.tar.gz
Add support for static RadioCapabilities.
Some RILs don't support RIL_REQUEST_GET_RADIO_CAPABILITY. Add code to RIL.java to notice a REQUEST_NOT_SUPPORTED response and check config.xml (config_radio_access_family) for a static answer. Also catching GENERIC_FAILURE responses because Hammerhead modem returns that. B 21079604 created for this. If neither Modem nor config.xml provide data, uses RAF_UNKNOWN so we don't lie about capabilities and also so we fail fast (setPreferredNetwork won't work). bug:20561357 Change-Id: Ia261c752ba795fd673ecfe5497fd6652f093f26e
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index f125a0e..745cbb5 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -275,4 +275,10 @@
<item>hspa:4094,87380,704512,4096,16384,262144</item>
<item>lte:524288,1048576,2560000,262144,524288,1048576</item>
</string-array>
+
+ <!-- The RadioAccessFamilies supported by the device.
+ Empty is viewed as "all". Only used on devices which
+ don't support RIL_REQUEST_GET_RADIO_CAPABILITY
+ format is UMTS|LTE|... -->
+ <string translatable="false" name="config_radio_access_family">GSM | WCDMA | LTE</string>
</resources>