diff --git a/target/product/aosp_arm.mk b/target/product/aosp_arm.mk index 795f8aac60..5a6a092c06 100644 --- a/target/product/aosp_arm.mk +++ b/target/product/aosp_arm.mk @@ -38,6 +38,10 @@ PRODUCT_PACKAGES += \ # Needed by Pi newly launched device to pass VtsTrebleSysProp on GSI PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true +# GSI specific tasks on boot +PRODUCT_COPY_FILES += \ + build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc + # Support addtional P vendor interface PRODUCT_EXTRA_VNDK_VERSIONS := 28 diff --git a/target/product/aosp_arm64.mk b/target/product/aosp_arm64.mk index f3f3c5af44..90c159f2fc 100644 --- a/target/product/aosp_arm64.mk +++ b/target/product/aosp_arm64.mk @@ -54,6 +54,10 @@ PRODUCT_PACKAGES += \ # Needed by Pi newly launched device to pass VtsTrebleSysProp on GSI PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true +# GSI specific tasks on boot +PRODUCT_COPY_FILES += \ + build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc + # Support addtional P vendor interface PRODUCT_EXTRA_VNDK_VERSIONS := 28 diff --git a/target/product/aosp_x86.mk b/target/product/aosp_x86.mk index e3167af450..da31e24172 100644 --- a/target/product/aosp_x86.mk +++ b/target/product/aosp_x86.mk @@ -38,6 +38,10 @@ PRODUCT_PACKAGES += \ # Needed by Pi newly launched device to pass VtsTrebleSysProp on GSI PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true +# GSI specific tasks on boot +PRODUCT_COPY_FILES += \ + build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc + # Support addtional P vendor interface PRODUCT_EXTRA_VNDK_VERSIONS := 28 diff --git a/target/product/aosp_x86_64.mk b/target/product/aosp_x86_64.mk index 222adaab80..4ce40cc719 100644 --- a/target/product/aosp_x86_64.mk +++ b/target/product/aosp_x86_64.mk @@ -54,6 +54,10 @@ PRODUCT_PACKAGES += \ # Needed by Pi newly launched device to pass VtsTrebleSysProp on GSI PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true +# GSI specific tasks on boot +PRODUCT_COPY_FILES += \ + build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc + # Support addtional P vendor interface PRODUCT_EXTRA_VNDK_VERSIONS := 28 diff --git a/target/product/treble_common.mk b/target/product/treble_common.mk index d3cce7665d..bbad484513 100644 --- a/target/product/treble_common.mk +++ b/target/product/treble_common.mk @@ -46,9 +46,13 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ device/generic/common/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf +# GSI specific tasks on boot +PRODUCT_COPY_FILES += \ + build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc + # Support for the O-MR1 devices PRODUCT_COPY_FILES += \ - build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc \ + build/make/target/product/vndk/init.legacy-gsi.rc:system/etc/init/init.legacy-gsi.rc \ build/make/target/product/vndk/init.vndk-27.rc:system/etc/init/gsi/init.vndk-27.rc # Name space configuration file for non-enforcing VNDK diff --git a/target/product/vndk/init.gsi.rc b/target/product/vndk/init.gsi.rc index 0150b1a127..695820e873 100644 --- a/target/product/vndk/init.gsi.rc +++ b/target/product/vndk/init.gsi.rc @@ -1,2 +1,2 @@ -# If ro.vndk.version is not defined, import init.vndk-27.rc. -import /system/etc/init/gsi/init.vndk-${ro.vndk.version:-27}.rc +on early-init + umount /product # TODO(b/119391482): workaround for /system/product diff --git a/target/product/vndk/init.legacy-gsi.rc b/target/product/vndk/init.legacy-gsi.rc new file mode 100644 index 0000000000..00dd576fc1 --- /dev/null +++ b/target/product/vndk/init.legacy-gsi.rc @@ -0,0 +1,3 @@ +# If ro.vndk.version is not defined, import init.vndk-27.rc. +import /system/etc/init/gsi/init.vndk-${ro.vndk.version:-27}.rc +