libalsautils: moved to vendor partition
Generic AOSP system image doesn't need libalsautils, so move
it to vendor partition in case vendors use it.
Bug: 37117855
Test: Build it with "vendor: true," and make sure it's actually
moved to vendor and also boot successfully on Sailfish.
Change-Id: Ib8c08276f0435b2b37ac6179100b7287b08f6f03
diff --git a/CleanSpec.mk b/CleanSpec.mk
index 1096f5d..7bc9963 100644
--- a/CleanSpec.mk
+++ b/CleanSpec.mk
@@ -53,6 +53,10 @@
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libaudioutils_intermediates)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/filterfw_intermediates)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/system/framework/filterfw.jar)
+$(call add-clean-step, rm -f $(PRODUCT_OUT)/symbols/system/lib/libalsautils.so)
+$(call add-clean-step, rm -f $(PRODUCT_OUT)/symbols/system/lib64/libalsautils.so)
+$(call add-clean-step, rm -f $(PRODUCT_OUT)/system/lib/libalsautils.so)
+$(call add-clean-step, rm -f $(PRODUCT_OUT)/system/lib64/libalsautils.so)
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
diff --git a/alsa_utils/Android.bp b/alsa_utils/Android.bp
index 4746af6..247419f 100644
--- a/alsa_utils/Android.bp
+++ b/alsa_utils/Android.bp
@@ -14,6 +14,7 @@
cc_library_shared {
name: "libalsautils",
+ vendor: true,
srcs: [
"alsa_device_profile.c",
"alsa_device_proxy.c",