Snap for 12199973 from 864b0844043271b026116a6e641a44215e0a14a4 to 24Q4-release
Change-Id: I9481455e6679ef1235cf40888af26b8b933f6393
diff --git a/Android.bp b/Android.bp
index 7621126..261678f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,9 +1,17 @@
// This file is generated by cargo_embargo.
-// Do not modify this file after the first "rust_*" or "genrule" module
-// because the changes will be overridden on upgrade.
-// Content before the first "rust_*" or "genrule" module is preserved.
+// Do not modify this file because the changes will be overridden on upgrade.
-// TODO: Add license.
+package {
+ default_applicable_licenses: ["external_rust_crates_debug_tree_license"],
+}
+
+license {
+ name: "external_rust_crates_debug_tree_license",
+ visibility: [":__subpackages__"],
+ license_kinds: ["SPDX-license-identifier-MIT"],
+ license_text: ["LICENSE"],
+}
+
rust_test {
name: "debug_tree_test_src_lib",
host_supported: true,
diff --git a/patches/LICENSE.patch b/patches/LICENSE.patch
new file mode 100644
index 0000000..92ed38e
--- /dev/null
+++ b/patches/LICENSE.patch
@@ -0,0 +1,25 @@
+diff --git b/LICENSE a/LICENSE
+new file mode 100644
+index 0000000..9cf1062
+--- /dev/null
++++ a/LICENSE
+@@ -0,0 +1,19 @@
++MIT License
++
++Permission is hereby granted, free of charge, to any person obtaining a copy
++of this software and associated documentation files (the "Software"), to deal
++in the Software without restriction, including without limitation the rights
++to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++copies of the Software, and to permit persons to whom the Software is
++furnished to do so, subject to the following conditions:
++
++The above copyright notice and this permission notice shall be included in all
++copies or substantial portions of the Software.
++
++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
++SOFTWARE.