Skip to content

Commit

Permalink
Forward Port: Add Slim version to about phone
Browse files Browse the repository at this point in the history
Change-Id: Ib3170a8892740a70f468388d9d8d046f913f1b47
  • Loading branch information
mnm9994u authored and gmillz committed Mar 27, 2016
1 parent 5a63bce commit 89c6a0a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions res/values/slim_strings.xml
Expand Up @@ -216,4 +216,8 @@
<!-- Memory -->
<string name="memory_startup_apps_title">Apps started on boot</string>

<!-- About phone screen, Slim version -->
<string name="slim_version_title">Slim version</string>
<string name="slim_version_default">Unknown</string>

</resources>
6 changes: 6 additions & 0 deletions res/xml/device_info_settings.xml
Expand Up @@ -83,6 +83,12 @@
android:title="@string/security_patch"
android:summary="@string/device_info_default"/>

<!-- Slim firmware version -->
<Preference android:key="slim_version"
style="?android:preferenceInformationStyle"
android:title="@string/slim_version_title"
android:summary="@string/slim_version_default"/>

<!-- Device FCC equipment id -->
<Preference android:key="fcc_equipment_id"
style="?android:preferenceInformationStyle"
Expand Down
2 changes: 2 additions & 0 deletions src/com/android/settings/DeviceInfoSettings.java
Expand Up @@ -77,6 +77,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
private static final String KEY_BASEBAND_VERSION = "baseband_version";
private static final String KEY_FIRMWARE_VERSION = "firmware_version";
private static final String KEY_SECURITY_PATCH = "security_patch";
private static final String KEY_SLIM_VERSION = "slim_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";
Expand Down Expand Up @@ -122,6 +123,7 @@ public void onCreate(Bundle icicle) {
getPreferenceScreen().removePreference(findPreference(KEY_SECURITY_PATCH));

}
setValueSummary(KEY_SLIM_VERSION, "ro.slim.version");
setValueSummary(KEY_BASEBAND_VERSION, "gsm.version.baseband");
setStringSummary(KEY_DEVICE_MODEL, Build.MODEL + getMsvSuffix());
setValueSummary(KEY_EQUIPMENT_ID, PROPERTY_EQUIPMENT_ID);
Expand Down

0 comments on commit 89c6a0a

Please sign in to comment.