[APP][1.5] Tap, Tap: Double tap on back of device gesture from Android 12 port

Search This thread

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
9,039
8,454
25
Salford, Greater Manchester, UK
quinny898.co.uk
Tap, Tap is a port of the double tap on back of device gesture from Pixels running Android 12 to any Android 7.0+ device*.
Tap, Tap provides over 50 actions that can be run from double or triple taps on the back of your device, including:
  • Launching an app
  • Launching a shortcut
  • Toggling the flashlight
  • Simulating button presses, such as home or back
  • Running a Tasker task
  • Quick Tap to Snap**
... and many more!

The gesture can also be fully controlled, to only run under certain conditions, or run different actions in different scenarios; such as only when an app is running, the screen is off, or when listening to music (many more options are available).
The sensitivity and response of the gesture can be controlled, picking from 8 "models", trained for devices ranging in size from 5.7" to 6.3" in height, as well as finer control of the sensitivity of gesture detection, meaning there is a configuration that will work well for most devices.
Tap, Tap also tries to be easy on the battery, only running the gesture detection when required, and integrates with the "low power mode" available on select Pixel devices, otherwise using the lower-power machine learning capabilities of devices, where available.

* Your device must have an accelerometer and gyroscope.
** Requires a compatible Pixel device or root, see this page for more info.


Screenshots:



Example video, showing launching the camera on double tap

Changelog said:
Version 1.5:
- Added new Samsung model from RegiStar
- Added new action to simulate rotating the device
- Added support for LG DualScreen devices for foldable gate
- Fixed a number of crashes
- UI tweaks

Version 1.4:

- Fixed Native Mode on Android 13, and as a result it now requires Shizuku or Sui. This is because of restrictions to the READ_LOGS permission on Android 13
- Added Notification Permission prompt for Android 13
- Updated Material switches to newer Material You style
- Updated dependencies
- Added touch on screen action, thanks mauri870
- Updated Traditional Chinese translation, thanks cracky5322
- Fixed incorrect button action during setup
- Fixed crash on Android 10
- Fixed incorrect notification for gesture actions

Version 1.3:

Introducing Native Mode, a new low-battery usage mode for Pixels with official Quick Tap support. This mode, similar to the existing low-power mode, uses the system component, but does so without needing root (on Android 13) or a constantly running Shizuku service (on Android 12). To set it up, you will need to use ADB or root once to grant a permission, after that it will run without further actions being required.

Please note that Native Mode does not work while the screen is off, and you may find triple tap is harder to use with it enabled. Both of these are system restrictions and cannot be worked around.

In addition, 1.3 fixes some crashes, updates translations, and fixes Quick Tap to Snap from the lockscreen.

Version 1.2:

Tap, Tap v1.2 disables the Tensor Low Power Mode by default as it was causing issues with some devices not working with the gesture.
If it was previously working for you on 1.x, and you experienced battery improvements, you can re-enable it in the advanced settings.

Low Power Mode on supported Pixels with Shizuku or Sui is not affected by this change.

- Added missing alarm permission
- Fixed more app shortcut crashes
- Improve foldable gates
- Added monochrome icon for Android 13
- Translation updates

Version 1.1:
- Fixes for Android 13
- Fixed app shortcut related crashes
- Fixed service starting on boot even if it's disabled
- Fixed crash on start on Android 7.0
- Added Do not Disturb enabling action, thanks Kylian Meulin
- Updated translations

Important: If you are on Android 13, you MUST now use Sui to use Low Power Mode (Sui requires root). This is due to platform restrictions, there is no workaround.

Version 1.0.1
:
- Fixes for various crashes including Snapchat, App Shortcuts and network issues.
- Improvements to device specs lookup for model recommendation
- Improvements to notification & quick settings expand/collapse actions
- Actions & Gates that are unsupported will now give a reason why they are
- Added Battery Saver gate

Version 1.0 is a full rewrite of the app, from scratch. It contains a brand new UI, a number of new actions and gates, and implementation of the Android 12 'Columbus' gesture code and models, including a new Low Power Mode for Pixels.

