2018-02-27 09:54:54 +00:00
|
|
|
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:
|
|
|
|
|
2023-03-21 15:36:25 +00:00
|
|
|
https://developer.android.com/tools/sdk/ndk/index.html
|
2018-02-27 09:54:54 +00:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
2021-12-02 16:39:59 +00:00
|
|
|
mkdir
|
2018-02-27 09:54:54 +00:00
|
|
|
make install DESTDIR=/usr
|
|
|
|
|
|
|
|
Build farm, see `sys/android-shell.sh` and `sys/android-build.sh`
|
2021-12-02 16:39:59 +00:00
|
|
|
|
2018-02-27 09:54:54 +00:00
|
|
|
sys/android-shell.sh sys/android-build.sh arm-static
|
|
|
|
|
|
|
|
Environment:
|
|
|
|
|
2019-01-21 11:10:33 +00:00
|
|
|
NDK_ARCH=arm|arm64|x86
|