Merge "Don't expose raw IBinder APIs."
This commit is contained in:
commit
fe3676b6f2
1 changed files with 54 additions and 1 deletions
|
|
@ -616,7 +616,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
}
|
||||
|
||||
private static IDnsResolver getDnsResolver(Context context) {
|
||||
return IDnsResolver.Stub.asInterface(DnsResolverServiceManager.getService(context));
|
||||
final DnsResolverServiceManager dsm = context.getSystemService(
|
||||
DnsResolverServiceManager.class);
|
||||
return IDnsResolver.Stub.asInterface(dsm.getService());
|
||||
}
|
||||
|
||||
/** Handler thread used for all of the handlers below. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue