How to toggle flashlight torch with physical button when screen is off? - OnePlus 3 Questions & Answers

Hi,
Is there an xposed module, app (rooted or not) or any other trick to give me the option to turn on flashlight torch when I press and hold power button even when the screen is off,
PS , running Cm13
Many thanks!

There is a xposed module named "xposed torch" that worked on my z1c
But on the 1+3 it seems to be broken, it just softreboot itself everytime i try to switch on my flashlight with it.. so i sticked with the "V" gesture

Actually I want this on my O+X , does not seem to work, I have tried the following,
Gravitybox MM
Sense for xposed
Xposed torch
Play store apps (out of frustration)
Others
I don't know if such thing is possible with Tasker, so maybe some1 will help with that
Also, there was a Moto X feature called Chop Twice for flashlight , is there a way to make that possible on AOSP Roms?
Many thanks!

The ResurrectionRemix ROM supports that I think...

ExtentedByte said:
There is a xposed module named "xposed torch" that worked on my z1c
But on the 1+3 it seems to be broken, it just softreboot itself everytime i try to switch on my flashlight with it.. so i sticked with the "V" gesture
Click to expand...
Click to collapse
Kharabsheh said:
Actually I want this on my O+X , does not seem to work, I have tried the following,
Gravitybox MM
Sense for xposed
Xposed torch
Play store apps (out of frustration)
Others
I don't know if such thing is possible with Tasker, so maybe some1 will help with that
Also, there was a Moto X feature called Chop Twice for flashlight , is there a way to make that possible on AOSP Roms?
Many thanks!
Click to expand...
Click to collapse
Xposed Torch by Wanam works for me

Kharabsheh said:
Hi,
Is there an xposed module, app (rooted or not) or any other trick to give me the option to turn on flashlight torch when I press and hold power button even when the screen is off,
PS , running Cm13
Many thanks!
Click to expand...
Click to collapse
xposed additions is the app you are looking for. I have OP3 myself and use this module for media skipping etc None of the other modules seem to work
hit thanks if I helped u

GravityBox MM works for me. Locked, screen off, power button hold and press - flash on.

arushdude said:
xposed additions is the app you are looking for. I have OP3 myself and use this module for media skipping etc None of the other modules seem to work
hit thanks if I helped u
Click to expand...
Click to collapse
Be careful if your are on OOS when you try to use Xposed additions. There are some bugs,
1. Xposed additions will make feedback vibration of touch buttons unavailable;
2. Double click power button to open camera quickly is not available anymore;
3. Maybe there is little delay when you use 'volume-'+'power button' to make a screenshot.

Iceyogurt said:
Be careful if your are on OOS when you try to use Xposed additions. There are some bugs,
1. Xposed additions will make feedback vibration of touch buttons unavailable;
2. Double click power button to open camera quickly is not available anymore;
3. Maybe there is little delay when you use 'volume-'+'power button' to make a screenshot.
Click to expand...
Click to collapse
true, but i use it for media controls and direct dial on triple click of power button for someone special as well.. so i prefer all these over the camera shortcut provided by OP.

im using custom slider xposed module to turn on and off flash light

Xposed Torch by Wanam does work at the beginning but after being in standby a while it doesn't launch the torch. from my perspective there isn't a sufficient solution that does fully work and does not break anything else.

arushdude said:
xposed additions is the app you are looking for. I have OP3 myself and use this module for media skipping etc None of the other modules seem to work
hit thanks if I helped u
Click to expand...
Click to collapse
Do you use xposed additions for Screen Off actions? I'm curious how reliable it is while the screen is off.....does it sometimes not trigger if you have had your screen off a while?
Have you tried Xposed Physical Button Music Control module? Serves almost identical purpose.....but I occasionally run into the issue I described. I'll Re-Map a Volume Up command (while screen off) to do some action.....sometimes it won't trigger if the screen has been off a while. Anyways, I'll be doing some extensive testing between these two (almost identical) modules and report back which I find more reliable/stable. I've used Xposed Physical Button Music Control for a LONG time and noticed the screen off actions are a bit flakey
http://forum.xda-developers.com/xposed/modules/mod-physical-button-music-control-1-8-t2620777

Stupifier said:
Do you use xposed additions for Screen Off actions? I'm curious how reliable it is while the screen is off.....does it sometimes not trigger if you have had your screen off a while?
Have you tried Xposed Physical Button Music Control module? Serves almost identical purpose.....but I occasionally run into the issue I described. I'll Re-Map a Volume Up command (while screen off) to do some action.....sometimes it won't trigger if the screen has been off a while. Anyways, I'll be doing some extensive testing between these two (almost identical) modules and report back which I find more reliable/stable. I've used Xposed Physical Button Music Control for a LONG time and noticed the screen off actions are a bit flakey
http://forum.xda-developers.com/xposed/modules/mod-physical-button-music-control-1-8-t2620777
Click to expand...
Click to collapse
xposed additions works for me perfectly all the time,be it screen off or screen on..
PBMC didnt work for me at all.. i tried it first for mapping music controls when screen is off but nothing went right...
i tried several modules but in the end xposed additions was the best of them all...
hit thanks if I've helped you

