LongPressButtons -> brightness/flashlight (simple)

by Jung Y

Version 3 (January 6, 2023)

Download (99 downloads)

longpress volume up for brightness slider, longpress volume down for flashlight toggle.

needs intercept long volume button press permission granted through adb or root.

works only while display is on

the extra key block is to prevent the brightness dialog from disappearing if button is held a fraction of a second too long

might only work for newer android versions ¯\_(ツ)_/¯

changelog:
- remove 2 blocks with clever "abs(fl-1)" hack 😂
(another way to do it might be "[1,0][fl]" though I'm not sure how it would act on the initial null value) *EDIT* it works! Updated.

4.0 average rating from 1 reviews

5 stars
0
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.