• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

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

packages/apps/Settings


Commit MetaInfo

Revisão48f670ce512821a87fbf2df81710cf609012e834 (tree)
Hora2013-09-25 12:05:57
AutorDaniel Leung <daniel.leung@inte...>
CommiterChih-Wei Huang

Mensagem de Log

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>

Mudança Sumário

Diff

--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1916,6 +1916,8 @@
19161916 <!-- About phone screen, status item label -->
19171917 <string name="firmware_version">Android version</string>
19181918 <!-- About phone screen, status item label-->
1919+ <string name="device_manufacturer">Manufacturer</string>
1920+ <!-- About phone screen, status item label-->
19191921 <string name="model_number">Model number</string>
19201922 <!-- About phone screen, fcc equipment id label-->
19211923 <string name="fcc_equipment_id">Equipment ID</string>
--- a/res/xml/device_info_settings.xml
+++ b/res/xml/device_info_settings.xml
@@ -95,6 +95,12 @@
9595 <intent android:action="android.settings.SHOW_REGULATORY_INFO" />
9696 </PreferenceScreen>
9797
98+ <!-- Device manufacturer -->
99+ <Preference android:key="device_manufacturer"
100+ style="?android:preferenceInformationStyle"
101+ android:title="@string/device_manufacturer"
102+ android:summary="@string/device_info_default"/>
103+
98104 <!-- Device hardware model -->
99105 <Preference android:key="device_model"
100106 style="?android:preferenceInformationStyle"
--- a/src/com/android/settings/DeviceInfoSettings.java
+++ b/src/com/android/settings/DeviceInfoSettings.java
@@ -63,6 +63,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment {
6363 private static final String KEY_UPDATE_SETTING = "additional_system_update_settings";
6464 private static final String KEY_EQUIPMENT_ID = "fcc_equipment_id";
6565 private static final String PROPERTY_EQUIPMENT_ID = "ro.ril.fccid";
66+ private static final String KEY_DEVICE_MANUFACTURER = "device_manufacturer";
6667
6768 static final int TAPS_TO_BE_A_DEVELOPER = 7;
6869
@@ -85,6 +86,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment {
8586 setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY);
8687 findPreference(KEY_BUILD_NUMBER).setEnabled(true);
8788 findPreference(KEY_KERNEL_VERSION).setSummary(getFormattedKernelVersion());
89+ setStringSummary(KEY_DEVICE_MANUFACTURER, Build.MANUFACTURER);
8890
8991 if (!SELinux.isSELinuxEnabled()) {
9092 String status = getResources().getString(R.string.selinux_status_disabled);