Install ASan runtime library on /system partition.

Some devices fail to boot otherwise because of some kind of chicken-and-egg issue
involving vold.

Bug: 21785137
Change-Id: I646d0c2ca08dfe3bd3e1f5acacea10328fdf2cf6
diff --git a/lib/asan/Android.mk b/lib/asan/Android.mk
index 4b05e8c..81fb3ca 100644
--- a/lib/asan/Android.mk
+++ b/lib/asan/Android.mk
@@ -147,6 +147,11 @@
 include $(CLEAR_VARS)
 LOCAL_MODULE := $(1)
 LOCAL_MULTILIB := $(2)
+# This library must go on /system partition, even in SANITIZE_TARGET mode (when all libraries are
+# installed on /data). That's because /data may not be available until vold does some magic and
+# vold itself depends on this library.
+LOCAL_MODULE_PATH_32 := $(TARGET_OUT)/lib
+LOCAL_MODULE_PATH_64 := $(TARGET_OUT)/lib64
 # We need to unwind by frame pointers through a small portion of ASan runtime library code,
 # and that only works with ARM, not with Thumb.
 LOCAL_ARM_MODE := arm