blob: 07baf340c279670314908506832e1734650f15ed
1 | #include <sys/types.h> |
2 | #include <unistd.h> |
3 | #include <grp.h> |
4 | #include <binder/IPCThreadState.h> |
5 | #include <binder/ProcessState.h> |
6 | #include <binder/IServiceManager.h> |
7 | #include <utils/Log.h> |
8 | #include "TvService.h" |
9 | |
10 | using namespace android; |
11 | |
12 | int main(int argc, char **argv) |
13 | { |
14 | sp<ProcessState> proc(ProcessState::self()); |
15 | sp<IServiceManager> sm = defaultServiceManager(); |
16 | TvService::instantiate(); |
17 | |
18 | ProcessState::self()->startThreadPool(); |
19 | IPCThreadState::self()->joinThreadPool(); |
20 | |
21 | return 0; |
22 | } |
23 | |
24 |