Skip to content

Instantly share code, notes, and snippets.

@koumaza
Forked from adumont/archlinux_android
Last active April 8, 2024 00:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koumaza/42aaf6e2828fa010096350bcbbb6050c to your computer and use it in GitHub Desktop.
Save koumaza/42aaf6e2828fa010096350bcbbb6050c to your computer and use it in GitHub Desktop.
Android build in ArchLinux

Build in Arch

Packages

Turn on multilib

pacman -Sy --needed base base-devel bc python python2 python-pip python2-pip jdk8-openjdk perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng zlib libusb libusb-compat readline inetutils schedtool gperf imagemagick lzop pngcrush rsync

pacman -Sy --needed gcc-multilib gcc-libs-multilib libtool-multilib \
lib32-libusb lib32-readline lib32-glibc bash-completion lib32-zlib

#AUR
yay -Sy --needed lib32-libusb-compat android-sdk android-sdk-platform-tools android-udev esd-oss pngcrush repo tcp_wrappers termcap perl-switch
mkdir -p /opt/bin
wget https://storage.googleapis.com/git-repo-downloads/repo -O /opt/bin/repo ; sudo chmod 755 /opt/bin/repo
ln -sf /usr/bin/python2 /opt/bin/python
set -gx PATH /opt/bin $PATH
Also see

http://movilzona.es/wiki/index.php/DevMake#Por_pasos http://rootzwiki.com/topic/9287-how-to-setup-android-build-environment-on-arch-linux-64bit/page__hl__%2Barch+%2Blinux__fromsearch__1

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