Skip to content
Browse files

Expose build date in About screen

  • Loading branch information...
1 parent 8c9cbbf commit bb0382d5752c6ebb1c1816a664d08979c5a78259 @peteralfonso committed Jan 1, 2012
Showing with 10 additions and 0 deletions.
  1. +2 −0 res/values/strings.xml
  2. +6 −0 res/xml/device_info_settings.xml
  3. +2 −0 src/com/android/settings/DeviceInfoSettings.java
View
2 res/values/strings.xml
@@ -1774,6 +1774,8 @@
<string name="kernel_version">Kernel version</string>
<!-- About phone screen, setting option name-->
<string name="build_number">Build number</string>
+ <!-- About phone screen, setting option name-->
+ <string name="build_date">Build date</string>
<!-- About phone screen, show when a value of some status item is unavailable. -->
<string name="device_info_not_available">Not available</string>
View
6 res/xml/device_info_settings.xml
@@ -111,4 +111,10 @@
android:title="@string/build_number"
android:summary="@string/device_info_default"/>
+ <!-- Detailed build date -->
+ <Preference android:key="build_date"
+ style="?android:preferenceInformationStyle"
+ android:title="@string/build_date"
+ android:summary="@string/device_info_default"/>
+
</PreferenceScreen>
View
2 src/com/android/settings/DeviceInfoSettings.java
@@ -55,6 +55,7 @@
private static final String PROPERTY_URL_SAFETYLEGAL = "ro.url.safetylegal";
private static final String KEY_KERNEL_VERSION = "kernel_version";
private static final String KEY_BUILD_NUMBER = "build_number";
+ private static final String KEY_BUILD_DATE = "build_date";
private static final String KEY_DEVICE_MODEL = "device_model";
private static final String KEY_BASEBAND_VERSION = "baseband_version";
private static final String KEY_FIRMWARE_VERSION = "firmware_version";
@@ -73,6 +74,7 @@ public void onCreate(Bundle icicle) {
setValueSummary(KEY_BASEBAND_VERSION, "gsm.version.baseband");
setStringSummary(KEY_DEVICE_MODEL, Build.MODEL + getMsvSuffix());
setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY);
+ setValueSummary(KEY_BUILD_DATE, "ro.build.date");
findPreference(KEY_KERNEL_VERSION).setSummary(getFormattedKernelVersion());
// Remove Safety information preference if PROPERTY_URL_SAFETYLEGAL is not set

0 comments on commit bb0382d

Please sign in to comment.
Something went wrong with that request. Please try again.