From 1b81ea3e69bbe4ad45b186f063dfbe9738a5adfb Mon Sep 17 00:00:00 2001 From: Erik Kline Date: Wed, 14 Dec 2016 12:06:53 +0900 Subject: [PATCH] Stop setting net.hostname Test: as follows - basics: - built - flashed - booted - connect to {v4-only, dualstack, v6-only} networks - verified expected connectivity on each - runtest frameworks-net Bug: 30979015 Change-Id: I65e9878c7b8eaddaba1c0e1b8566ddfa0760047f --- .../java/com/android/server/ConnectivityService.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 8108c4c00e..41eaa6ad20 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -720,16 +720,6 @@ public class ConnectivityService extends IConnectivityManager.Stub mHandler = new InternalHandler(mHandlerThread.getLooper()); mTrackerHandler = new NetworkStateTrackerHandler(mHandlerThread.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); - } - } - mReleasePendingIntentDelayMs = Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS, 5_000);