diff options
author | John Wang <johnwang@google.com> | 2012-07-12 15:07:45 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-07-12 15:07:45 -0700 |
commit | 022fa6c51a6abde4b88f7687b639bc2006e2d8eb (patch) | |
tree | df40a6c30f55b70074841a4caa45bf07f47e069f /src | |
parent | f10b383702a267bbc88270b100626aeacfeb35fa (diff) | |
parent | e8b2530260abc74e570ae266b49bade240f14913 (diff) | |
download | packages_apps_settings-022fa6c51a6abde4b88f7687b639bc2006e2d8eb.zip packages_apps_settings-022fa6c51a6abde4b88f7687b639bc2006e2d8eb.tar.gz packages_apps_settings-022fa6c51a6abde4b88f7687b639bc2006e2d8eb.tar.bz2 |
am e8b25302: am b0b45c02: Display FCC id for LTE in Settings.
* commit 'e8b2530260abc74e570ae266b49bade240f14913':
Display FCC id for LTE in Settings.
Diffstat (limited to 'src')
-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)); |