Skip to content

Instantly share code, notes, and snippets.

@allanjos
Last active February 21, 2023 18:21
Show Gist options
  • Save allanjos/451795cdbfba16ffa70656e3f3e9a69d to your computer and use it in GitHub Desktop.
Save allanjos/451795cdbfba16ffa70656e3f3e9a69d to your computer and use it in GitHub Desktop.
AOSP

AOSP

Fedora

Install dependencies:

dnf install \
  @development-tools \
  android-tools \
  automake \
  bison \
  bzip2 \
  bzip2-libs \
  ccache \
  curl \
  dpkg-dev \
  gcc \
  gcc-c++ \
  gperf \
  libstdc++.i686 \
  libxml2-devel \
  lz4-libs \
  lzop \
  make \
  maven \
  ncurses-compat-libs \
  openssl-devel \
  pngcrush \
  python \
  python3 \
  python3-mako \
  python-mako \
  python-networkx \
  schedtool \
  squashfs-tools \
  syslinux-devel \
  zip \
  zlib-devel \
  zlib-devel.i686 \
  ImageMagick-devel.x86_64 ImageMagick-c++-devel.x86_64

Install repo tool:

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /usr/bin/repo && chmod +x /usr/bin/repo

Configure environment

source build/envsetup.sh

Configure platform

lunch aosp_x86_64-eng

For 32-bit compatibility:

lunch sdk_phone_x86-userdebug

Build Android source

m -j16

Run emulator:

emulator
emulator -encryption-key device/generic/goldfish/data/etc/encryptionkey.img

References

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