Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut Buttons Toggling Accessibility Permission on/off instead of flashlight (Android 11 - App Version 3.2.1) #38

Open
Owen-G opened this issue Mar 29, 2021 · 3 comments

Comments

@Owen-G
Copy link

Owen-G commented Mar 29, 2021

@anselm94

I am using a Samsung Galaxy S10+ running Android 11 with Samsung's OneUI Version 3.0.
When I try toggling the flashlight with the shortcut buttons ("Volume up & down for 3 seconds" or "Volume Up & Power Button"), it enables and disables Torchie's Accessibility Permission instead of the actual flashlight while the screen is on or on the lock screen. If the screen is turned off, the shortcut buttons work properly to turn on/off the flashlight.

I hope this bug can be solved but I do know that Android has become more Privacy secure and making these types of apps harder and harder to use on newer versions of Android.

@kaoneko
Copy link

kaoneko commented Oct 11, 2021

I too experienced the described behaviour, however I found out that torchie always works when leaving a slight pause between pressing one volume button and the other (as happened naturally when I tried pressing both with my thumb).

So, to be clear, on my Pixel 4a running the stock Android 11 ROM, with the screen on:

  • pressing volume up and down at exactly the same time and holding them for about one second toggles the accessibility service
  • pressing volume up and after a very slight pause also volume down, then releasing both after half a second toggles the flashlight

Which volume button you press first and which last doesn't matter though.

Hope this helps anyone! 🔦🙏🏻💡

Edit: I just found out the solution can be even simpler. In Android's Settings > Accessibility > Torchie Quick make sure Torchie Quick shortcut is turned off. Now pressing both volume keys at the same time should always work! (Unless you have the same setting turned on for a different accessibility service.)

@kaoneko
Copy link

kaoneko commented Oct 11, 2021

The "bug" is caused by the fact that both Torchie and Android use the same shortcut, holding down both volume keys. Android uses it to toggle accessibility services (if you turn it on for multiple accessibility services it will even display a pop-up asking you which one you want to toggle) and Torchie uses it to toggle the flashlight. The user may faultily conclude that they need to turn on the accessibility shortcut in Android's settings to make Torchie work, as I did, and this causes the unintended behaviour described by Owen-G.

@e-t-l
Copy link

e-t-l commented Dec 16, 2022

If the screen is turned off, the shortcut buttons work properly to turn on/off the flashlight.

I did NOT experience this. I CANNOT get Torchie to toggle when the screen is completely off. In the in-app Settings, all checkboxes are checked and Screen Off is set to Indefinite. Yet Torchie will only toggle the torch on or off if the screen is on. I have the Accessibility Quick Shortcut set to Off, but I tried it with it On as well with no effect.

Running Android 13 on Pixel 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants