[APP][Beta 0.10.1] Tap, Tap: Double tap on back of device gesture from Android 11 port

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,408
7,670
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
Tap, Tap is a port of the double tap on back of device gesture from Android 11 to any Android 7.0+ device. It allows you to use the gesture to launch apps, control the device (including pressing the home, back and recents buttons), take a screenshot, toggle the flashlight, open your assistant and more. Using "gates", you're able to block the gesture from working in scenarios such as when the screen is off, when you're on a call, when an app is open and more. It uses an accessibility service to run these tasks and stay running in the background. Tap, Tap uses the same machine learning code and TensorFlow models from the Android 11 builds with the gesture, with code directly lifted from SystemUIGoogle where needed. You can pick from three models in the settings: Pixel 3 XL, Pixel 4 and Pixel 4 XL; allowing you to choose the one that fits your device best. Machine learning allows the gesture to be more accurately detected, and reduces the chance of accidental interactions.

Tap, Tap is currently in beta, and may be slightly buggy. Stay tuned for new features and bug fixes. If you'd like to report a bug or suggest a feature, you can do so in this thread or on the GitHub.

Screenshots:


Example video, showing launching the camera on double tap

Changelog for latest bugfix version (0.10.1 Beta):
Changelog said:
Fixed crash when launching the app without an internet connection
Fixed crash when adding a requirement to an action after moving actions around or deleting some
Previous changelog for 0.10 Beta:
Changelog said:
  • A full rewrite of almost all of the behind the scenes of the app, which should be more stable, compatible and efficient. This means the "Split Service" option has gone and is effectively always enabled, so a notification will be shown (which means less chance the app gets killed). You can long press it to hide it without affecting battery optimisation.
    New Actions:
  • Accept Call & Reject Call (make sure to disable the call gate if you wish to use Reject to hang up a call)
  • Swipe Left, Right, Up & Down (requires secondary gesture service)
  • New Gates for foldable devices, for the open and closed state of the device
  • Added a Backup & Restore feature, using Storage Access Framework so you can backup and restore directly from Google Drive if you wish
  • Added a built in update downloader to workaround the issue where some were unable to download an APK from the app (if you can't download this update, click the "GitHub" link in the app and find the APK in the releases section)
  • Improved Battery & Optimisation screen to link off to dontkillmyapp.com for your OEM if available
  • Re-shuffled About section to have its own page with full credits for contributors and translators - thank you!
  • Fixed a load of bugs including: Triple tap running feedback when gated, Double tap running feedback when set to do nothing and Triple tap enabled, crashes on MIUI and Android 7.0, crashes when an app used in an action or gate is uninstalled
  • Removed unused resources & code, reducing the size of the APK by around 1MB
Download:
Version 0.10.1 Beta

GitHub:
https://github.com/KieronQuinn/TapTap
 

Attachments

Last edited:

NateDev

Senior Member
Aug 18, 2016
705
150
43
Mississauga
Wow, this works surprisingly well on OnePlus 7Pro, even with a case on. Although sometimes I'll go on a run of it working 10x times in a row, and then it won't work for the next few, and then go back to working again.


Currently using the Pixel 4XL model as I think it's the closest out of the three. It definitely needs more of a deliberate tap - tap instead of a super quick double tap to be more accurate, but that's not a problem at all.

Super excited to see what (if any) improvements can be made to the model, or sensitivity in the future.

Sent from my GM1917 using Tapatalk
 
Last edited:

dallasnights

Senior Member
Sep 25, 2006
130
17
38
Nice work, installed on my Galaxy Z FLip and it works great, can you add the ability to double tap and choose a shortcut too
THank you for the greatwork!
 

Yoohis

Senior Member
Jun 23, 2020
139
41
28
Trying it with my s10 exynos and it works great, little weird at times with a case but it still works 90% of the time :)
 
Last edited:

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,408
7,670
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
Works well on my xperia 1! Thanks :)
Id love for this to work when the phone is locked. Perhaps with root or magisk? Definitely willing to pay
Disable the screen off gate lol

And turn on the wake device up feedback if it's an app launching and not something that will work with the screen off
 
  • Like
Reactions: mauam

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,408
7,670
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
Nice work, installed on my Galaxy Z FLip and it works great, can you add the ability to double tap and choose a shortcut too
THank you for the greatwork!
Double tapping might not be possible, the tensorflow model appears to be for a single tap only, but I might be able to figure something out eventually.

Shortcuts as in like launcher shortcuts to call someone or open Maps directions? Probably will add that.
 
  • Like
Reactions: mauam

adriansticoid0312

Senior Member
Nov 2, 2012
176
59
48
San Pedro
Tried on my Redmi Note 7 Pro using Havoc. The default command seemed to work but I changed it to back button simulation, and it doesn't work. My phone vibrates, telling me that Tap, Tap recognized my tapping but the command wasn't executed.

EDIT: lock screen works

Sent from my Redmi Note 7 Pro using XDA Labs
 
Last edited:

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,408
7,670
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
Tried on my Redmi Note 7 Pro using Havoc. The default command seemed to work but I changed it to back button simulation, and it doesn't work. My phone vibrates, telling me that Tap, Tap recognized my tapping but the command wasn't executed.
Do any of the other actions other than the default setup work? That would help rule out whether it's an issue with back or an issue with actions in general on that device
 

TrustAugustus

Senior Member
Jan 23, 2013
259
49
58
Hirakata
Disable the screen off gate lol

And turn on the wake device up feedback if it's an app launching and not something that will work with the screen off
Sorry I was unclear. It is disabled. But from my experience in the past with apps such as button remapper I have been unable to get screen off commands to work properly. In that instance using volume buttons, it was possible. But not for dedicated camera keys etc.

Now, with the gate disabled, flashlight, Assistant do nothing when the screen is off. When it is on but in the lockscreen it still doesn't work. The phone is unlocked work trustedagent,too.