Android integrates third-party applications and packages.

Source: Internet
Author: User

Create a directory under device,vendor,packageand put the. APK and. So files in this directory. Then write the Android. mk File

Local_path: = $ (call my-DIR)

Apk_local_path: = $ (local_path)

Apk_install_path: = system/APP

Lib_local_path: = $ (local_path)/libs

Lib_install_path: = system/lib

# Copy APK

Include $ (clear_vars)

Local_module: = facelock

Local_module_path: = $ (target_out)/APP/

Local_src_files: = facelock.apk

Local_module_tags: = optional

Local_module_class: = apps

Local_module_suffix: = $ (common_android_package_suffix)

Local_certificate: = presigned

Include $ (build_prebuilt)

 

Include $ (clear_vars)

Local_module: = libfacelock_jni.so

Local_src_files: = libfacelock_jni.so

Local_module_tags: = optional

Local_module_class: = shared_libraries

Include $ (build_prebuilt)

 

Then add it to the. mk file of your project.

Product_packages: = \
Facelock \

Libfacelock_jni.so

Product_copy_files + = vendor/XX/facelock // addon. d/71-g316-faceunlock.sh:

System/addon. d/71-g316-faceunlock.sh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.