I/ServiceManager( 128): Waiting for service SurfaceFlinger...

I/ServiceManager(  128): Waiting for service SurfaceFlinger...
http://blog.csdn.net/luoshengyang/article/details/6633311
http://blog.csdn.net/andyhuabing/article/details/7459073
IServiceManager.cpp (frameworks\base\libs\binder)
class BpServiceManager : public BpInterface
{
public:
    // 获取Service服务端
    virtual sp getService(const String16& name) const
    {
        unsigned n;
        for (n = 0; n < 5; n++){
            sp svc = checkService(name);
            if (svc != NULL) return svc;
            LOGI("Waiting for service %s...\n", String8(name).string());
            sleep(1);
        }
        return NULL;
    }       

你可能感兴趣的:(AnGo)