Put the corresponding APK in this directory: device\khadas\kvim3\preinstall
Add corresponding file modification: device\khadas\kvim3\preinstall\Android.mk
include $(CLEAR_VARS)
LOCAL_MODULE := xxx_apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_PATH := $(TARGET_OUT)/preinstall
LOCAL_SRC_FILES := $(LOCAL_MODULE)$(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_DEX_PREOPT := false
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)
device\khadas\kvim3\preinstall\preinstall.mk
PRODUCT_PACKAGES += xxx_apk