yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] a-raccoon:
Oh yeay, an app that can use hardware buttons while in deep sleep! I would love to start an audio or video recording by a short press and hold of the volume buttons when encountering law enforcement or mean angry bosses and other instances where you need to cover your ass without pulling out your phone.

Would that be possible to do?
[Xposed Framework Modules] wanam:
I think i found a better solution to make silently the volume UP button a wake key, the new update 2.2.0 should improve the way the volume button UP reacts on deep sleep.

Technically the new implementation triggers a partial wack-lock for 3 seconds when you press down the volume UP key, this prevents the device from going back to deep sleep before the long press delay ends.

Tested with Airplane mode on a Nexus 5X.
[Xposed Framework Modules] kamikaze702k:
Deleted
[Xposed Framework Modules] MohamedRaafat:
It's now working thank you :good:

Side question: Is there an exposed module that would let me use the home button just by touching it in fingerprint enabled devices ? I mean you just have to tap the button and not press it it will do the action of the home button.

Thanks for your work and sorry for the off-topic question
[Xposed Framework Modules] wanam:
I was thinking about that, I used the Nexus 5X for past 4 weeks and i have to say that this was one of the reasons i sold my GS6, and this is also what's make me thinking about getting the G5 as my next flagship.

The touch to unlock is a very usefull feature that saves the time and effort and more presses on the hardware buttons, but i'm not sure if this can be done at framework level, i didn't try but i don't think the touch sensor is working while the device is off, if this is true then i guess a kernel modification will be required.
[Xposed Framework Modules] MohamedRaafat:
There is an app called easy home which does that and it works but it is very buggy so you might want to check it maybe you could get an idea to implement it.I am sure you will get it work as all your modules are great.Thanks again
[Xposed Framework Modules] sutobe:
With the latest update this module is now officially ruined, at least for N5 under Lollipop.

Volume up, it vibrates (or not if turned off) and then nothing happens. Then you have to unlock your phone completely (not just turn on the display) to get the LED to work. Then it won't react properly and with good luck you can turn off the LED eventually. And it wasn't in deep sleep during that time.

and back to 2.1.0.
[Xposed Framework Modules] wanam:
I understand your frustration but at least try to be a bit more polite while reporting a bug, don't forget you are using free work.

New update 2.2.1 posted to fix a regression on Android 5.1 and bellow versions.

On Android 6.0+ you can run the torch all the time even if from the deep sleep mode, but on android 5.1-, you need to press the volume button at least one time then hold down to run the torch if you want to wake up the device from deep sleep.
[Xposed Framework Modules] gridan:
Hello!

I'm I right thinking that 'no action' means a default action? The thing is I wish to use a long press menu button when screen is on for a list of last apps. It works fine, but single press menu button does nothing (no action). BTW it doesn't work even in case if I choose 'simulate other key' and press the 'menu'.

Thank you in advance!
[Xposed Framework Modules] brusyev:
I started having issues with the latest update. Basically I am not able to keep the torch from turning on by accident using home key unless I set the delay timer to 5 sec. It used to work with 2 just fine before. I am running the module on Samsung Galaxy Note 4 running 5.0.1 with Exposed for Touchwix 80.1.
[Xposed Framework Modules] RedSkyRoad:
Since the latest firmware, my flashlight does not turn on with this module. The vibration works when I use the VOL up button, but no light comes on...

Galaxy S7 Edge
[Xposed Framework Modules] daniello8:
Hi, worked well for a while but on my S5 with Lollipop I cannot use vol-up anymore either. I hope you find the time to look into this.
[Xposed Framework Modules] aamnahid:
Its works fine in my Samsung grand prime ve (sm-g531f), but when i use it by pressing vol up, then my power menu button dont work unless i restart my phone manually via another app..
[Xposed Framework Modules] vincowoo:
Wow great thnx dev .it worked on my s5 900fd MM but i have to keep it in background. After launching manually it works for about hour or so unless device goes into deep sleep after that it don't untill i relaunch it manually and so.
[Xposed Framework Modules] mario_foo:
I have to press the volume button once before it works too , but I'm on 6.0.1 stock rom Nexus 6 :\
[Xposed Framework Modules] batp:
As others are reporting I am also losing access to the power button and am unable to turn my screen off or on using the power button when this module is installed.

This is on a Nexus 4 with CM13
[Xposed Framework Modules] ChingghisKhan:
Torch not working anymore

HI, I successfully used the torch on my Samsung S5 Active SM-G870A with stock rom (rooted) for over a year.

After reflash and re-install, I am unable to activate the module. It keeps telling me that it is not activated but I tried many times and re-booted as many times.

