diff --git a/tests/Android.bp b/tests/Android.bp
index 2c70f363f7adc9c2fa5b8ccf3f8e91b9a326faf2..de86002007111463afbd63d1df4c9d9d35bc39e9 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -1,9 +1,18 @@
 cc_library_host_shared {
     name: "libsepolwrap",
     srcs: ["sepol_wrap.cpp"],
-    shared_libs: ["libbase", "libsepol"],
+    shared_libs: ["libsepol"],
     cflags: ["-Wall", "-Werror",],
     export_include_dirs: ["include"],
+
+    // libsepolwrap gets loaded from the system python, which does not have the
+    // ASAN runtime. So turn off sanitization for ourself, and  use static
+    // libraries, since the shared libraries will use ASAN.
+    static_libs: ["libbase"],
+    stl: "libc++_static",
+    sanitize: {
+        never: true,
+    },
 }
 
 cc_prebuilt_binary {