• Adding a prebuilt APK
  • Adding a Static Java Library
  • Building a APK that should be signed with a specific vendor key




    Download 1.28 Mb.
    bet16/95
    Sana22.12.2019
    Hajmi1.28 Mb.
    #4580
    1   ...   12   13   14   15   16   17   18   19   ...   95

    Building a APK that should be signed with a specific vendor key


    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

     

    # Build all java files in the java subdirectory



    LOCAL_SRC_FILES := $(call all-subdir-java-files)

     

    # Name of the APK to build



    LOCAL_PACKAGE_NAME := LocalPackage

     

    LOCAL_CERTIFICATE := vendor/example/certs/app



     

    # Tell it to build an APK

    include $(BUILD_PACKAGE)

    Adding a prebuilt APK


    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

     

    # Module name should match apk name to be installed.



    LOCAL_MODULE := LocalModuleName

    LOCAL_SRC_FILES := $(LOCAL_MODULE).apk

    LOCAL_MODULE_CLASS := APPS

    LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)

     

    include $(BUILD_PREBUILT)


    Adding a Static Java Library


    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

     

    # Build all java files in the java subdirectory



    LOCAL_SRC_FILES := $(call all-subdir-java-files)

     

    # Any libraries that this library depends on



    LOCAL_JAVA_LIBRARIES := android.test.runner

     

    # The name of the jar file to create



    LOCAL_MODULE := sample

     

    # Build a static jar file.



    include $(BUILD_STATIC_JAVA_LIBRARY)


    Download 1.28 Mb.
    1   ...   12   13   14   15   16   17   18   19   ...   95




    Download 1.28 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Building a APK that should be signed with a specific vendor key

    Download 1.28 Mb.