Skip to content

Instantly share code, notes, and snippets.

@thinkycx
Created September 19, 2018 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinkycx/f6a154792f2d980c705932f330492d51 to your computer and use it in GitHub Desktop.
Save thinkycx/f6a154792f2d980c705932f330492d51 to your computer and use it in GitHub Desktop.
download dependency for building AOSP
#!/bin/bash
# author: thinkycx@gmail.com
# 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