1. First create a new the3rdapk directory under the vendor directory, you will need to put the built-in apk, the directory name is arbitrary.
2. On the last side of Build/target/product/common.mk, join your APK before $ (call Inherit-product, $ (src_target_dir)/product/core.mk)
The first part is the path to the local apk, and/system/app/represents the directory that is copied to the system image.
If there is no second part, the following compilation error occurs:
build/core/product_config.mk:227: * * * build/target/product/full.mk:malformed copy_file "Vendor/the3rdapk/FeiLiao_ android_1.6.1.apk ". Stop.
[HTML]View Plaincopy
- #[email protected], built-in salemanager based on source code mode
- product_packages += salemanager
-   
- #[email protected], directly built-in third-party apk,add for vendor apks
- PRODUCT_ copy_files +=vendor/the3rdapk/feiliao_android_1.6.1.apk:/system/app/feiliao_android_1.6.1.apk\
- vendor/the3rdapk/mcontact_android_1.1.1.apk:/system/app/mcontact_ android_1.1.1.apk\
- vendor/the3rdapk/mm_online_ channel.apk:/system/app/mm_online_channel.apk\
- vendor/the3rdapk/ fetion_android.apk:/system/app/fetion_android.apk
-   
- $ (call inherit-product, $ (Src_target_dir)/product/core.mk)
3. If there is a. so file, copy it to the/system/lib/directory as described above.
Based on the source code compilation method built-in see another article:
Android: Source Environment compiles custom app-to-ROM (System Image)
Android: Porting A third-party apk into the source environment in the ROM (System Image)