Merge "Init: error on oneway calls."

am: ebae0d3ad9

Change-Id: I119401688a2fe3fc8f4d5b45678363064159e286
This commit is contained in:
Steven Moreland 2019-01-14 13:47:00 -08:00 committed by android-build-merger
commit 2a99b2011f

View file

@ -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();
}