commit | 971d9c99378679fbe61bff6b56a3000cbb7be5b7 | [log] [tgz] |
---|---|---|
author | Chalard Jean <jchalard@google.com> | Mon Apr 08 20:28:44 2019 +0900 |
committer | Chalard Jean <jchalard@google.com> | Tue Apr 09 12:16:52 2019 +0000 |
tree | dec7ecdd1d4a1e23771ed7836b867563af849afb | |
parent | b08726bbc11bd6e830ddcb1e224b78989b7e7554 [diff] [blame] |
Address leftover comments on aosp/894233 Cherry-pick from commit 415f523f7ce4c7e33fa70ea003f265e5b53faa20, with small conflict resolution. Bug: 129510344 Test: m, boots, wifi connects, resolves DNS Change-Id: Idf24f42a86bbfcc89e3ea8cf50d1b705d72ac613 Merged-In: Idf24f42a86bbfcc89e3ea8cf50d1b705d72ac613 Merged-In: Ia08104f839ef37139a8761e2e625bb10c94c275f
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 6405254..60b1a2d 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -1767,11 +1767,8 @@ // caller type. Need to re-factor NetdEventListenerService to allow multiple // NetworkMonitor registrants. if (nai != null && nai.satisfies(mDefaultRequest)) { - try { - nai.networkMonitor().notifyDnsResponse(returnCode); - } catch (RemoteException e) { - e.rethrowFromSystemServer(); - } + Binder.withCleanCallingIdentity(() -> + nai.networkMonitor().notifyDnsResponse(returnCode)); } }