Loading res/values/strings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -2286,6 +2286,8 @@ <!-- About phone screen, setting option name [CHAR LIMIT=40] --> <string name="build_number">Build number</string> <!-- About phone screen, setting option name [CHAR LIMIT=40] --> <string name="qgp_version">QGP Version</string> <!-- About phone screen, setting option name [CHAR LIMIT=40] --> <string name="selinux_status">SELinux status</string> <!-- About phone screen, show when a value of some status item is unavailable. --> Loading res/xml/device_info_settings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -120,6 +120,12 @@ android:title="@string/build_number" android:summary="@string/device_info_default"/> <!-- Device QGP version --> <Preference android:key="qgp_version" style="?android:preferenceInformationStyle" android:title="@string/qgp_version" android:summary="@string/device_info_default"/> <!-- SELinux status information --> <Preference android:key="selinux_status" android:enabled="false" Loading src/com/android/settings/DeviceInfoSettings.java +6 −0 Original line number Diff line number Diff line Loading @@ -73,6 +73,8 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In private static final String KEY_SAFETY_LEGAL = "safetylegal"; private static final String KEY_MBN_VERSION = "mbn_version"; private static final String PROPERTY_MBN_VERSION = "persist.mbn.version"; private static final String KEY_QGP_VERSION = "qgp_version"; private static final String PROPERTY_QGP_VERSION = "persist.qgp.version"; static final int TAPS_TO_BE_A_DEVELOPER = 7; Loading Loading @@ -120,6 +122,10 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In setStringSummary(KEY_DEVICE_MODEL, Build.MODEL); setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY); findPreference(KEY_BUILD_NUMBER).setEnabled(true); setValueSummary(KEY_QGP_VERSION, PROPERTY_QGP_VERSION); // Remove QGP Version if property is not present removePreferenceIfPropertyMissing(getPreferenceScreen(), KEY_QGP_VERSION, PROPERTY_QGP_VERSION); findPreference(KEY_KERNEL_VERSION).setSummary(DeviceInfoUtils.customizeFormatKernelVersion( getResources().getBoolean(R.bool.def_hide_kernel_version_name))); setValueSummary(KEY_MBN_VERSION, PROPERTY_MBN_VERSION); Loading Loading
res/values/strings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -2286,6 +2286,8 @@ <!-- About phone screen, setting option name [CHAR LIMIT=40] --> <string name="build_number">Build number</string> <!-- About phone screen, setting option name [CHAR LIMIT=40] --> <string name="qgp_version">QGP Version</string> <!-- About phone screen, setting option name [CHAR LIMIT=40] --> <string name="selinux_status">SELinux status</string> <!-- About phone screen, show when a value of some status item is unavailable. --> Loading
res/xml/device_info_settings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -120,6 +120,12 @@ android:title="@string/build_number" android:summary="@string/device_info_default"/> <!-- Device QGP version --> <Preference android:key="qgp_version" style="?android:preferenceInformationStyle" android:title="@string/qgp_version" android:summary="@string/device_info_default"/> <!-- SELinux status information --> <Preference android:key="selinux_status" android:enabled="false" Loading
src/com/android/settings/DeviceInfoSettings.java +6 −0 Original line number Diff line number Diff line Loading @@ -73,6 +73,8 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In private static final String KEY_SAFETY_LEGAL = "safetylegal"; private static final String KEY_MBN_VERSION = "mbn_version"; private static final String PROPERTY_MBN_VERSION = "persist.mbn.version"; private static final String KEY_QGP_VERSION = "qgp_version"; private static final String PROPERTY_QGP_VERSION = "persist.qgp.version"; static final int TAPS_TO_BE_A_DEVELOPER = 7; Loading Loading @@ -120,6 +122,10 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In setStringSummary(KEY_DEVICE_MODEL, Build.MODEL); setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY); findPreference(KEY_BUILD_NUMBER).setEnabled(true); setValueSummary(KEY_QGP_VERSION, PROPERTY_QGP_VERSION); // Remove QGP Version if property is not present removePreferenceIfPropertyMissing(getPreferenceScreen(), KEY_QGP_VERSION, PROPERTY_QGP_VERSION); findPreference(KEY_KERNEL_VERSION).setSummary(DeviceInfoUtils.customizeFormatKernelVersion( getResources().getBoolean(R.bool.def_hide_kernel_version_name))); setValueSummary(KEY_MBN_VERSION, PROPERTY_MBN_VERSION); Loading