Skip to content

Commit

Permalink
Documentation for Android 13
Browse files Browse the repository at this point in the history
  • Loading branch information
xarantolus committed Feb 5, 2023
1 parent 42d13d8 commit 8622c36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ There are three different commands:
### Supported phones
Whether or not this works on your phone might not only depend on the model used, but also the operating system. Different variants of Android might not behave in the way this module expects them to.

The only system I tested this on is [LineageOS 18.1](https://lineageos.org/) (Android 11) for the [Xiaomi Mi Mix 2](https://wiki.lineageos.org/devices/chiron) in combination with [Magisk 23.0](https://github.com/topjohnwu/Magisk). The older version (before 2021-05-27 / last commit with it is `cbc2417`) worked on LineageOS 17.1 (Android 10), but I no longer use that version.
The only system I tested this on is [LineageOS 20](https://lineageos.org/) (Android 13) for the [Xiaomi Mi Mix 2](https://wiki.lineageos.org/devices/chiron) in combination with [Magisk 25.2](https://github.com/topjohnwu/Magisk).

One older version (before 2021-05-27 / last commit with it is `cbc2417`) worked on LineageOS 17.1 (Android 10), but I no longer use that version. Similarly, the version before 2023-02-05 (last commit with it is `42d13d`) worked on LineageOS 19.1 (Android 11), but I no longer use that version either.

The program is very device specific and will very likely not work at all if you don't have the *exact* same configuration. It should however be possible to [adapt the program](#adapting-to-other-phones) to run on your phone.

This program *might* work on your phone if all of these conditions are met:
* You have Magisk installed
* The commands `echo -n 200 > /sys/class/leds/vibrator/duration && echo -n 1 > /sys/class/leds/vibrator/activate` in a root shell vibrates your phone
* The `singletap` executable (that can be built from [`cmd/singletap/main.go`](cmd/singletap/main.go)) correctly taps the top left of your screen
* The `singletap` executable (that can be built from [`cmd/singletap/main.go`](cmd/singletap/main.go)) correctly taps the top left of your screen
* The output of `getevent -pl` (again, in a root shell on your phone) looks something like this (`/dev/input/event0` (power button) and `/dev/input/event1` (display) are particularly important)

<details>
Expand Down

0 comments on commit 8622c36

Please sign in to comment.