Skip to content

Instantly share code, notes, and snippets.

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 xenial main restricted universe multiverse
deb xenial-security main restricted universe multiverse
deb xenial-updates main restricted universe multiverse
deb xenial partner
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
## Install repo
mkdir -p ~/bin
curl > ~/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
## Initialize CyanogenMod repositories
mkdir -p ~/android/system
cd ~/android/system
repo init -u -b cm-13.0
## Retrieve CyanogenMod repositories
repo sync
source build/
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.