Any ideas?

EDIT:

I re-flashed my stock ROM and now the torch comes on, even when I just input my SIM-Pin.

I have set the delay to 5 seconds, but EVERY time when I press the HOME button, the torch comes on.

FINALLY SUCCESS:

I downloaded the xPosed Additions Module.

This module adds a delay of 500ms to the home button.

Now, the torch is working wonderfully!
[Xposed Framework Modules] iarejohnsmith:
[MENTION=3562083]wanam[/MENTION]

Hi, new user here. HTC One M9, MM6.0 ROM, Sense 7, latest Xposed and latest Torch (2.3.0).

Torch is unable to activate from deep sleep, even after pressing both volume buttons several times beforehand.

Also, I saw some people comment about the torch only working 50% of the time, and I want to say that I experienced the same thing when I tried using Volume Up for both turning on and turning off. However, when I switched to turning on with Volume Up and turning off with Volume Down, it worked 100% of the time (when it was not in deep sleep). Can you confirm that that is how it was designed? And if so, would it be possible to just change it to using Volume Up for both? (it would be much less confusing and stressful haha)

Great work man, thanks! Let me know if I can help test things or something. :good:
[Xposed Framework Modules] dhplap:
Could someone tell me if this works on cm 13? Thank you
[Xposed Framework Modules] iRhyiku:
Anyway we can make it instant so when you press volume up it turns on the torch and volume down turns it off again?
[Xposed Framework Modules] marcdw:
Umm, isn't that the way it's always worked? I don't get the question.

LG G3 D851, PAC-MAN LP ROM, Nebula 9.1 Kernel, Tapatalk 4.9.5
[Xposed Framework Modules] iRhyiku:
like press and not hold
[Xposed Framework Modules] marcdw:
Ah, I see. But the way it works is you have to hold just for a bit until the light comes on. After that you let it go. The light stays on.

A simple short press of volume down quickly turns it off. No long press or hold to turn it off.

At least that's how it has worked for me.

LG G3 D851, PAC-MAN LP ROM, Nebula 9.1 Kernel, Tapatalk 4.9.5
[Xposed Framework Modules] PlagasX:
Hey does anyone have problems using the volume up when power amp is installed? It keeps turning on my music instead of the flashlight.
[Xposed Framework Modules] Kharabsheh:
Hi wanam, congrats on a great work, using this on my Oneplus X, with CM13 (Sultan Android 6.0.1) but the torch wont wake up the device from deep sleep unless I press power button to go to lockscreen then turn off display again?

anyway thanks!
[Xposed Framework Modules] maszeta:
Hello

I have this module installed and working in Lollipop (LineageOS)

I would like to know if this one works in Oreo with Xposed v90-beta3

Thank you all
[Xposed Framework Modules] JDubbed:
This doesn't appear to work on Android Pie specifically a Razer Phone 2. Then again this module was last updated in 2016. Is this module abandoned? Seems to be the only one out there like it. Are there any alternatives?
[Xposed Framework Modules] maszeta:
It was recently updated on Google Play (22 Dec 2018)
[Xposed Framework Modules] marcdw:
It's been recently updated but it seems it works as a normal torch/flashlight app now. Updated all ROMs that had it installed and it no longer functions as it used to using Xposed (pressing volume up to activate torch). Downgraded and all is good.

LG G3 D851, Candy7 v6.0 ROM, Google free - no microG, MultiROM, XDA Legacy
[Xposed Framework Modules] maszeta:
Does someone know if this works in the latest versions of Android (8-9-10)? If not, any alternatives? Thanks!
[Xposed Framework Modules] cucumbersmell:
Working intermittently on Android 10 OOS on the OP7T.
[Xposed Framework Modules] SGH-i200:
Alternative: [APP] Power Button Flashlight (No Root)

The best no-root alternatives are: https://xdaforums.com/android/apps-games/app-torchie-torch-volume-buttons-anytime-t3270230 and https://xdaforums.com/android/apps-games/app-power-button-flashlight-t3839323

---------- Post added at 10:18 AM ---------- Previous post was at 10:15 AM ----------

Why do use this mod and not the flashlight mod included in Gravitybox (which you have installed, if your signature block is correct)?
[Xposed Framework Modules] cucumbersmell:
I am currently using Gravitybox for Torch Mode, but it tends to get turned on by mistake. I do keep it set to automatically turn off after 5 minutes. The power button is also used to quickly turn on the camera by double pressing it, so I figured I'd use this module to move some of that workload to the volume up/down buttons.
[Xposed Framework Modules] SGH-i200:
For me long press on the power button is the way to go, since it's the easiest way to activate the led flash light. In LOS14.1 (Axon 7 mini) the power button is also used to quickly turn on the camera by double pressing, but both work without problems. Too bad I will not get this kind of comfort on my Pixel 3a.
[Xposed Framework Modules] cucumbersmell:
This app works great for numerous types of customization of the volume button.

