• Product Definition Files
  • Android Platform Developer's Guide




    Download 1.28 Mb.
    bet13/95
    Sana22.12.2019
    Hajmi1.28 Mb.
    #4580
    1   ...   9   10   11   12   13   14   15   16   ...   95

    New Product File Tree


    The file tree below illustrates what your own system should look like after completing the steps above.





        • Android.mk

        • product_config.mk

        • system.prop

      • products

        • AndroidProducts.mk

        • .mk

        • .mk

    Product Definition Files


    Product-specific variables are defined in product definition files. A product definition file can inherit from other product definition files, thus reducing the need to copy and simplifying maintenance.

    Variables maintained in a product definition files include:



    Parameter

    Description

    Example

    PRODUCT_NAME

    End-user-visible name for the overall product. Appears in the "About the phone" info.




    PRODUCT_MODEL

    End-user-visible name for the end product




    PRODUCT_LOCALES

    A space-separated list of two-letter language code, two-letter country code pairs that describe several settings for the user, such as the UI language and time, date and currency formatting. The first locale listed in PRODUCT_LOCALES is is used if the locale has never been set before.

    en_GB de_DE es_ES fr_CA

    PRODUCT_PACKAGES

    Lists the APKs to install.

    Calendar Contacts

    PRODUCT_DEVICE

    Name of the industrial design

    dream

    PRODUCT_MANUFACTURER

    Name of the manufacturer

    acme

    PRODUCT_BRAND

    The brand (e.g., carrier) the software is customized for, if any




    PRODUCT_PROPERTY_OVERRIDES

    List of property assignments in the format "key=value"




    PRODUCT_COPY_FILES

    List of words like source_path:destination_path. The file at the source path should be copied to the destination path when building this product. The rules for the copy steps are defined in config/Makefile




    PRODUCT_OTA_PUBLIC_KEYS

    List of OTA public keys for the product




    PRODUCT_POLICY

    Indicate which policy this product should use




    PRODUCT_PACKAGE_OVERLAYS

    Indicate whether to use default resources or add any product specific overlays

    vendor/acme/overlay

    PRODUCT_CONTRIBUTORS_FILE

    HTML file containing the contributors to the project.




    PRODUCT_TAGS

    list of space-separated words for a given product




    The snippet below illustrates a typical product definition file.

    $(call inherit-product, build/target/product/generic.mk)


    #Overrides

    PRODUCT_NAME := MyDevice

    PRODUCT_MANUFACTURER := acme

    PRODUCT_BRAND := acme_us

    PRODUCT_LOCALES := en_GB es_ES fr_FR

    PRODUCT_PACKAGE_OVERLAYS := vendor/acme/overlay




    Download 1.28 Mb.
    1   ...   9   10   11   12   13   14   15   16   ...   95




    Download 1.28 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Android Platform Developer's Guide

    Download 1.28 Mb.