You can read more here: https://medium.com/@KieronQuinn/tap-tap-v1-0-restarting-from-scratch-2b87c241d176

Download:
Version 1.5

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

Reporting Issues & Feature Requests

If you have encountered a crash or error, please make an issue on the GitHub Issues page. For crashes, include a crash report, which Tap, Tap should create for you and show a notification after a hard crash (enable the option on the "More" page first if you have disabled it). Before making an issue, make sure it has not been reported before, and does not fall under the "service killed" pinned issue, as those will be closed and ignored.

To request a feature, either make an issue stating "Feature Request", or post a reply in the XDA thread. Note that only relatively simple features will be considered, anything more complex including toggling specific system features should be done using the Tasker capabilities of Tap, Tap, as the app is not meant to be a Tasker replacement.
 

Attachments

  • TapTap-0.1-Alpha.apk
    11.7 MB · Views: 658,301
  • TapTap-0.2-Alpha.apk
    11.8 MB · Views: 129,505
  • TapTap-0.3-Alpha.apk
    12 MB · Views: 90,614
  • TapTap-0.4-Alpha.apk
    13.1 MB · Views: 82,349
  • TapTap-0.5-Alpha.apk
    13.2 MB · Views: 124,247
  • TapTap-0.6-Alpha.apk
    13.3 MB · Views: 57,105
  • TapTap-0.7.1-Alpha.apk
    13.8 MB · Views: 48,565
  • TapTap-0.8-Beta.apk
    13.8 MB · Views: 26,870
  • TapTap-0.8.1-Beta.apk
    13.8 MB · Views: 52,418
  • TapTap-0.9-Beta.apk
    16.1 MB · Views: 132,386
  • TapTap-0.10-Beta.apk
    13.2 MB · Views: 55,828
  • TapTap-0.10.1-Beta.apk
    13.2 MB · Views: 732,912
  • TapTap-1.0.apk
    12.3 MB · Views: 6,911
  • TapTap-1.0.1.apk
    12.3 MB · Views: 9,154
  • TapTap-v1.1.apk
    12.3 MB · Views: 10,077
  • TapTap-v1.2.apk
    12.4 MB · Views: 707,630
  • TapTap-v1.3.apk
    12.4 MB · Views: 104,439
  • TapTap-v1.4.apk
    16 MB · Views: 237,536
  • TapTap-v1.5.apk
    16.4 MB · Views: 40,770
Last edited:

NateDev

Senior Member
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:

cz_mok

Member
Jan 11, 2015
21
9
Tasker Integration

Can't wait to see the Tasker Integration to open up the whole new level of potential.