Almighty Volume Keys:

https://play.google.com/store/apps/details?id=com.masel.almightyvolumekeys&hl=en_US
[Xposed Framework Modules] oldslowdiver:
Working fine on S3 mini 4.1.2, TY
[Xposed Framework Modules] _jis_:
Very nice :)

I am only nitpicking, version 1.1 UI doesn't reflect these new features. In Enable Torch is still text from version 1.0.
[Xposed Framework Modules] Looki75:
Great! Waiting for v1.2!!!
[Xposed Framework Modules] Foa.neh:
doesn't work on haier w910 4.1
[Xposed Framework Modules] zov:
this app looks useful to me, gonna try and downloading now.. thanks.. :good:
[Xposed Framework Modules] momomok:
not working on my N5 4.4.2

maybe it is conflicting with GravityBox?
[Xposed Framework Modules] Celestial Fury:
No errors. Loading module. Loading class.
[Xposed Framework Modules] wanam:
I posted a new update to fix Wakelock leak and added 2 more options.

1.3.1:

- Fixed a Wakelock leak (a Wakelock is acquired for 1 second only to wake up the device from deep sleep)

- Add a delay option for the Long button press before launching the Flashlight

- Add an option to run the Flashlight even if the Music is ON (this feature supports the default Player only!)

- Few other improvements
[Xposed Framework Modules] Looki75:
v1.3 is great with the new functions!

However, it works not all the time on my S3 i9305 official JB4.3...

If I action Vol+ button a short time after the screen went off, it works OK, but if I action it a long time after the screen went off... then nothing happens (torch doesn't lit up).

It looks like the module is not able to wake-up the phone from deep deep sleep...

Note1: it was working ok with v1 and v1.1

Note2: I use your Wanam exposed module for Samsung ROM JB4.3. There is an option to show the "hidden torch setting"; when this setting is ON it is supposed to have the same behavior than Xposed Torch. Well I moved from the hidden setting to Xposed Torch because the hidden setting was not working reliably... and now v1.3 of Xposed Torch has the exact same issue...

Anything you can do to solve this?

Thanks
[Xposed Framework Modules] wanam:
My V1.3.1 should react better, V1.3 has the same behavior as the Samsung stock torch feature, because it does NOT aquire a wakelock to launch the Torch activity.
[Xposed Framework Modules] Looki75:
Thanks for the light-speed reactivity!!! :D

I'm not a dev so forgive me my ignorance... but v1.2 was reacting perfect, and at the same time wakelock was appearing only after the first use of Xposed Torch. So from that end, it looks like v1.2 was reacting OK, but just was not properly releasing a wakelock...

Is this correct? Or rather v1.2 has a constant wakelock to make sure it was reacting perfect?

Will v1.3.1 react as well as v1.2?

Thanks!
[Xposed Framework Modules] TotallyAnxious:
Well I was hoping you'd make the delay for the flashlight to come on as an input like I can type in any amount of time I want. Sorry I should have been more clear.
[Xposed Framework Modules] wanam:
Not really the same as v1.2, but much better than v1.3 and the Samsung implementation, v1.2 was reacting immediately because of the leaked partial wakelock :) .

