169 files changed, 64432 insertions, 116 deletions
diff --git a/tvapi/android/tvserver/main.cpp b/tvapi/android/tvserver/main.cpp new file mode 100644 index 0000000..0218dbe --- a/dev/null +++ b/tvapi/android/tvserver/main.cpp @@ -0,0 +1,23 @@ +#include <sys/types.h> +#include <unistd.h> +#include <grp.h> +#include <binder/IPCThreadState.h> +#include <binder/ProcessState.h> +#include <binder/IServiceManager.h> +#include <utils/Log.h> +#include "TvService.h" + +using namespace android; + +int main(int argc, char **argv) +{ + sp<ProcessState> proc(ProcessState::self()); + sp<IServiceManager> sm = defaultServiceManager(); + TvService::instantiate(); + + ProcessState::self()->startThreadPool(); + IPCThreadState::self()->joinThreadPool(); + + return 0; +} + |