diff --git a/vendor/init/Android.bp b/vendor/init/Android.bp index 8e72aa43..a946910b 100644 --- a/vendor/init/Android.bp +++ b/vendor/init/Android.bp @@ -93,13 +93,6 @@ sh_binary { vendor: true, } -sh_binary { - name: "init.qcom.early_boot.legacy.sh", - filename: "init.qcom.early_boot.sh", - src: "init.qcom.early_boot.legacy.sh", - vendor: true, -} - sh_binary { name: "init.qcom.efs.sync.sh", src: "init.qcom.efs.sync.sh", @@ -112,13 +105,6 @@ sh_binary { vendor: true, } -sh_binary { - name: "init.qcom.post_boot.legacy.sh", - filename: "init.qcom.post_boot.sh", - src: "init.qcom.post_boot.legacy.sh", - vendor: true, -} - sh_binary { name: "init.qcom.sdio.sh", src: "init.qcom.sdio.sh", diff --git a/vendor/init/qti-init.mk b/vendor/init/qti-init.mk index cf961108..299c36e3 100644 --- a/vendor/init/qti-init.mk +++ b/vendor/init/qti-init.mk @@ -17,10 +17,12 @@ PRODUCT_SOONG_NAMESPACES += \ # Add legacy services and permissions for pre-5.10 targets ifeq (,$(filter 5.10, $(TARGET_KERNEL_VERSION))) +PRODUCT_COPY_FILES += \ + $(QCOM_COMMON_PATH)/vendor/init/init.qcom.early_boot.legacy.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.early_boot.sh \ + $(QCOM_COMMON_PATH)/vendor/init/init.qcom.post_boot.legacy.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.post_boot.sh + PRODUCT_PACKAGES += \ - init.qcom.early_boot.legacy.sh \ - init.qcom.legacy.rc \ - init.qcom.post_boot.legacy.sh + init.qcom.legacy.rc else PRODUCT_PACKAGES += \ init.qcom.early_boot.sh \