Install the GMS package in Android 4.2

Source: Internet
Author: User

The APK network signal info cannot be installed and the shared library is missing. By searching on the Internet, it is confirmed that the GMS package is missing. That is, you must add the file package of the add on attribute to your project. The procedure is as follows:

(1) download the 4.2 GMS package from the Internet (available web site http://goo.im/gapps/gapps-jb-20130812-signed.zip), you can first use a simple packaging method to verify whether the package content is available. Copy the System \ app \, System \ etc \ permissions \, System \ framework \, System \ Lib \ contents in the package to the corresponding directory of the Image Generation file and perform packaging, then verify. The reason why this APK cannot be installed is that the corresponding directory is missing:

System/framework com. Google. Android. Maps. Jar
System/etc/permissions com. Google. Android. Maps. xml

Index the content of the latter script to the jar package

(2) Add the GMS package to the platform. First, create a folder Google \ apps under vendor \, put the APK under System \ app \, and create an android. mk file. The content is as follows:

Local_path: = $ (call my-DIR) include $ (clear_vars) local_module: = modules: = $(local_module).apk local_module_tags: = optionallocal_module_class: = modules: = $ (modules) local_certificate: = presignedinclude $ (build_prebuilt)

Other APK files can be modeled in this format.
(3) create an android. mk file in the Google directory. The content is as follows:

 
Include $ (call all-subdir-makefiles)

(4) Add the index of this directory to the MK file corresponding to the project, as shown below:

 
Include $ (topdir) Vendor/Google/products/GMS. mk

(5) create a directory named Google \ products \ and a GMS. mk. This completes the merging of product_packages. It is roughly as follows:

 
Product_packages + = \ chromebookmarkssyncadapter \ configupdater \ geniewidget

You can also choose whether to import the new setting wizard process as follows:

 
Product_property_overrides + = \ Ro. setupwizard. mode = Enabled

(6) copy the Lib jar XML and other files in the GMS package to the sub-directories corresponding to the "vendor \ XXXX \ projectname \ artifacts \ out \ target \ product \ projectname \ System \" directory. R compilation project.

Related Article

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.