有客户需要修改服务器段Miracast的设备名称,这个系统给定的名称不是由配置文件或者xml文件确定的,而是在frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java 定义的:
@@ -2669,7 +2669,7 @@ public final class WifiP2pServiceImpl extends IWifiP2pManager.Stub {
* default that has low likelihood of collision with a peer */
String id = Settings.Secure.getString(mContext.getContentResolver(),
Settings.Secure.ANDROID_ID);
- return "Android_" + id.substring(0,4);
+ return "My_Device_Name_" + id.substring(0,4);
}