commit | a55308b9f0ce6e17127a3c0b430eb41a53746353 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon Jan 14 20:50:12 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Jan 14 20:50:12 2019 +0000 |
tree | 53600de928bf95112cead1a294e0bad9e2034d98 | |
parent | d533a4da23105563f4db277b2f9df0f00ac9770b [diff] | |
parent | 5f3d75e07299210396d58b3588fcf4bfde339938 [diff] |
Merge "Init: error on oneway calls."
diff --git a/init/init.cpp b/init/init.cpp index dc46a82..d360fdd 100644 --- a/init/init.cpp +++ b/init/init.cpp
@@ -451,6 +451,8 @@ // 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(); }