2009-05-20 02:08:10 +00:00
|
|
|
#include <binder/IPCThreadState.h>
|
|
|
|
#include <binder/ProcessState.h>
|
|
|
|
#include <binder/IServiceManager.h>
|
2009-03-04 03:31:44 +00:00
|
|
|
#include <utils/Log.h>
|
|
|
|
|
|
|
|
#include <SurfaceFlinger.h>
|
|
|
|
|
|
|
|
using namespace android;
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
sp<ProcessState> proc(ProcessState::self());
|
|
|
|
sp<IServiceManager> sm = defaultServiceManager();
|
|
|
|
LOGI("ServiceManager: %p", sm.get());
|
|
|
|
SurfaceFlinger::instantiate();
|
|
|
|
ProcessState::self()->startThreadPool();
|
|
|
|
IPCThreadState::self()->joinThreadPool();
|
|
|
|
}
|