#include #include #include #include #include #include "LedService.h" using namespace android; int main() { sp proc(ProcessState::self()); sp sm(defaultServiceManager()); sm->addService( String16("led.service"), new LedService ); IPCThreadState::self()->joinThreadPool(); return 0; }