Android: Porting A third-party apk into the source environment in the ROM (System Image)

Source: Internet
Author: User

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
    1. #[email protected], built-in  salemanager   based on source code mode  
    2. product_packages += salemanager  
    3.   
    4. #[email protected], directly built-in third-party apk,add for vendor apks  
    5. PRODUCT_ copy_files +=vendor/the3rdapk/feiliao_android_1.6.1.apk:/system/app/feiliao_android_1.6.1.apk\   
    6.     vendor/the3rdapk/mcontact_android_1.1.1.apk:/system/app/mcontact_ android_1.1.1.apk\  
    7.     vendor/the3rdapk/mm_online_ channel.apk:/system/app/mm_online_channel.apk\  
    8.     vendor/the3rdapk/ fetion_android.apk:/system/app/fetion_android.apk  
    9.   
    10. $ (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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.