• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

修订版278f9d59de6a937e4028cd71bee02c86cf00bd28 (tree)
时间2015-12-18 18:35:54
作者Daniel Leung <daniel.leung@inte...>
CommiterChih-Wei Huang

Log Message

Added Manufacturer to device info

Added an item to display manufacturer in device info page.

For: AIA-438
Change-Id: Iae28759653089cf6fc757c1f76b7ee39638144b0
Signed-off-by: Daniel Leung <daniel.leung@intel.com>

更改概述

差异

--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -2149,6 +2149,8 @@
21492149 <!-- About phone screen, status item label [CHAR LIMIT=60] -->
21502150 <string name="security_patch">Android security patch level</string>
21512151 <!-- About phone screen, status item label [CHAR LIMIT=40] -->
2152+ <string name="device_manufacturer">Manufacturer</string>
2153+ <!-- About phone screen, status item label [CHAR LIMIT=40] -->
21522154 <string name="model_number">Model number</string>
21532155 <!-- About phone screen, fcc equipment id label [CHAR LIMIT=40] -->
21542156 <string name="fcc_equipment_id">Equipment ID</string>
--- a/res/xml/device_info_settings.xml
+++ b/res/xml/device_info_settings.xml
@@ -98,6 +98,12 @@
9898 android:title="@string/device_feedback">
9999 </PreferenceScreen>
100100
101+ <!-- Device manufacturer -->
102+ <Preference android:key="device_manufacturer"
103+ style="?android:preferenceInformationStyle"
104+ android:title="@string/device_manufacturer"
105+ android:summary="@string/device_info_default"/>
106+
101107 <!-- Device hardware model -->
102108 <Preference android:key="device_model"
103109 style="?android:preferenceInformationStyle"
--- a/src/com/android/settings/DeviceInfoSettings.java
+++ b/src/com/android/settings/DeviceInfoSettings.java
@@ -80,6 +80,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
8080 private static final String PROPERTY_EQUIPMENT_ID = "ro.ril.fccid";
8181 private static final String KEY_DEVICE_FEEDBACK = "device_feedback";
8282 private static final String KEY_SAFETY_LEGAL = "safetylegal";
83+ private static final String KEY_DEVICE_MANUFACTURER = "device_manufacturer";
8384
8485 static final int TAPS_TO_BE_A_DEVELOPER = 7;
8586
@@ -109,6 +110,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
109110 setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY);
110111 findPreference(KEY_BUILD_NUMBER).setEnabled(true);
111112 findPreference(KEY_KERNEL_VERSION).setSummary(getFormattedKernelVersion());
113+ setStringSummary(KEY_DEVICE_MANUFACTURER, Build.MANUFACTURER);
112114
113115 if (!SELinux.isSELinuxEnabled()) {
114116 String status = getResources().getString(R.string.selinux_status_disabled);