Merge "Stop setting net.hostname" am: 5603f5aabc
am: af3207bddd
Change-Id: Id261566422c4af7a3ce65877ba04b0a401685c23
This commit is contained in:
@@ -720,16 +720,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
mHandler = new InternalHandler(mHandlerThread.getLooper());
|
mHandler = new InternalHandler(mHandlerThread.getLooper());
|
||||||
mTrackerHandler = new NetworkStateTrackerHandler(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(),
|
mReleasePendingIntentDelayMs = Settings.Secure.getInt(context.getContentResolver(),
|
||||||
Settings.Secure.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS, 5_000);
|
Settings.Secure.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS, 5_000);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user