Loading services/java/com/android/server/ConnectivityService.java +7 −5 Original line number Diff line number Diff line Loading @@ -264,12 +264,14 @@ public class ConnectivityService extends IConnectivityManager.Stub { mHandler = new MyHandler(handlerThread.getLooper()); // setup our unique device name if (TextUtils.isEmpty(SystemProperties.get("net.hostname"))) { String id = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID); if (id != null && id.length() > 0) { String name = new String("android_").concat(id); SystemProperties.set("net.hostname", name); } } // read our default dns server ip String dns = Settings.Secure.getString(context.getContentResolver(), Loading Loading
services/java/com/android/server/ConnectivityService.java +7 −5 Original line number Diff line number Diff line Loading @@ -264,12 +264,14 @@ public class ConnectivityService extends IConnectivityManager.Stub { mHandler = new MyHandler(handlerThread.getLooper()); // setup our unique device name if (TextUtils.isEmpty(SystemProperties.get("net.hostname"))) { String id = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID); if (id != null && id.length() > 0) { String name = new String("android_").concat(id); SystemProperties.set("net.hostname", name); } } // read our default dns server ip String dns = Settings.Secure.getString(context.getContentResolver(), Loading