Skip to content

Instantly share code, notes, and snippets.

@gss200610
Forked from adumont/archlinux_android
Created October 20, 2021 09:57
Show Gist options
  • Save gss200610/05fdf5abd41b6f6f7a6c0782dde6925a to your computer and use it in GitHub Desktop.
Save gss200610/05fdf5abd41b6f6f7a6c0782dde6925a to your computer and use it in GitHub Desktop.
ArchLinux for building Android
pacman -Sy
pacman -S --needed python2 openjdk6 perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng zlib libusb libusb-compat readline inetutils
pacman -S --needed gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb lib32-libusb-compat lib32-readline lib32-glibc bash-completion lib32-zlib
Install yaourt (& package-query):
add to /etc/pacman.conf:
[archlinuxfr]
Server = http://repo.archlinux.fr/$arch
run:
pacman -Sy yaourt
yaourt -S --needed android-sdk android-sdk-platform-tools android-udev esd-oss pngcrush repo tcp_wrappers termcap perl-switch
cd /usr/bin
[ -e python ] && mv python python.old
ln -s python2 python
In order to use adb, you have to be in the 'adbusers' group
For that, use: gpasswd -a USERNAME adbusers
Add to /etc/sysctl.conf
net.ipv4.tcp_window_scaling = 0
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