Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CyanogenMod 13 on Ubuntu 16.08
# Building CyanogenMod 13 on Ubuntu 16.08 (xenial)
## Install required packages
cat > /etc/apt/sources.list << EOF
deb http://nl.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
EOF
apt-get update
apt-get upgrade
apt-get install software-properties-common
add-apt-repository ppa:openjdk-r/ppa
apt-get update
apt-get install bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libxml2 libxml2-utils lzop maven pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev
apt-get install g++-multilib gcc-multilib lib32ncurses5-dev lib32z1-dev
apt-get install lib32readline6-dev
apt-get install libwxgtk3.0-dev openjdk-8-jdk
apt-get install openjdk-7-jdk
## Install Android SDK
# See https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
## Install repo
mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
cat >> ~/.profile << EOF
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
EOF
## Initialize CyanogenMod repositories
mkdir -p ~/android/system
cd ~/android/system
repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
## Retrieve CyanogenMod repositories
repo sync
##
source build/envsetup.sh
breakfast bacon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.