radare2/doc/android.md
pancake e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00

730 B

r2 on android

Install NDK in archlinux x86-64

  • Enable multilib repo in pacman.conf
  • pacman -S lib32-glibc lib32-zlib

To build r2 for android you need to install the NDK:

http://developer.android.com/tools/sdk/ndk/index.html

Edit ~/.r2androidrc to setup the paths to your ndk

sys/android-shell.sh
./configure --with-compiler=android --with-ostype=android --prefix=/data/radare2 --without-pic --with-nonpic
make -j 4

To compile for android-x86

export NDK_ARCH=x86

To package:

mkdir
make install DESTDIR=/usr

Build farm, see sys/android-shell.sh and sys/android-build.sh

sys/android-shell.sh sys/android-build.sh arm-static

Environment:

NDK_ARCH=arm|arm64|x86