Merge "hidl getService throw correct exceptions." into oc-dr1-dev am: 350328965b

am: f66cea25ca

Change-Id: I9fb0159e56b07e413bd6eb60d6ee27dada79f3ac
This commit is contained in:
Steven Moreland
2017-06-29 02:54:53 +00:00
committed by android-build-merger

View File

@@ -370,7 +370,7 @@ static jobject JHwBinder_native_getService(
if (transport != IServiceManager::Transport::HWBINDER && !vintfLegacy) {
LOG(ERROR) << "service " << ifaceName << " declares transport method "
<< toString(transport) << " but framework expects hwbinder.";
signalExceptionForError(env, UNKNOWN_ERROR, true /* canThrowRemoteException */);
signalExceptionForError(env, NAME_NOT_FOUND, true /* canThrowRemoteException */);
return NULL;
}