A10和A12的设备名称修改是不同的,A10设备名称修改分好几个位置
修改wifi默认名称
在framework/base模块下
XML
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index 9041a7c3a14..7a1e63688c4 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -3493,7 +3493,7 @@
<string name="wifi_watchdog_network_disabled_detailed">\u0020has a poor internet connection.</string>
<!-- Do not translate. Default access point SSID used for tethering -->
- <string name="wifi_tether_configure_ssid_default" translatable="false">NT-F3</string>
+ <string name="wifi_tether_configure_ssid_default" translatable="false">B8000</string>
修改Mtp名称
该名称是设备插入电脑弹窗提示的设备名称
在framework/base模块下
java
diff --git a/media/java/android/mtp/MtpDatabase.java b/media/java/android/mtp/MtpDatabase.java
index 25a90091406..a310c9d5d26 100755
--- a/media/java/android/mtp/MtpDatabase.java
+++ b/media/java/android/mtp/MtpDatabase.java
@@ -709,7 +709,7 @@ public class MtpDatabase implements AutoCloseable {
case MtpConstants.DEVICE_PROPERTY_DEVICE_FRIENDLY_NAME:
// writable string properties kept in shared preferences
//String value = mDeviceProperties.getString(Integer.toString(property), "");
- String value = "NT-F3";
+ String value = "B8000";
int length = value.length();
if (length > 255) {
length = 255;
修改DHCP主机名称
该名称是联网后显示的主机名称
java
修改Dhcp主机名称
Change-Id: Id1fdda01aa1c50e85d027b4700700e74ffb6f2ad
diff --git a/src/android/net/dhcp/DhcpClient.java b/src/android/net/dhcp/DhcpClient.java
index e1861fa..3fcdcfd 100644
--- a/src/android/net/dhcp/DhcpClient.java
+++ b/src/android/net/dhcp/DhcpClient.java
@@ -268,7 +268,7 @@ public class DhcpClient extends StateMachine {
if (id != null && id.length() > 0) {
if (DBG) Log.d(TAG, "get ANDROID_ID " + id);
// HOSTNAME = new String("android-").concat(id);
- HOSTNAME = "NT-F3" ;
+ HOSTNAME = "B8000" ;
}
}