Here is my comparison so far for both Xposed Modules (Physical Button Music Control vs Xposed Additions)
Both apps have reliability issues with Screen Off triggers. To demonstrate, keep your screen off and don't touch your phone for quite a while (30+ minutes at a minimum). Now try to do a Screen Off trigger. It likely won't work. Now turn your screen on and off again. Try a Screen Off trigger immediately. It will work. So obviously, something is disabling/sleeping these apps after the phone goes idle for a while thus preventing these Screen Off triggers from working. I have no idea how to solve this. I've already added both apps to the Whitelist for Doze battery optimization. It is rather frustrating having this issue.
Both apps are NOT able to use the Home Button as a trigger while the screen is off
Xposed Additions CANNOT use the Home Key as a trigger....period. PBMC can.
Seems PBMC does not function on OOS....but it does work on CM based ROMs.
Both apps can play nicely together. So if you like specific things from both apps, you can use both.
Conclusion....they both perform pretty equally. I'll continue to investigate the reliability issues. There has GOT to be something we can do about this. I might write the xposed additions developer since he seems to be a OP3 user.

I use Gravitybox MM on OOS 3.2.7 and don't have any problems.
Sent from my ONEPLUS A3000 using XDA-Developers mobile app

Related

[Q] Torch on h/w button

I have an unrooted, locked, stock KitKat Z1c.
Is there a hack / mod that allows me to use a h/w button (like longpress on power or similar) to engage the torch without powering on the phone?
My old HTC used to do this, but I think it was a modification supplied by the Viper ROM. So, is this something that requires a completely different kernel/ROM or is an app sufficient?
You can do it with Xposed and GravityBox mod. But root is required for Xposed
OK, thanks a bunch!
I just checked now, you have to power on the screen first though.
I will look into it once I am rooted. I am sure I can find a way to make it work sufficiently for me
I think I know and understand what your requirements are, and I also was wondering the same thing.
A flashlight/torch is handy when you need it, and you don't want to have to unlock the phone one handed in the dark, when you need the torch the most, right?
The solution working best for me at the moment is using a flashlight widget on the lock screen. Not only that, re-order the widget so that, instead of getting the clock widget when pressing power, you get the flashlight widget placed in the middle, thus the default.
I don't use password or pattern lock on my phone, just the swipe to unlock.
Gravitybox (an xposed module) let's you hold volume down to activate the torch with the screen off or on the lockscreen.
Sent from my D5503 using xda app-developers app
Sent from my D5503 using xda app-developers app
Thanks again to the folks who replied. Now after rooting and digging into Xposed I have also found a dedicated module (called Xposed Torch). Gravitybox can also do it indeed, but only from lockscreen. The other one can fire it up on long press of h/w button without even powering on the screen, this is what I was looking for.
Walter_White said:
Thanks again to the folks who replied. Now after rooting and digging into Xposed I have also found a dedicated module (called Xposed Torch). Gravitybox can also do it indeed, but only from lockscreen. The other one can fire it up on long press of h/w button without even powering on the screen, this is what I was looking for.
Click to expand...
Click to collapse
Lol use the thanks button!
Sent from my D5503 using xda app-developers app
lol, I did, see post #2
Using an app called Torchie, just press both 'volume buttons' together to turn on/off torch anytime. It runs as a background service and just works anytime, even when screen off (if enabled from Torchie Settings). It kinda make your phone feel like a conventional battery operated torch. No root required.
https://play.google.com/store/apps/details?id=in.blogspot.anselmbros.torchie
XDA Thread here: http://forum.xda-developers.com/android/apps-games/app-torchie-torch-volume-buttons-anytime-t3270230

[GUIDE] Control media player using volume buttons (and other tweaks)

Greetings,
I just wanted to share some tweaks that I've done on my phone to make it much more user-friendly.
Disclaimer: I am not an android expert, until two days ago I had no idea how to root a phone. I realise some CM and other roms can do some of this stuff, but from my linux days I didn't want to go down this road.
Click to expand...
Click to collapse
ROM: This works with the stock Galaxy Y rom, and can be adapted to pretty much any Android phone, I think.
The Main Event: Media control using hardware buttons
1. Root your phone.
2. Install the XPosed installer backported by liudongmiao, found as an attachment from the following link: http://forum.xda-developers.com/showpost.php?p=44034334&postcount=1
2.1. Using the installer, download and install the XPosed framework. For more help on this see this video by galaxyyarchive (the link in the description did not work for me) https://www.youtube.com/watch?v=YsmQsP-lDWU
3. Using the Xposed installer, you will need to download and enable the module Xposed Additions. I also highly recommend the App Settings GB module.
4. Once it's all installed and rebooted, open the Xposed Additions app. Click on Buttons, Add New Key. Press the key you want. Add a condition (screen on / off / lock screen). Select the actions. Repeat this for all the keys and actions that you would like!
How I have my phone configured: Hold volume up to play/pause (regardless of screen condition). Hold volume down to go next song (regardless of screen condition). Hold back to go previous song (unless the screen is off).
It works flawlessly for me, never had unexpected results.
Problems / Tweaks
This method can not control the stock music app!. Most other players seem to work, I like to use RocketPlayer. It also works with pandora and jango.
On my phone, holding any of these buttons will start rocket player, even when the screen is off. So don't accidentally hold down volume down when you desperately want silence!
Do not install the Xposed framework or modules on the SD card (link2sd). They need to be loaded on boot.
How to prevent the screen turning on
1. To prevent media controls from waking the screen, you will need to edit a few files. Using root explorer or similar, navigate to /system/usr/keylayout
2. Open each of the files, and wherever it says VOLUME_UP or VOLUME_DOWN, remove the word WAKE from the same line.
3. Reboot.
Small problem
Rocket player has a really cool lock screen with media control, which works great together with the stock lock screen. However, when this is on, the phone will wake regardless of the above changes, when pressing volume buttons.
Camera Tweaks
If you install the App Settings GB module in XPosed, you can tick the box "show when locked" on the camera. Now when the camera is open and you lock the screen, when you wake the phone you will still be in the camera app! Close it and the screen is still locked.
This App also allows other handy tweaks, like forcing auto rotation or full screen (or not) in any application. Like Gallery!
I've also set holding menu to open the camera using XPosed Additions when the screen is on.
I hope this information will be helpful to someone! All the above, together with link2sd and juicedefender have made me like my phone again!

