To download the source code, you first need to install the following tool software:Curland theGit-core. InstallationCurl: Open terminal, you can use pressCtrl+alt +tshortcut to open the terminal and execute the command in the terminal:sudo apt-get Install curl. InstallationGit-core, under User directory, create a newbindirectory, executed in the terminal:mkdir ~/bin. InstallationGit-core, executed in the terminal:Curl Https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo. GiveRepoExecute Permissions:chmod a+x ~/bin/repo. Will be~/binAdd an environment variable that acts as:gitsoftware download installed in this directory, running in another directory may indicate an error: The software could not be found. To execute a command in the terminal:Path=~/bin: $PATH. Download the source code and go to the directory where the source code will be saved and execute it in the terminal:cd/opt/android4.3into theandroid4.3the directory. Download the source code for downloading different versions of theAndroid, specify aManifestBranch (that is, specify onlyAndroidcorresponding version), using the- bParameters(that is, download a version of the source code), after initialization is complete, the/opt/android4.3The catalog generates a. RepoDirectory This directory holds information about the source code that will be downloaded, let's startDownload source code, synchronize access to source code/bin/repo Sync。 Select the compile target: Execute the following command in the terminal: lunch, then select the device you want to compile, and after selection, the related files for the compiled project will be initialized. Execute in Terminal: Make-j4-j4: Indicates the compilation with four threads. Run the emulator in the terminal to execute:Emulator。 After the compilation is successful, it can be installed directly on the Development Board.
Source code Download and compilation