Start NetdNativeService before CommandListener.
Starting CommandListener tells NetworkManagementService that netd
is ready to accept commands. Ensure that the binder service is
started (i.e., we have called startThreadPool) before we do this.
Bug: 27239233
Change-Id: Ica89e72f51eb4752cb5cea2e4096c6a9dc5776d7
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h
index 872e833..f7c6013 100644
--- a/server/NetdNativeService.h
+++ b/server/NetdNativeService.h
@@ -28,6 +28,7 @@
class NetdNativeService : public BinderService<NetdNativeService>, public BnNetd {
public:
+ static status_t start();
static char const* getServiceName() { return "netd"; }
binder::Status isAlive(bool *alive) override;
binder::Status firewallReplaceUidChain(