Update termux_notes.md

This commit is contained in:
Iceman 2020-05-20 09:46:49 +02:00 committed by GitHub
parent 8c22ef076b
commit 97a94903b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,23 @@
<a id="top"></a>
# Proxmark 3 on Android
## Table of Contents
* [ Requirements ](#requirements)
* [ Notes ](#notes)
* [ Tested setups ](#tested-setups)
* [ Setup ](#setup)
* [ Setting up Termux ](#setting-up-termux)
* [ Install Proxmark3 package ](#install-proxmark3-package)
* [ USB_ACM ](#usb_acm)
* [ Enable the driver ](#enable-the-driver)
* [ Building the kernel ](#building-the-kernel)
* [ Flashing the kernel ](#flashing-the-kernel)
* [ Testing ](#testing)
* [ Troubleshooting ](#troubleshooting)
## Requirements
^[Top](#top)
- Android phone
- Kernel with one of:
- USB_ACM driver
@ -10,11 +27,13 @@
- [Termux](https://play.google.com/store/apps/details?id=com.termux)
## Notes
^[Top](#top)
From official Proxmark3 wiki:
> In any case, you would need a USB-C to A or USB-OTG cable to connect Proxmark3 to your Android device. Some Android devices may not supply enough power (USB-OTG = 100mA), and need a USB Y-cable and external battery, otherwise they will get strange failures.
ref : https://github.com/Proxmark/proxmark3/wiki/android
## Tested setups
^[Top](#top)
- OnePlus 5 (arm64, USB-C)
@ -45,9 +64,17 @@ ref : https://github.com/Proxmark/proxmark3/wiki/android
## Setup
^[Top](#top)
### Setting up Termux
^[Top](#top)
Install [Termux](https://play.google.com/store/apps/details?id=com.termux) and start it
### Install Proxmark3 package
^[Top](#top)
Run the following commands:
```
pkg install proxmark3 tsu
@ -61,18 +88,28 @@ make clean && make client
```
### USB_ACM
^[Top](#top)
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!
#### Enable the driver
^[Top](#top)
If your kernel has module loading enabled, you should be able to build the module separately and load it on your system without any changes. Otherwise, grab your kernel sources and edit your build config to include `CONFIG_USB_ACM=y`. On the tested kernel, this was under: `android_kernel_oneplus_msm8998/arch/arm64/configs/omni_oneplus5_defconfig`
#### Building the kernel
^[Top](#top)
If using a custom kernel, refer to the build instructions provided by its maintainer. Otherwise, follow the standard Linux kernel build procedure
#### Flashing the kernel
^[Top](#top)
You can flash the kernel however it suits you. On the tested device, this was achieved using [TWRP](https://twrp.me/), the most popular custom recovery
### Testing
^[Top](#top)
Open Termux and start the Proxmark3 client:
```
tsudo proxmark3/client/proxmark3 /dev/ttyACM0
@ -80,5 +117,7 @@ tsudo proxmark3/client/proxmark3 /dev/ttyACM0
Everything should work just like if it was your PC!
### Troubleshooting
^[Top](#top)
- `dmesg | grep usb` - useful debug info
- `/proc/config.gz` - contains your kernel's build configuration. Look for `CONFIG_USB_ACM`, which should be enabled