Adding a apk requires adding local_package_name values to the product_packages.
And product_packages are generally defined in the files in the build/target/product/directory.
1. When compiling the simulator, the apk of the product_packages definition in the following file is compiled
Build/target/product/banyan_addon.mk
Build/target/product/sdk.mk
Sdk/build/product_sdk.mk
Development/build/product_sdk.mk
Build/target/product/core.mk
2. Compiling the true machine version will compile the apk of the product_packages definition in the following file
build/target/product/$project. mk
Build/target/product/common.mk
Build/target/product/telephony.mk
Build/target/product/core.mk
So if you want to add a apk so that both the simulator and the real machine are compiled, you must add it to the CORE.MK (both the simulator and the real machine will be included).