Loading cmds/servicemanager/ServiceManager.cpp +6 −5 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ sp<IBinder> ServiceManager::tryGetService(const std::string& name, bool startIfN } if (!out && startIfNotFound) { tryStartService(name); tryStartService(ctx, name); } if (out) { Loading Loading @@ -651,10 +651,11 @@ void ServiceManager::binderDied(const wp<IBinder>& who) { } } void ServiceManager::tryStartService(const std::string& name) { ALOGI("Since '%s' could not be found, trying to start it as a lazy AIDL service. (if it's not " "configured to be a lazy service, it may be stuck starting or still starting).", name.c_str()); void ServiceManager::tryStartService(const Access::CallingContext& ctx, const std::string& name) { ALOGI("Since '%s' could not be found (requested by debug pid %d), trying to start it as a lazy " "AIDL service. (if it's not configured to be a lazy service, it may be stuck starting or " "still starting).", name.c_str(), ctx.debugPid); std::thread([=] { if (!base::SetProperty("ctl.interface_start", "aidl/" + name)) { Loading cmds/servicemanager/ServiceManager.h +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ public: void clear(); protected: virtual void tryStartService(const std::string& name); virtual void tryStartService(const Access::CallingContext& ctx, const std::string& name); private: struct Service { Loading cmds/servicemanager/test_sm.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ public: class MockServiceManager : public ServiceManager { public: MockServiceManager(std::unique_ptr<Access>&& access) : ServiceManager(std::move(access)) {} MOCK_METHOD1(tryStartService, void(const std::string& name)); MOCK_METHOD2(tryStartService, void(const Access::CallingContext&, const std::string& name)); }; static sp<ServiceManager> getPermissiveServiceManager() { Loading Loading
cmds/servicemanager/ServiceManager.cpp +6 −5 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ sp<IBinder> ServiceManager::tryGetService(const std::string& name, bool startIfN } if (!out && startIfNotFound) { tryStartService(name); tryStartService(ctx, name); } if (out) { Loading Loading @@ -651,10 +651,11 @@ void ServiceManager::binderDied(const wp<IBinder>& who) { } } void ServiceManager::tryStartService(const std::string& name) { ALOGI("Since '%s' could not be found, trying to start it as a lazy AIDL service. (if it's not " "configured to be a lazy service, it may be stuck starting or still starting).", name.c_str()); void ServiceManager::tryStartService(const Access::CallingContext& ctx, const std::string& name) { ALOGI("Since '%s' could not be found (requested by debug pid %d), trying to start it as a lazy " "AIDL service. (if it's not configured to be a lazy service, it may be stuck starting or " "still starting).", name.c_str(), ctx.debugPid); std::thread([=] { if (!base::SetProperty("ctl.interface_start", "aidl/" + name)) { Loading
cmds/servicemanager/ServiceManager.h +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ public: void clear(); protected: virtual void tryStartService(const std::string& name); virtual void tryStartService(const Access::CallingContext& ctx, const std::string& name); private: struct Service { Loading
cmds/servicemanager/test_sm.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ public: class MockServiceManager : public ServiceManager { public: MockServiceManager(std::unique_ptr<Access>&& access) : ServiceManager(std::move(access)) {} MOCK_METHOD1(tryStartService, void(const std::string& name)); MOCK_METHOD2(tryStartService, void(const Access::CallingContext&, const std::string& name)); }; static sp<ServiceManager> getPermissiveServiceManager() { Loading