Update Android Termux guide

This commit is contained in:
Victor 2019-08-06 02:00:26 +01:00
parent 25748b0746
commit ab856ab73d

View file

@ -29,28 +29,15 @@ ref : https://github.com/Proxmark/proxmark3/wiki/android
- [Magisk 19.3](https://github.com/topjohnwu/Magisk/)
## Setup
### Getting ncurses with termcap
You need `termcap` to build the Proxmark3 client. Unfortunately, the prebuilt `ncurses` package does not include it. Since [this PR](https://github.com/termux/termux-packages/pull/2131) hasn't been merged yet, you will have to build `ncurses` yourself
1. Clone the [termux-packages](https://github.com/termux/termux-packages) repo
2. Apply [the PR](https://github.com/termux/termux-packages/pull/2131)
3. Build `ncurses`. Refer to the [build docs](https://github.com/termux/termux-packages/blob/master/docs/BUILD_ENVIRONMENT.md) for more information. The easiest way is to use Docker:
- `./scripts/run-docker.sh`
- `./build-package.sh ncurses`
- the built packages will be under the `debs` directory
4. Copy `ncurses_6.1.x-x_aarch64.deb` to your phone's `/sdcard`
### Setting up Termux
1. Install [Termux](https://play.google.com/store/apps/details?id=com.termux) and start it
2. Run the following commands:
```
pkg install make, clang, clang++, readline-dev, libclang-dev, libc++, git, tsu
termux-setup-storage
dpkg -i /sdcard/ncurses_6.1.x-x_aarch64.deb
pkg install make clang clang++ readline libc++ git tsu
git clone https://github.com/RfidResearchGroup/proxmark3.git
```
### Building Proxmark3 client
1. Edit `proxmark3/client/Makefile` and append `-fPIC` to the `CFLAGS` variable (line 30)
2. `make clean && make client`
1. `make clean && make client`
### USB_ACM
You need the `USB_ACM` driver enabled and working to communicate with the Proxmark3. To see if it's working, run `tsudo ls /dev/tty*` and it should list `/dev/ttyACM0` (or similar). If you see this, congratulations, skip this step!