Thanks for the app!
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
9,039
8,454
25
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: anuinam and mauam

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
9,039
8,454
25
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
179
60
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
9,039
8,454
25
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
329
100
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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Version 1.5 released:
    - Added new Samsung model from RegiStar
    - Added new action to simulate rotating the device
    - Added support for LG DualScreen devices for foldable gate
    - Fixed a number of crashes
    - UI tweaks
    Download in the first post or on the GitHub releases
    1
    How much idle drain is normal in an old device (Redmi Note 3 Pro running Havoc Q) which only supports the Tensor Low Power mode? I am seeing around 1.8%/h. The device is in Deep Sleep for 98-99% of the time. I use the app to turn off the screen as a fix for the replacement touchscreen which nowadays stops responding after sometime. The replaced Power button is not very good so the Tap, Tap app comes in very handy to reduce it's further wear and tear. I am using a Tasker Task to turn off the screen (input keyevent 26).
    P.S. Idle drain otherwise is pretty good in this device. After being unplugged battery drops by 5-7% percent in a few hours and thereafter it's around 0.1-0.2 %/h.
    That sounds pretty normal from reports.
    1
    Hello!

    I have been using this app for a few weeks now on my OnePlus Nord 2 on Android 11 (OxygenOS). So far it's been running great! However, I noticed some bug (or is it? Maybe it's just on my end, I dunno if anyone else is experiencing this) when using either the double or triple tap to open the notification/quick settings panel. I'd say around 30% of the time it works great, but most of the time it triggers a "back button" press, as if I've set the double tap to back button, even if it was set to opening the notifications panel. If this is an issue with the app, I hope it gets fixed sometime. Aside from this issue, it's been great for me!

    Thanks!
    Unfortunately there's no system API for knowing whether the status bar / QS is expanded, it relies on accessibility labels which don't work on all devices. Given Oxygen OS is so far away from AOSP nowadays, that's probably not working on your device and it's not knowing that the panel is already closed.

    A workaround would be to follow up the "open" double tap with a "close" one once you're done, which should keep the app in sync and the next time it will open again.
  • 403
    Tap, Tap is a port of the double tap on back of device gesture from Pixels running Android 12 to any Android 7.0+ device*.
    Tap, Tap provides over 50 actions that can be run from double or triple taps on the back of your device, including:
    • Launching an app
    • Launching a shortcut
    • Toggling the flashlight
    • Simulating button presses, such as home or back
    • Running a Tasker task
    • Quick Tap to Snap**
    ... and many more!

    The gesture can also be fully controlled, to only run under certain conditions, or run different actions in different scenarios; such as only when an app is running, the screen is off, or when listening to music (many more options are available).
    The sensitivity and response of the gesture can be controlled, picking from 8 "models", trained for devices ranging in size from 5.7" to 6.3" in height, as well as finer control of the sensitivity of gesture detection, meaning there is a configuration that will work well for most devices.
    Tap, Tap also tries to be easy on the battery, only running the gesture detection when required, and integrates with the "low power mode" available on select Pixel devices, otherwise using the lower-power machine learning capabilities of devices, where available.

    * Your device must have an accelerometer and gyroscope.
    ** Requires a compatible Pixel device or root, see this page for more info.


    Screenshots:



    Example video, showing launching the camera on double tap

    Changelog said:
    Version 1.5:
    - Added new Samsung model from RegiStar
    - Added new action to simulate rotating the device
    - Added support for LG DualScreen devices for foldable gate
    - Fixed a number of crashes
    - UI tweaks

    Version 1.4:

    - Fixed Native Mode on Android 13, and as a result it now requires Shizuku or Sui. This is because of restrictions to the READ_LOGS permission on Android 13
    - Added Notification Permission prompt for Android 13
    - Updated Material switches to newer Material You style
    - Updated dependencies
    - Added touch on screen action, thanks mauri870
    - Updated Traditional Chinese translation, thanks cracky5322
    - Fixed incorrect button action during setup
    - Fixed crash on Android 10
    - Fixed incorrect notification for gesture actions

    Version 1.3:

    Introducing Native Mode, a new low-battery usage mode for Pixels with official Quick Tap support. This mode, similar to the existing low-power mode, uses the system component, but does so without needing root (on Android 13) or a constantly running Shizuku service (on Android 12). To set it up, you will need to use ADB or root once to grant a permission, after that it will run without further actions being required.

    Please note that Native Mode does not work while the screen is off, and you may find triple tap is harder to use with it enabled. Both of these are system restrictions and cannot be worked around.

    In addition, 1.3 fixes some crashes, updates translations, and fixes Quick Tap to Snap from the lockscreen.

    Version 1.2:

    Tap, Tap v1.2 disables the Tensor Low Power Mode by default as it was causing issues with some devices not working with the gesture.
    If it was previously working for you on 1.x, and you experienced battery improvements, you can re-enable it in the advanced settings.

    Low Power Mode on supported Pixels with Shizuku or Sui is not affected by this change.

    - Added missing alarm permission
    - Fixed more app shortcut crashes
    - Improve foldable gates
    - Added monochrome icon for Android 13
    - Translation updates

    Version 1.1:
    - Fixes for Android 13
    - Fixed app shortcut related crashes
    - Fixed service starting on boot even if it's disabled
    - Fixed crash on start on Android 7.0
    - Added Do not Disturb enabling action, thanks Kylian Meulin
    - Updated translations

    Important: If you are on Android 13, you MUST now use Sui to use Low Power Mode (Sui requires root). This is due to platform restrictions, there is no workaround.

    Version 1.0.1
    :
    - Fixes for various crashes including Snapchat, App Shortcuts and network issues.
    - Improvements to device specs lookup for model recommendation
    - Improvements to notification & quick settings expand/collapse actions
    - Actions & Gates that are unsupported will now give a reason why they are
    - Added Battery Saver gate

    Version 1.0 is a full rewrite of the app, from scratch. It contains a brand new UI, a number of new actions and gates, and implementation of the Android 12 'Columbus' gesture code and models, including a new Low Power Mode for Pixels.

    You can read more here: https://medium.com/@KieronQuinn/tap-tap-v1-0-restarting-from-scratch-2b87c241d176

    Download:
    Version 1.5

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

    Reporting Issues & Feature Requests

    If you have encountered a crash or error, please make an issue on the GitHub Issues page. For crashes, include a crash report, which Tap, Tap should create for you and show a notification after a hard crash (enable the option on the "More" page first if you have disabled it). Before making an issue, make sure it has not been reported before, and does not fall under the "service killed" pinned issue, as those will be closed and ignored.

    To request a feature, either make an issue stating "Feature Request", or post a reply in the XDA thread. Note that only relatively simple features will be considered, anything more complex including toggling specific system features should be done using the Tasker capabilities of Tap, Tap, as the app is not meant to be a Tasker replacement.
    42
    New version, 0.5 Alpha
    Changelog said:
    - Added sensitivity option with a slider under the gesture settings (experimental)
    - Added option to disable battery optimisation, and some tips on how to make it work on your weird OEM firmwares
    - Haptic feedback will now only happen when do not disturb is not enabled (thanks Ashutosh Singh) - there's an option to override this if you want
    - Added power menu action (thanks Adrian Campos)
    - Moved "Reachability" to Utilities
    - Added gates for Keyboard visibility and orientation
    - Fixed app picker not showing all apps when selecting for a gate, and the hide system apps doing the exact opposite of what it was supposed to do
    - Tweaked UI even more
    - Updated translations

    Download (also in first post)
    33
    New version: 0.6 Alpha
    Changelog said:
    Implemented "requirements" (aka "when gates") for actions. This allows you to specify an action to only be run when a condition is met (any gate can be used for this), such as an app running or the display being off - example is below
    Added Table gate
    Added pocket gate
    Added gates for detecting headsets and music playing
    Added Sound Profile control - needs do not disturb access, app will prompt you (thanks Ashutosh Singh)
    Updated translations & contributors

    Download version 0.6 Alpha (also in first post)

    Example of requirements, which I'm currently using on my device (click to enlarge):


    What it does:
    - If Pokemon GO is being played -> Run a Tasker task that starts the CalcyIV overlay
    - Otherwise, if Music is playing -> skip to the next track
    - Otherwise, if a headset is connected -> play the track (this will never pause as the previous action would've been run)
    - Otherwise, if the screen is off -> toggle the flashlight
    - Otherwise -> launch Spotify

    Remember, once an action has been run successfully, no further actions below it will be run. Place your highest priority actions at the top, and work your way down setting up requirements for each action until the last one, which is always the "last resort" and will only be run if all the other actions' requirements are not met.

    If you have some other great ideas of how to make the most out of this new feature, share them in this thread!
    27
    New version, Alpha 0.4:
    Changelog said:
    - Added new Split Screen action which starts split screen
    - Added new mock-reachability mode that uses split screen with an empty top half (except for two buttons to open the notifications and quick settings without reaching up)
    - Moved declaration of an action's category to TapAction instead of defining each category's items as a list
    - Implemented the isAvailable boolean in the picker, which hides Screenshot & Lock Screen on < 9.0. Updated default list to cope with this on < 9.0 (default is now Assistant then Home)
    - Migrated to using Tensorflow library rather than the shared library and code taken from SystemUI, hopefully fixing Android 7.0. This will also enable armv7 support.
    - Added a bunch of new languages and updates to current ones (now supports English, German, Spanish, French, Italian, Polish, Portuguese (Brazil), Russian, Ukranian, Vietnamese & Traditional Chinese)

    Download (also in first post)