diff options
| author | 2016-12-14 08:07:01 +0000 | |
|---|---|---|
| committer | 2016-12-14 08:07:01 +0000 | |
| commit | da70b6b2870d6992d268805564994ee7c16b595c (patch) | |
| tree | adf10a68527ecfc1f01c5c71a989f1597753b577 | |
| parent | 68700dc75787fc754d05de50101180a9604739f1 (diff) | |
| parent | 35cc49e03f0b82c7a65ba78de64c82c39aed2441 (diff) | |
Merge "Stop setting net.hostname" am: 06178a39f8
am: 35cc49e03f
Change-Id: Id261566422c4af7a3ce65877ba04b0a401685c23
| -rw-r--r-- | services/core/java/com/android/server/ConnectivityService.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 5d9803d32f40..8ad9875bfd42 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); |