Created
September 19, 2018 05:03
-
-
Save thinkycx/f6a154792f2d980c705932f330492d51 to your computer and use it in GitHub Desktop.
download dependency for building AOSP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: [email protected] | |
# ref: https://source.android.com/setup/build/initializing | |
# License: Gnu GPL v. 2 | |
# License is same as Linux kernel license, since the code helps compile the AOSP | |
sudo apt-get install apt-transport-https | |
# test date 201711: use for install openjdk on ubuntu14.04 | |
download_old_jdk(){ | |
cd ~ && mkdir java && cd java | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u45-b14-1_amd64.deb | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u45-b14-1_amd64.deb | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u45-b14-1_amd64.deb | |
sudo dpkg -i openjdk-8-jre-headless_8u45-b14-1_amd64.deb | |
sudo dpkg -i openjdk-8-jre_8u45-b14-1_amd64.deb | |
sudo dpkg -i openjdk-8-jdk_8u45-b14-1_amd64.deb | |
} | |
sudo apt-get install openjdk-8-jdk -y | |
sudo apt-get update | |
sudo apt-get -f install | |
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment