summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Erik Kline <ek@google.com> 2016-12-14 08:13:30 +0000
committer android-build-merger <android-build-merger@google.com> 2016-12-14 08:13:30 +0000
commitee39ac1ceb0fcbe3d6dbbe4acbeea03847ad7528 (patch)
treefb5b074360cea82d6a0409e855978dc1751611f5
parentbf21458740cfec1edd1751a1afb7315cea5ba4bf (diff)
parentda70b6b2870d6992d268805564994ee7c16b595c (diff)
Merge "Stop setting net.hostname" am: 06178a39f8 am: 35cc49e03f
am: da70b6b287 Change-Id: I9976537d761a761e9aeca5cb15298f689032664f
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java10
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);