Skip to content

Instantly share code, notes, and snippets.

@z3ntu
Last active March 11, 2016 21:46
Show Gist options
  • Save z3ntu/f35f6119f12d420cff63 to your computer and use it in GitHub Desktop.
Save z3ntu/f35f6119f12d420cff63 to your computer and use it in GitHub Desktop.
Building newer Android versions for the Fairphone 2
FROM ubuntu:15.10
# Prepare the Build Environment
RUN apt-get update \
&& apt-get install -y \
openjdk-8-jdk \
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 \
make \
python-networkx \
ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install repo
RUN mkdir -p /usr/local/repo/bin \
&& curl --tlsv1 https://storage.googleapis.com/git-repo-downloads/repo > \
/usr/local/repo/bin/repo \
&& chmod +x /usr/local/repo/bin/repo
ENV PATH /usr/local/repo/bin:$PATH
# Create working directory
RUN mkdir -p /var/android/
WORKDIR /var/android/
repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r9
# or
repo init -u https://android.googlesource.com/platform/manifest -b android-n-preview-1

# Set git identity
git config --global user.email "nobody"
git config --global user.name "nobody"

# Docker does not set the $USER variable
export USER=$(whoami)

Source: android-rebuilds.beuc.net

@z3ntu
Copy link
Author

z3ntu commented Mar 11, 2016

hardware/qcom/msm8x74/kernel-headers in hardware/qcom/media/libc2dcolorconvert/Android.mk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment