android-5.1 compilation configuration (van)

Source: Internet
Author: User

Required files: Archives1211.tgzubuntu_install_1204.tgz Installation Guide: Ubuntu_install_1204/readme.txt working directory structure: Git├──vanzo_team    Vanzo:tools/vanzo_team.git└──vanzo_team2    Vanzo:tools/vanzo_team2.gitgit2├──vanzo_team    vanzo2:tools/ Vanzo_team.git└──vanzo_team2    vanzo2:tools/vanzo_team2.gitbuild_projects        vanzo:tools/build_ Projects.gitbuild_projects2        Vanzo2:tools/build_projects2.git Other considerations: Because the new compilation script frequently calls the vanzo_team* Common library file, The code uses a direct reference, so the  local environment is required to customize Python's library path:  ~/git2/vanzo_team/songlixin/config/ln.sh

Script
Am compile script core content:  zprojects/scripts/mk.sh one    source zprojects/$project _name/$project _name.env    Source build/envsetup.sh    lunch Full_$vanzo_inner_board_project_by_name_value-user    make-j32 so want to achieve the compilation of fast iterations, You can manually source env files and envsetup.sh files, and then compile according to standard Android.

Compiling CCache
CCache test for compilation speed (based on 6735 N325b-ubtel): Full compilation when CCache does not open: # # # Make completed successfully (01:57:30 (HH:MM:SS)) # # # # # # # # # # # CCache second compilation After Open: # # # Make completed successfully (01:23:19 (HH:MM:SS)) # # # # # # # # # # # # # # # # # # # # # # CCache  directory 870MB) CCache increase capacity second compilation: # # # Make completed successfully (37:05) # # # # # # # # # # # # # # # # (CCache directory 17GB) ccache install and add capacity command: sudo apt-get install ccache; Ccache-m 50G; (ccache default maximum cache is 1GB, far enough)

Compile command
Repo init-u vanzo2:platform_lp1_6735m/manifest.git-m Vtrunk.xmlrepo sync-j32repo start work--allln-s ~/build_projects 2/prebuilts-51-64bit prebuiltsnohup./am n320a-kewei-35m-d//ENG version. If you want the user version, remove the '-d ' parameter, and nohup do not output log, Save directly in the Nohup.out file

JDK Version requirements
4.4:ORACLEJDK65.0:OPENJDK7 can be installed at the same time, so a machine can either compile 4.4 or compile 5.0, can be switched by update-alternatives. (see the old Song script git/vanzo_team/songlixin/ubuntu_install_1204/local_install_jre64.sh) (You can also use "Refactor 155 0" and "Refactor 155 1" for Java version switching)

Debugging

SELinux
Android 5.0 By default, SELinux is enabled, and permissions control is much stricter. If you encounter such as:    e/selinux (127): avc:denied {add} for Service=themes.add Scontext=u:r:she Ll:s0 tcontext=u:object_r:default_android_service:s0 Tclass=service_manager    e/servicemanager (127): add_ Service (' Themes.add ', $) uid=1000-permission denied or:    w/fileutils (  681): Failed to Chmod (/data/ Resource-cache): Android.system.ErrnoException:chmod failed:eacces (Permission denied) error, You can start with SELinux to investigate. Specific SELinux configuration in the source ' external/sepolicy ' directory, but our modifications will generally overlay, placed in the ' Device/mediatek/common/sepolicy ' directory.

android-5.1 compilation configuration (van)

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.