Add an RPC to replace a UID firewall rule.

Also add a binder_test that exercises binder RPCs to the real
netd service running on the device

Bug: 21725996
Bug: 27239233
Change-Id: Ic83d81605021a0578d6cd32f889290be61d76125
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h
index 5e3931f..872e833 100644
--- a/server/NetdNativeService.h
+++ b/server/NetdNativeService.h
@@ -17,6 +17,8 @@
 #ifndef _NETD_NATIVE_SERVICE_H_
 #define _NETD_NATIVE_SERVICE_H_
 
+#include <vector>
+
 #include <binder/BinderService.h>
 
 #include "android/net/BnNetd.h"
@@ -28,6 +30,10 @@
   public:
     static char const* getServiceName() { return "netd"; }
     binder::Status isAlive(bool *alive) override;
+    binder::Status firewallReplaceUidChain(
+        const String16& chainName, bool isWhitelist,
+        const std::vector<int32_t>& uids, bool *ret) override;
+
 };
 
 }  // namespace net