Merge "getTransport checks interface and instance names."

This commit is contained in:
Treehugger Robot
2017-03-01 21:24:24 +00:00
committed by Gerrit Code Review

View File

@@ -344,7 +344,7 @@ static jobject JHwBinder_native_getService(
<< serviceName; << serviceName;
::android::vintf::Transport transport = ::android::vintf::Transport transport =
::android::hardware::getTransport(ifaceName); ::android::hardware::getTransport(ifaceName, serviceName);
if ( transport != ::android::vintf::Transport::EMPTY if ( transport != ::android::vintf::Transport::EMPTY
&& transport != ::android::vintf::Transport::HWBINDER) { && transport != ::android::vintf::Transport::HWBINDER) {
LOG(ERROR) << "service " << ifaceName << " declares transport method " LOG(ERROR) << "service " << ifaceName << " declares transport method "