Permalink
Browse files

Add processor info in device info screen (2/2)

* Adapted for Nougat: Moved getDeviceProcessorInfo into base

Display the CPU processor info based on the "Hardware" line
of /proc/cpuinfo in the Device Info screen.

Change-Id: I77a8dfc6c35bf6395c0a1ac1426fb24884af554d
  • Loading branch information...
David Ng authored and xlxfoxxlx committed Mar 6, 2014
1 parent b1b7deb commit 6b5bb7e341b97f65d0579f8bddb1d43e0534970e
@@ -59,6 +59,9 @@
<!-- AOSiP Version -->
<string name="aosip_version">AOSiP Build</string>
<!-- About phone screen, processor info label [CHAR LIMIT=40] -->
<string name="processor_info">Processor</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>
@@ -90,6 +90,12 @@
settings:allowDividerAbove="true"
settings:allowDividerBelow="true"/>
<!-- Device hardware processor -->
<Preference android:key="device_processor"
style="?android:preferenceInformationStyle"
android:title="@string/processor_info"
android:summary="@string/device_info_default"/>
<!-- Device firmware version -->
<Preference android:key="firmware_version"
android:enabled="false"
@@ -61,6 +61,7 @@
private static final String KEY_KERNEL_VERSION = "kernel_version";
private static final String KEY_BUILD_NUMBER = "build_number";
private static final String KEY_DEVICE_MODEL = "device_model";
private static final String KEY_DEVICE_PROCESSOR = "device_processor";
private static final String KEY_SELINUX_STATUS = "selinux_status";
private static final String KEY_BASEBAND_VERSION = "baseband_version";
private static final String KEY_FIRMWARE_VERSION = "firmware_version";
@@ -120,6 +121,7 @@ public void onCreate(Bundle icicle) {
setValueSummary(KEY_BASEBAND_VERSION, "gsm.version.baseband");
setStringSummary(KEY_DEVICE_MODEL, Build.MODEL + DeviceInfoUtils.getMsvSuffix());
setStringSummary(KEY_DEVICE_PROCESSOR, DeviceInfoUtils.getDeviceProcessorInfo(getActivity()));
setValueSummary(KEY_EQUIPMENT_ID, PROPERTY_EQUIPMENT_ID);
setStringSummary(KEY_DEVICE_MODEL, Build.MODEL);
setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY);

0 comments on commit 6b5bb7e

Please sign in to comment.