diff options
author | John Wang <johnwang@google.com> | 2011-06-30 14:31:44 -0700 |
---|---|---|
committer | John Wang <johnwang@google.com> | 2012-07-11 16:50:32 -0700 |
commit | b0b45c02ec73c87f78a8358a7e98747bd96ec103 (patch) | |
tree | d3f187ef7190212d998d7f3885bf2946ab357a99 /src/com/android/settings | |
parent | efc229b3c3c969eef1d32d62435741228b96aeb9 (diff) | |
download | packages_apps_settings-b0b45c02ec73c87f78a8358a7e98747bd96ec103.zip packages_apps_settings-b0b45c02ec73c87f78a8358a7e98747bd96ec103.tar.gz packages_apps_settings-b0b45c02ec73c87f78a8358a7e98747bd96ec103.tar.bz2 |
Display FCC id for LTE in Settings.
If ro.ril.fccid is set by RIL, display it at Settings -> About Tablet -> FCC Equipment ID.
bug:4965501
Change-Id: I920ab071bf1997c4fbf3ce81f88e24f512d004c3
Diffstat (limited to 'src/com/android/settings')
-rw-r--r-- | src/com/android/settings/DeviceInfoSettings.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/settings/DeviceInfoSettings.java b/src/com/android/settings/DeviceInfoSettings.java index c25a466..7d8b805 100644 --- a/src/com/android/settings/DeviceInfoSettings.java +++ b/src/com/android/settings/DeviceInfoSettings.java @@ -59,6 +59,8 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment { private static final String KEY_BASEBAND_VERSION = "baseband_version"; private static final String KEY_FIRMWARE_VERSION = "firmware_version"; private static final String KEY_UPDATE_SETTING = "additional_system_update_settings"; + private static final String KEY_EQUIPMENT_ID = "fcc_equipment_id"; + private static final String PROPERTY_EQUIPMENT_ID = "ro.ril.fccid"; long[] mHits = new long[3]; @@ -72,6 +74,8 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment { findPreference(KEY_FIRMWARE_VERSION).setEnabled(true); setValueSummary(KEY_BASEBAND_VERSION, "gsm.version.baseband"); setStringSummary(KEY_DEVICE_MODEL, Build.MODEL + getMsvSuffix()); + setValueSummary(KEY_EQUIPMENT_ID, PROPERTY_EQUIPMENT_ID); + setStringSummary(KEY_DEVICE_MODEL, Build.MODEL); setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY); findPreference(KEY_KERNEL_VERSION).setSummary(getFormattedKernelVersion()); @@ -79,6 +83,10 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment { removePreferenceIfPropertyMissing(getPreferenceScreen(), "safetylegal", PROPERTY_URL_SAFETYLEGAL); + // Remove Equipment id preference if FCC ID is not set by RIL + removePreferenceIfPropertyMissing(getPreferenceScreen(), KEY_EQUIPMENT_ID, + PROPERTY_EQUIPMENT_ID); + // Remove Baseband version if wifi-only device if (Utils.isWifiOnly(getActivity())) { getPreferenceScreen().removePreference(findPreference(KEY_BASEBAND_VERSION)); |