Permalink
Browse files

Add AOSiP Version to About Phone

Change-Id: I5c1c25e5a5c0545e29cd11db936334effbed9ec5
  • Loading branch information...
xlxfoxxlx committed Jun 11, 2017
1 parent eec9887 commit 077937156cfc1b8a6d61850460510caecf7348a6
Showing with 20 additions and 12 deletions.
  1. +3 −0 res/values/aosip_strings.xml
  2. +15 −12 res/xml/device_info_settings.xml
  3. +2 −0 src/com/android/settings/DeviceInfoSettings.java
@@ -56,6 +56,9 @@
<string name="build_date">Build date</string>
<string name="build_date_default">2017-01-01-0000</string>
<!-- AOSiP Version -->
<string name="aosip_version">AOSiP Build</string>
<!-- MSIM SIM status -->
<string name="sim_card_status_title">SIM %d status</string>
<string name="sim_card_lock_settings_title">SIM %d lock settings</string>
@@ -19,9 +19,10 @@
android:title="@string/about_settings">
<!-- AOSiP About -->
<PreferenceScreen android:key="aosip_logo"
<PreferenceScreen
android:key="aosip_logo"
android:layout="@layout/aosip_about"
android:fragment="com.android.settings.aosip.AosipAbout" />
android:fragment="com.android.settings.aosip.AosipAbout" />
<!-- System update settings - launches activity
<PreferenceScreen android:key="system_update_settings"
@@ -38,18 +39,20 @@
android:targetClass="@string/additional_system_update_menu" />
</PreferenceScreen> -->
<!-- Our OTA Updates
<PreferenceScreen android:key="ota_updates"
android:title="@string/system_update_settings_list_item_title"
android:summary="@string/system_update_settings_list_item_summary">
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="com.ota.updates"
android:targetClass="com.ota.updates.activities.MainActivity" />
</PreferenceScreen> -->
<!-- AOSiP version -->
<com.android.settings.DividerPreference
android:key="aosip_version"
android:enabled="false"
android:shouldDisableView="false"
android:selectable="false"
android:title="@string/aosip_version"
android:summary="@string/device_info_default"
settings:allowDividerAbove="true"
settings:allowDividerBelow="true"/>
<!-- Device Maintainer -->
<Preference android:key="device_maintainer"
<Preference
android:key="device_maintainer"
style="?android:preferenceInformationStyle"
android:title="@string/device_maintainer"
android:summary="@string/device_info_default" />
@@ -77,6 +77,7 @@
private static final String PROPERTY_QGP_VERSION = "persist.qgp.version";
private static final String KEY_DEVICE_MAINTAINER = "device_maintainer";
private static final String KEY_MOD_BUILD_DATE = "build_date";
private static final String KEY_AOSIP_VERSION = "aosip_version";
static final int TAPS_TO_BE_A_DEVELOPER = 7;
@@ -127,6 +128,7 @@ public void onCreate(Bundle icicle) {
setValueSummary(KEY_QGP_VERSION, PROPERTY_QGP_VERSION);
setMaintainerSummary(KEY_DEVICE_MAINTAINER, "ro.aosip.maintainer");
setValueSummary(KEY_MOD_BUILD_DATE, "ro.build.date");
setValueSummary(KEY_AOSIP_VERSION, "ro.aosip.version");
// Remove QGP Version if property is not present
removePreferenceIfPropertyMissing(getPreferenceScreen(), KEY_QGP_VERSION,
PROPERTY_QGP_VERSION);

0 comments on commit 0779371

Please sign in to comment.