Enable regex on the device. am: 06533c92b9 am: 95c9c39bfc am: c75baf2d8d am: 346de6a1e5

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/regex/+/1635560

Change-Id: I5391c0d82af59bba8cb3fc674a7798df5a1c895a
diff --git a/Android.bp b/Android.bp
index 00b3079..ce8c624 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,45 +1,10 @@
-// This file is generated by cargo2android.py --run --dependencies.
+// This file is generated by cargo2android.py --run --device --dependencies.
+// Do not modify this file as changes will be overridden on upgrade.
 
-package {
-    default_applicable_licenses: ["external_rust_crates_regex_license"],
-}
-
-// Added automatically by a large-scale-change that took the approach of
-// 'apply every license found to every target'. While this makes sure we respect
-// every license restriction, it may not be entirely correct.
-//
-// e.g. GPL in an MIT project might only apply to the contrib/ directory.
-//
-// Please consider splitting the single license below into multiple licenses,
-// taking care not to lose any license_kind information, and overriding the
-// default license using the 'licenses: [...]' property on targets as needed.
-//
-// For unused files, consider creating a 'fileGroup' with "//visibility:private"
-// to attach the license to, and including a comment whether the files may be
-// used in the current project.
-//
-// 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_rust_crates_regex_license",
-    visibility: [":__subpackages__"],
-    license_kinds: [
-        "SPDX-license-identifier-Apache-2.0",
-        "SPDX-license-identifier-MIT",
-        "SPDX-license-identifier-Unicode-DFS",
-    ],
-    license_text: [
-        "LICENSE-APACHE",
-        "LICENSE-MIT",
-    ],
-}
-
-rust_library_host {
+rust_library {
     name: "libregex",
     // has rustc warnings
+    host_supported: true,
     crate_name: "regex",
     srcs: ["src/lib.rs"],
     edition: "2015",
@@ -73,7 +38,7 @@
 
 // dependent_library ["feature_list"]
 //   aho-corasick-0.7.15 "default,std"
-//   lazy_static-1.4.0
 //   memchr-2.3.4 "default,std,use_std"
-//   regex-syntax-0.6.22 "default,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment"
-//   thread_local-1.1.0
+//   once_cell-1.7.2 "alloc,default,race,std"
+//   regex-syntax-0.6.23 "default,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment"
+//   thread_local-1.1.3
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 03d7e78..3ad2d9a 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,7 +1,10 @@
-// Generated by cargo2android.py for tests that depend on this crate.
+// Generated by update_crate_tests.py for tests that depend on this crate.
 {
   "presubmit": [
     {
+      "name": "vpnprofilestore_test"
+    },
+    {
       "name": "libsqlite3-sys_device_test_src_lib"
     },
     {