Change hostname format to conform to specification am: 4aa0b2ece5
Original change: undetermined Change-Id: I0913dac2580abc094d88d282bb120ba22d127400
This commit is contained in:
@@ -319,7 +319,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
String id = Settings.Secure.getString(context.getContentResolver(),
|
||||
Settings.Secure.ANDROID_ID);
|
||||
if (id != null && id.length() > 0) {
|
||||
String name = new String("android_").concat(id);
|
||||
String name = new String("android-").concat(id);
|
||||
SystemProperties.set("net.hostname", name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user