diff --git a/CleanSpec.mk b/CleanSpec.mk index 5658a407..a67955b0 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -3,3 +3,4 @@ # $(call add-clean-step, rm -rf $(OUT_DIR)/host/linux-x86/bin/audit2allow) $(call add-clean-step, rm -rf $(OUT_DIR)/host/linux-x86/bin/audit2why) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/lib/libselinux.so) diff --git a/libselinux/Android.bp b/libselinux/Android.bp index 649e6528..cd92e056 100644 --- a/libselinux/Android.bp +++ b/libselinux/Android.bp @@ -105,7 +105,12 @@ cc_defaults { cc_library { name: "libselinux", defaults: ["libselinux_defaults"], + vendor_available: true, + vndk: { + enabled: true, + }, + host_supported: true, cflags: ["-DUSE_PCRE2"],