Merge "hidl getService throw correct exceptions." into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
350328965b
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user