How much?
[Xposed Framework Modules] TotallyAnxious:
I figured 4-5 seconds, I listen to music in my art classes a lot and I don't want to have to deal with taking my phone out to turn off the flashlight. Thanks :D
[Xposed Framework Modules] Looki75:
Understood... on my i9305 v1.3.1 has the same "issues" of sometimes not reacting... :(

I guess that's it, right? Either perfect reactivity but wakelock... or no wakelock but erratic reactivity...?
[Xposed Framework Modules] marbulas:
[MENTION=3562083]wanam[/MENTION]

Can you make an option to control the brightness of torch?

I want to make it as bright as possible(15 of 15)...
[Xposed Framework Modules] Looki75:
[MENTION=3562083]wanam[/MENTION] isn't it possible to force cpu wakeup through hw vol+ key?
[Xposed Framework Modules] Celestial Fury:
My bad. It works. :good: Didn't realize the screen had to be off.:o
[Xposed Framework Modules] termit901:
Translation of Xposed Torch into Russian language

In zip: folder and string.xml

View attachment values-ru.zip
[Xposed Framework Modules] wanam:
I posted a final update with a Torch helper option to prevent the device from going into a deep sleep while screen is off, use it only if you need it.

1.4.0:

- Add Russian translation (Thanks to Termit901)

- Add a Torch helper option to prevent the device from going into a deep sleep
[Xposed Framework Modules] fitzpete:
could you please elaborate why you need these extensive permissions?

A torch should not need internet access and my network operator is none of your business...
[Xposed Framework Modules] wanam:
It is used for Ads to support my work, i'm planning to add an option to remove ads like i used to do with my other Apps, but the permissions will stay there.

If you can not trust me you should read a little about what we can do with an Xposed App without asking for any permission.
[Xposed Framework Modules] naheel azawy:
Thanks :good:

works great on xperia mini pro ICS
[Xposed Framework Modules] pham818:
thanks, but can u give the option to activate it by holding the home button? it is easier for me, and for others too i would think. i think gravity-box had this kind of mod, i cant recall.
[Xposed Framework Modules] SandeepEmekar:
Does using torch preventing deep sleep?

I tried it and my phone never goes into deep sleep if I turn on the torch. :(
[Xposed Framework Modules] wanam:
I have no idea, this make require a deep look on the Camera App sources.

Using the Home button may conflict with SVoice on Samsung devices.

Only if you check the Torch helper, i'm looking for a better way to wake-up the cpu when holding the volume key on a deep sleep.

Edit: By the way i think i found one :) .
[Xposed Framework Modules] Abomb:
I'm using a Nexus4 with PAC rom (CM based) 4.3 and it does not work. No error logs in the Xposed app log tab.
[Xposed Framework Modules] Cyboy:
'- Add a delay option for the Long button press before launching the Flashlight' not working on Xgo stock b100

whatever i set delays up to 5 secends ,its gets lit by a simple short press,i tryed update/install then rebooted but nothin changes ,finally uninstalled!

can u fix this?
[Xposed Framework Modules] _jis_:
But this could be optional. Some users have SVoice disabled anyway including me. Maybe the home button will be able to wake up from deep sleep with less problems than volume buttons, because I never have any problem to wake up my phone from deep sleep with power on button :) But I am just speculating here...

Great, because I have two problems with the 1.4.0 version: without torch helper I cannot wake up phone from deep sleep and sometimes torch module force close after unsuccessful try to switch torch on I switch phone on.

Is it possible to use the same button for switching off as for switching on? It'll be more handy to be able to do both operations without sliding finger to another button.

When I get my SGNII 4.1.2 in my hands for the first time I soon noticed that Samsung's built in Assistive Light widget switch on the light with lower intensity than third party apps. So there must be some way to get at least two levels of light. I can imagine that selection of desired light level could be implemented by how long I press torch switching on button, shorter - lower level, longer - higher level.
[Xposed Framework Modules] HyperEscape:
Hmm...already been using it. Also have the WanamLite 4.2.2 running on my Galaxy S-IV.

Have a couple of suggestions though :

1.Please add more features to it. Like there are in the Tesla app. Something like selectable strobe frequency, morse code flash, and control for the intensity of the flash.

2. Please add an option in the Wanam Xposed module to select our own flashlight app, when long pressing the volume-up button. This way we can choose whichever app best suits us.

Thanks.
[Xposed Framework Modules] Craniotomy:
+1, update to wanam xposed module, lock screen, hidden torch light, please more options. Thanks.

POWERED by the ELITE MASTER!
[Xposed Framework Modules] srk_srinivas:
it is there in the application
[Xposed Framework Modules] Richard_10:
force restart with v1.4 on note 3 n9005 TW 4.4.2
[Xposed Framework Modules] wanam:
Make sure it's not interfering with any other xposed module? check revoked permissions if you are using any permissions manager App (Greenify...)

5 seconds should be fixed now on 1.4.1

I have a bad news for this one, it seems impossible to do because Android does NOT broadcast volume button press on Deep sleep, so there no way to intercept this event!

Let's stop here :D , here is the new update 1.4.1 with a few fixes:

- Fixed 5 seconds long press delay

- Add an option to remove my App Ads

- Acquire a Wake-lock for 3 seconds to properly release the Camera Flashlight

- Added Korean translation (Thanks to Splendid)

- Few other fixes
[Xposed Framework Modules] SketchyStunts:
working great on my Evo 3D running 4.3 Thanks, this is going to come in handy! :D
[Xposed Framework Modules] aamir2day:
nice work

