Merge "Init: error on oneway calls."
This commit is contained in:
commit
ebae0d3ad9
1 changed files with 2 additions and 0 deletions
|
|
@ -451,6 +451,8 @@ static Result<Success> InitBinder(const BuiltinArguments& args) {
|
|||
// Also, binder can't be used by recovery.
|
||||
#ifndef RECOVERY
|
||||
android::ProcessState::self()->setThreadPoolMaxThreadCount(0);
|
||||
android::ProcessState::self()->setCallRestriction(
|
||||
ProcessState::CallRestriction::ERROR_IF_NOT_ONEWAY);
|
||||
#endif
|
||||
return Success();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue