Merge "Stop hwbinder threads from app_process." into oc-dev

am: fd25662e03

Change-Id: Ie21d1f60f75a6b3f78ece0596bd3ce7e07472cb7
This commit is contained in:
Martijn Coenen
2017-04-20 16:39:15 +00:00
committed by android-build-merger
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ app_process_common_shared_libs := \
libbinder \
libcutils \
libdl \
libhwbinder \
liblog \
libnativeloader \
libutils \

View File

@@ -14,7 +14,7 @@
#include <unistd.h>
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <hwbinder/IPCThreadState.h>
#include <utils/Log.h>
#include <cutils/memory.h>
#include <cutils/properties.h>
@@ -85,6 +85,7 @@ public:
ar->callMain(mClassName, mClass, mArgs);
IPCThreadState::self()->stopProcess();
hardware::IPCThreadState::self()->stopProcess();
}
virtual void onZygoteInit()
@@ -99,6 +100,7 @@ public:
if (mClassName.isEmpty()) {
// if zygote
IPCThreadState::self()->stopProcess();
hardware::IPCThreadState::self()->stopProcess();
}
AndroidRuntime::onExit(code);