At the time of writing this article, I have successfully entered the ranks of Android Developers (framework/av.
I would like to thank you for your encouragement to the author in the forum. Later, I will share my experiences in my work with you and learn and make progress together.
Development Environment: ubuntu 12.04 LTS 64bit
Hardware: the most powerful hardware ever configured
1. Download and build the android-source ubuntu dependency package
Sudo apt-get install git gnupg flex bison gperf build-essential \
Zip curl libc6-dev libncurses5-dev: i386 x11proto-core-dev \
Libx11-dev: i386 libreadline6-dev: i386 libgl1-mesa-glx: i386 \
Libgl1-mesa-dev g ++-multilib mingw32 tofrodos \
Python-markdown libxml2-utils xsltproc zlib1g-dev: i386
Sudo ln-s/usr/lib/i386-linux-gnu/mesa/libGL. so.1/usr/lib/i386-linux-gnu/libGL. so
2. Download the 32-bit compatibility package
Sudo apt-get install libglapi-mesa: i386
Sudo apt-get install ia32-libs
3. Install jdk
Download jdk1.8.0_05.tar.gz and decompress it to generate a directory ~ /Jdk1.8.0 _ 05
Configure the following in/etc/bash. bashrc:
PATH = $ PATH :~ /Jdk1.8.0 _ 05/bin
CLASSPATH = ~ /Jdk1.8.0 _ 05/lib
JAVA_HOME = ~ /Jdk1.8.0 _ 05
PATH = ~ /Jdk1.8.0 _ 05/bin: $ PATH
Export path classpath JAVA_HOME
Restart linux to activate the terminal.
The following result is displayed.
$ Java-version
Java version "1.8.0 _ 05"
Java (TM) SE Runtime Environment (build 1.8.0 _ 05-b13)
Java HotSpot (TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
4. Download repo
Mkdir ~ /Bin
PATH = ~ /Bin: $ PATH
Export PATH
Curl https://storage.googleapis.com/git-repo-downloads/repo> ~ /Bin/repo
Chmod a + x ~ /Bin/repo
Mkdir WORKING_DIRECTORY
Cd WORKING_DIRECTORY
5. Download the source code
Repo init-u https://android.googlesource.com/platform/manifest
Repo sync
Downloading is slow, but the Intranet server is very nice.
That's what we call images. Every company has its own backup storage.
If you download
Try the user authentication method to ensure that the server does not reset the connection, resulting in download failure.
Android download connection
The password generator can be used to generate a dedicated connection for your current google + account in your gmail account to prevent disconnection.
6. Configure the compiling environment
Source build/envsetup. sh
Lunch aosp_arm-eng (optional, depends on which ROM you compile)
7. Compile
Make-j4 or mka bacon generally does not have compilation errors, generate the ROM file we need
The end