Snap for 7149879 from 55a2790e869b1f95500f509783db169f783298aa to sc-release

Change-Id: I2954b3e994173e8097e8923869d7b512cd186a68
diff --git a/Android.bp b/Android.bp
index efa8362..5b98902 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,22 @@
 // This file is generated by cargo2android.py --run --device --tests --dependencies --patch=patches/Android.bp.patch.
 
+package {
+    default_applicable_licenses: ["external_rust_crates_memoffset_license"],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+    name: "external_rust_crates_memoffset_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "LICENSE",
+    ],
+}
+
 rust_library {
     name: "libmemoffset",
     host_supported: true,
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 0bfec90..9649938 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -2,10 +2,6 @@
 {
   "presubmit": [
     {
-      "host": true,
-      "name": "memoffset_host_test_src_lib"
-    },
-    {
       "name": "memoffset_device_test_src_lib"
     }
   ]