diff --git a/CleanSpec.mk b/CleanSpec.mk index 7c9c6da6f..386e14c12 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -639,6 +639,10 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/libstagefright_soft*) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/odm/build.prop) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/odm/build.prop) +# Remove libcameraservice and libcamera_client from base_system +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/libcameraservice.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/libcamera_client.so) + # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ diff --git a/target/product/base_system.mk b/target/product/base_system.mk index 822d2ead8..e3e3fbf7e 100644 --- a/target/product/base_system.mk +++ b/target/product/base_system.mk @@ -123,8 +123,6 @@ PRODUCT_PACKAGES += \ libbinder_ndk \ libc.bootstrap \ libcamera2ndk \ - libcamera_client \ - libcameraservice \ libc_malloc_debug \ libc_malloc_hooks \ libcutils \