Merge "Don't expose raw IBinder APIs."

This commit is contained in:
Lorenzo Colitti 2021-04-16 07:22:13 +00:00 • committed by Gerrit Code Review
commit fe3676b6f2

View file

@ -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. */