diff --git a/init/init.cpp b/init/init.cpp index dc46a82c5..d360fdd6b 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -451,6 +451,8 @@ static Result 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(); }