by Christian Shelton
Version 1 (February 16, 2025)
Download (3 downloads)
Torch lock turns your phone's torch back on when the system times it out.
This version of the flow uses the proximity sensor to determine whether the phone has been placed down or not. So if your torch turns off when placed down on a surface, your torch will turn back on. If you don't want to use the proximity sensor, please use the manual version of this flow!
With this flow your torch can be "locked" or "unlocked" by tapping its automate notification - when "locked", this flow will monitor if your torch is turned off and will turn it back on. When "unlocked" this flow will be disabled from monitoring your torch and normal torch behaviour will resume.
Notes: If you are holding your phone and you see your torch briefly pulse, that means the system turned the torch off and this flow has turned it back on. Once this occurs you have 5 seconds to cover the proximity sensor before automate will turn it back off. If you do not want it to turn off, cover the proximity sensor with your finger for 5 seconds to keep the torch on.
Provided this flow is in the "locked" state - your torch will not turn back off while the proximity sensor is covered, so its important that you either uncover the proximity sensor and wait for the system to time your torch out automatically or turn it off manually!
When you turn your torch off this flow will automatically turn your torch on - to turn the torch off in the "locked" state either wait 5 seconds with the proximity sensor uncovered where this flow to turn your torch back off, or more simply: you can just torch off a second time within this 5 second window and it will stay off until you turn it back on again. A double tap of the torch toggle works well!
When this flow is in the "locked" state - it could potentially interfere with other apps that utilise the torch(such as other torch apps or camera apps). If you see any interference either "unlock" your torch by tapping this flows notification or stop this flow via automate. I will be updating this flow in the future to partially mitigate this issue while using the stock android camera app.