just wanted to know if it is compatible with note 3 sm n900...
[Xposed Framework Modules] noidtrue:
Installed on my Nexus4, does not work at all. I have app settings, Gravitybox, Modaco Toolkit and Greenfy installed. Do I have to install Wanam Xposed to make it work?
[Xposed Framework Modules] wanam:
No, it may conflict with other modules or get revoked Camera permission.
[Xposed Framework Modules] ruelle:
Please add an optional to choose home button!! ;)

Thank you!!
[Xposed Framework Modules] roy72:
Works like a charm running tw 4.4.2 thanks
[Xposed Framework Modules] SapoPT:
Doesn't work on Xperia Go 4.1.2
[Xposed Framework Modules] noidtrue:
Thanks for replaying. Does this mean that I have to find which module is taking control of the camera?

Looks like that the Gravity tools may be the one, I'll try to deal with it and see how it goes. :confused:
[Xposed Framework Modules] DudePharaoh:
works perfect on my galaxy round (G910S)

Thank you
[Xposed Framework Modules] wanam:
Greenify may revoke Camera and Wakelock permission for my module.
[Xposed Framework Modules] sumit227:
everything is fine before this update but now Sometimes it works Sometimes not.
[Xposed Framework Modules] dr30ma:
Runs perfectly on Samsung Galaxy S2 4.1.2
[Xposed Framework Modules] wanam:
You updated from which version? I guess you were using the earliest updates which keep a partial wakelock.
[Xposed Framework Modules] sumit227:
I updated from 1.4.0 to 1.4.2
[Xposed Framework Modules] marbulas:
In the case of Galaxy Note 3(SM-N900S), this command is the best way to maximize the brightness of rear flash.

echo 15 > /sys/class/camera/flash/rear_flash

0 is off, 15 is the brightest.
[Xposed Framework Modules] steve.rand:
I did the recent update, which mentioned something about releasing the flash better.

It still works only once, then forever after does nothing except shows me "closing flash".

Note 2 4.3 Sasmung ROM rooted.
[Xposed Framework Modules] TheOtherTiagoTiago:
Would it be possible to make it turn on if you press Volume-Down then Volume-Up then repeat a few more times? I think this could allow the light to be turned on faster than long-hold, while still providing good accidental triggering protection, and wouldn't interfering much with music volume.
[Xposed Framework Modules] VALYYYY:
For me it does not work at all. I think it is not compatible with "Physical Control Button Music". Can you make it compatible?
[Xposed Framework Modules] dimiav:
working great on galaxy s3 i9300 with temasek's unofficial CM kitkat rom.

can you please add option to hold home button to start torch (more convenient for phones with physical home button)
[Xposed Framework Modules] SKAm69:
Great idea but it will be conflicting with CM's skip track feature. Can it be reconfigured to use with other hw buttons? (such as menu, search, home or back)
[Xposed Framework Modules] horustubes:
cant install

I get an "out of memory" dialog when trying to install, have tried several times. I am not out of memory.

Other modules install without incident.

Razr Maxx JB 4.1.2
[Xposed Framework Modules] JerryGNYC:
+1 ^ what he said! ^ :D
[Xposed Framework Modules] Zoot_17:
Definitely, one of the most useful Xposed Modules for my. It works great in Xperia S 4.1.2
[Xposed Framework Modules] leyneli:
I didnt use on mtk phone. It says you dont have flash. But my phone has flash. ???
[Xposed Framework Modules] BenGentle:
Note 3 (SM-N900T) ticks the volume down one notch while the flashlight turns off at the same time.

I second the home button feature made as an addition. That way if you add a custom app-launch feature, maybe I could use volume up button to power the flashlight on and launch an app and I could use the home button to power the flashlight on without launching a custom app.
[Xposed Framework Modules] sutobe:
I tried this module after the Torch integration in Wanam Kit wasn't doing it for me (see my post in the Wanam Kit thread).

What I like about the torch module is that you can set up several things you can't in Wanam Kit, but unluckily the torch doesn't work properly on my Nexus 5 with Kitkat 4.4.2 and stock rom.

It works for a while, but then it seems the deep sleep mode kicks in and the torch can't be brought back to life. Only a restart of the phone works.

It also leaves a process open in the task bar after you turned the torch off, like I asked in the Wanam Kit Thread, can this process be killed automatically?
[Xposed Framework Modules] Szadzik:
Works great on I9500 4.4.2
[Xposed Framework Modules] NeoXTC:
hmm on S4 and this works but if after awhile (think when phone goes to deep sleep) it doesn't work. If I wake up the phone and then turn it off and press the button it works again.

So guess it can't wake up from deep sleep?
[Xposed Framework Modules] davelee1054:
Yes, that behavior is by design.