Snap for 7550844 from 81b4443c6d7b888458ceaa306bdb68e807d71c81 to mainline-tethering-release

Change-Id: I61c28f3cb1c5da917ec183a0697b617918fa5522
diff --git a/Android.bp b/Android.bp
index b8e0c7f..d612612 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,6 +1,29 @@
 // This module target includes just the single core file: NanoHTTPD.java, which
 // is enough for HTTP 1.1 support and nothing else.
 // ============================================================================
+package {
+    default_applicable_licenses: ["external_nanohttpd_license"],
+}
+
+// Added automatically by a large-scale-change
+//
+// large-scale-change included anything that looked like it might be a license
+// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
+//
+// Please consider removing redundant or irrelevant files from 'license_text:'.
+// See: http://go/android-license-faq
+license {
+    name: "external_nanohttpd_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-BSD",
+    ],
+    license_text: [
+        "LICENSE.md",
+        "NOTICE",
+    ],
+}
+
 java_library {
     name: "libnanohttpd",
     srcs: ["core/src/main/**/*.java"],
@@ -19,3 +42,12 @@
     ],
     sdk_version: "current",
 }
+
+java_library {
+    name: "nanohttpd-websocket",
+    srcs: [
+        "core/src/main/**/*.java",
+        "websocket/src/main/**/*.java",
+    ],
+    sdk_version: "current",
+}
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..d97975c
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,3 @@
+third_party {
+  license_type: NOTICE
+}