Add a new static library for mainline modules

Add a network static library for common utilities. This
library could be used by all mainline modules. Initially
create LinkPropertiesUtils and MacAddressUtils.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: build lib pass
      atest NetworkStaticLibTests
Change-Id: I8f79e4f836819ac83007acffb55103e5d69873e0
diff --git a/staticlibs/Android.bp b/staticlibs/Android.bp
new file mode 100644
index 0000000..ffc02c3
--- /dev/null
+++ b/staticlibs/Android.bp
@@ -0,0 +1,37 @@
+// Copyright (C) 2019 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// File group "net-utils-framework-common-srcs" is also compiled into android framework.
+// Add jarjar rules here so that anything outside of framework could use this library
+// directly.
+
+filegroup {
+    name: "net-utils-framework-common-srcs",
+    srcs: ["src_frameworkcommon/**/*.java"],
+    visibility: ["//frameworks/base"],
+}
+
+java_library {
+    name: "net-utils-framework-common",
+    srcs: [":net-utils-framework-common-srcs" ],
+    jarjar_rules: "jarjar-rules-shared.txt",
+    visibility: [
+        "//frameworks/base/packages/Tethering",
+        "//frameworks/opt/net/wifi",
+        "//frameworks/opt/net/ike",
+        "//frameworks/opt/telephony",
+        "//packages/modules/NetworkStack",
+        "//packages/modules/CaptivePortalLogin",
+    ]
+}