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
source build/envsetup.sh
lunch aosp_x86_64-eng
For 32-bit compatibility:
lunch sdk_phone_x86-userdebug
m -j16
Run emulator:
emulator
emulator -encryption-key device/generic/goldfish/data/etc/encryptionkey.img
- https://source.android.com/docs/setup/start
- https://source.android.com/docs/setup/create/avd
- https://source.android.com/docs/setup/build/building
- https://source.android.com/docs/setup/build/building-kernels
- https://gist.github.com/axxx007xxxz/60fea50f4b123e0163f972d1709068c2
- https://fedoraproject.org/wiki/HOWTO_Setup_Android_Development
- https://groups.google.com/g/android-building/c/VXoLCBXiL5A
- https://source.android.com/docs/core/architecture
- https://source.android.com/docs/core/architecture/modular-system
- https://source.android.com/docs/security/features/encryption/full-disk