XPosed modules seem to do very little on Amazon Fire phone

IMO - The few that i have tried - Theme Engine, Xposed Additionas, HDXPosed.
Anyone else found issues with using any?
Greenify works fine so far. Haven't tried others.
Greenify, GEL Settings (MoRe Google Now Launcher Settings) and XStana
I tried Xposed Additions to disable the firefly key but it doesnt register. I Contacted the person that made the plugin
I installed and activated HDXposed, how to we know it's working ? I keep getting Firefly and the amazon appstore reactivate by themself and auto-update. I try to desactivate the auto-update and nothing working so far. Do I need a another module ?
For deactivating: Titanium.
Nothing will bei anymore reactivate
For key remapping, I used Physical Button Music Control. I was able to remap volumes and camera button.
I tried remapping home, but it doesn't pick that home is getting pressed.
hydromän said:
For deactivating: Titanium.
Nothing will bei anymore reactivate
Click to expand...
Click to collapse
Sorry for the stupid question lol but is it the titanium app on google play? Pro or free version?
rich8511 said:
For key remapping, I used Physical Button Music Control. I was able to remap volumes and camera button.
I tried remapping home, but it doesn't pick that home is getting pressed.
Click to expand...
Click to collapse
Can you post a link to that app? I can't find it in the app store.
I am using CM11 on my fire phone, and would like to map something to the camera quick launch button.
Is Xstana working? Sure I can change the icons but I still don't see the wifi/bluetooth and notification icons. Is there a way to make it work with fireos short of installing Cyanogenmod? Thanks

Hardware Button remap?

hey, i just wanted to remap my buttons with the gravitybox xposed module but that sadly didnt work. looks like some gravitybox options dont work with freedomOS or stock.
is there any other module you know that allows me to remap m buttons?
i want to open menu with single click on menu button and with long press opening the default app list.
and also i want to close apps with long pressing the back button.
any suggestions?
Edit: found a module that works myself. -> Xposed Additions
Try this
http://forum.xda-developers.com/showpost.php?p=68477822&postcount=8
worked fine, thank you!

[MAGISK]MiA1 BoX - Disable led light of hardware key

Hi there. I love this phone but no matter what i use hardware key or software one i just hate those lights at the bottom of the phone.
I just like the mia1 as a blackbox so i made a simple magisk module to disable them with a simple echo cmd.
I made this for my personal use but before i searched on web if there was any other solution, and nothing was made recently.
The module is tested on a stock mia1.
It will work on other phones or mia1 rom if the kernel have the same path to the file i use. Testing won't bite as if it doesn't work nothing will break.
Many thanks to this thread and guys out there
https://forum.xda-developers.com/mi-a1/themes/root-navigation-light-control-t3712686
Nice! It worked for my Mi A1 with Pixel Experience 10, thank you so much!
Only turned off the light, how to disable the function as well?
afrizal87 said:
Only turned off the light, how to disable the function as well?
Click to expand...
Click to collapse
Using the gesture mode from android 9 will desactivate the button function.
Did you mean two buttons? I do activated that, but still working both physically and navbar aswell
afrizal87 said:
Did you mean two buttons? I do activated that, but still working both physically and navbar aswell
Click to expand...
Click to collapse
If you're on stock rom enabling the navbar will desactivate the button function but not the led light.
Did a modify from another module that disable capacitive navigation buttons completely and the backlight and enabling navigation bar (build prop edit) for stock. Because when I pick the phone and accidentally tap on recent button, the screen turns on.
File in attachments. (That can be counted as update of this module)
EDIT: installing any other magisk modules that include init.d (like Cloudflare Magisk module) will enable the button lights. (but still the buttons will be disabled)
Thanks for this, it works on my Le Max 2 . ?
Dısable charcing led mod please! Thanx you
Working in stock ROM android 9

Categories

Resources