Total Pageviews

Tuesday 5 July 2016

编译你自己的Open GApps


Getting the latest pre-built Open GApps

The latest version of pre-built Open GApps can be found at http://opengapps.org
Q&A ForumXDA Q&A
Development ForumXDA Development
Support ChatGitter
Latest ARMLatest ARM
Latest ARM64Latest ARM64
Latest x86Latest ARM
Latest x86_64Latest ARM

Support for the pre-built packages from OpenGApps.org

If you have any questions check out the Open GApps Wiki especially the FAQ answers most questions. If you can't find the answer to your question use the XDA Q&A Thread or join us on Gitter to receive support. Don't forget to add at least the Open GApps installer debug log and if experiencing Force Closures also include a logcat.
If you did find a bug in the Pre-built OpenGApps.org packages you can report it at the XDA Open GApps Development ThreadRemember to include at minimum the Open GApps installer debug log and if applicable a logcat.
Please don't file directly any GitHub issues to file problems with the Pre-built packages. The GitHub issues tracker is only used for issues concerning the Open GApps Project scripts themselves.

Build your own Open GApps

The example git commands assume you have a GitHub account and have set-up SSH authentication.
If you want to build your own version of Open GApps, you'll need to fetch the git sources:
To initialize your local repository using the Open GApps source tree, clone the main repository with the command:
git clone git@github.com:opengapps/opengapps.git
Then sync the submodules to get the original APK sources as provided by Google. Take note that these repositories are very large (in the order of GiBs). You can also use this command to update the sources at a later moment to their most recent version:
./download_sources.sh [--shallow] [arch]
  • --shallow will order to fetch only the latest snapshot of the APKs (reduces space used and amount of data to be retrieved by git, by not fetching the APKs' history)
  • arch can be one of the following "arm, arm64, x86, x86_64" to fetch only data required for specified architecture (note that fallback architectures will be fetched too)
To build Open GApps you'll need the Android build tools installed and set-up in your $PATH. If you use Ubuntu you can check out @mfonville's Android build tools for Ubuntu.
To build Open GApps for all platforms and all Android releases:
make
To build Open GApps for a specific Android release on a specific platform, define both the platform and the API level of that release, seperated by a dash and optionally add the variant with another dash. Two examples (for building for Android 6.0 on ARM):
make arm-23
or
make arm-23-stock
To add updated source APKs to the sources archive (you can add more than one at once):
./add_sourceapp.sh [/path/to/the/files/you/want/to/add.apk]* [beta] [/apps/that/should/be/marked/as/beta.apk...]*
For contributors, updated sources can be uploaded. Either without an argument for every architecture, or with one or more arguments for a subset of architectures:
./upload_sources.sh [archs]*
If you want an overview of the locally available sources:
./report_sources.sh
You can add extra arguments to report_sources to do your more advanced bidding too:
./report_sources.sh ( ([sdk] [archs]*) || [arch-sdk] ) && [hash] || [max*mb] || [min*mb] || [nobeta] || [nohelp] || [noleanback] || [nosig]
from https://github.com/opengapps/opengapps