[Q] Torch on h/w button - Xperia Z1 Compact Q&A, Help & Troubleshooting

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

Related

Is there any app to unlock screen easily?

Hi,
Is there any app to unlock the screen of HTC droid Incredible 2? To unlock the screen every time I have to push the power button, which I fear it may spoil the button. So, guys please suggest me any other way to unlock my phone (HTC droid Incredible 2) screen.
Most Roms usually have options to use the volume keys to unlock the phone. Its normally found in the tweaks or rom features via the settings menu.
Sent from my VivoW using Tapatalk 2 Beta-5
^^This.
And you do know that that is the reason the power button is there, right? It's kinda like saying you don't wanna use the door to your house, and use the window instead because you don't want to wear out the door.
Amphibliam said:
^^This.
And you do know that that is the reason the power button is there, right? It's kinda like saying you don't wanna use the door to your house, and use the window instead because you don't want to wear out the door.
Click to expand...
Click to collapse
Well, having only one entry to house is very dangerous, you should also have a backup door: Just kidding
hammadfaisal007 said:
Hi,
Is there any app to unlock the screen of HTC droid Incredible 2? To unlock the screen every time I have to push the power button, which I fear it may spoil the button. So, guys please suggest me any other way to unlock my phone (HTC droid Incredible 2) screen.
Click to expand...
Click to collapse
i believe widget locker has that option to unlock by the volume keys also there is a mod you can flash to the same.
you can also install mi locker wich gives you a bunch of different locks from miui alone with the option to unlock the phone by the volume keys
https://play.google.com/store/apps/details?id=com.miui.home&hl=en
ubuntunerd said:
i believe widget locker has that option to unlock by the volume keys also there is a mod you can flash to the same.
you can also install mi locker wich gives you a bunch of different locks from miui alone with the option to unlock the phone by the volume keys
https://play.google.com/store/apps/details?id=com.miui.home&hl=en
Click to expand...
Click to collapse
Thanks for your support. I tried MiLocker, it is good but has lot of bugs. Can you suggest any other locker which unlocks when pressing music keys?
Widget locker the only bad thing is that is a paid app there is also a no lock app. I'll look for the link and repost it
sent from my mind with instant transmition
wouldn't pressing the volume keys all the time ruin the volume keys?
upsidedowner said:
wouldn't pressing the volume keys all the time ruin the volume keys?
Click to expand...
Click to collapse
Yep, same with the power button
Sent from my Incredible 2 using XDA
Guys I installed this app "Tap Tap App". You can lock and unlock your phone with the sensor. It is working properly.
Code:
https://play.google.com/store/apps/details?id=net.maicas.android.wsleep&hl=en
hammadfaisal007 said:
Guys I installed this app "Tap Tap App". You can lock and unlock your phone with the sensor. It is working properly.
Code:
https://play.google.com/store/apps/details?id=net.maicas.android.wsleep&hl=en
Click to expand...
Click to collapse
Android 4.0.4 unsupported !!
I can code the wake on volume keys MOD to ANY ROM, PM me if you need this..
Personally I can't run a ROM without this MOD, it's much easier for me to use the volume keys, and i use a widget to lock the phone, so i never even touch the power button.
andybones said:
I can code the wake on volume keys MOD to ANY ROM, PM me if you need this..
Personally I can't run a ROM without this MOD, it's much easier for me to use the volume keys, and i use a widget to lock the phone, so i never even touch the power button.
Click to expand...
Click to collapse
I concur. What widget do you recommend to lock the screen. Thanks
Sent from my Incredible 2 using xda app-developers app
Gr8Jeepin said:
I concur. What widget do you recommend to lock the screen. Thanks
Sent from my Incredible 2 using xda app-developers app
Click to expand...
Click to collapse
Screen off & lock
Been using for awhile with no issues...
Sent from my vivow using xda app-developers app
is there any ways to unlock screen by the touch key ? ^^, i want to use all key to save all of them ^^
The app "No Lock" gets rid of your lock screen completely, so all you need to do is press the power button or a volume button if your ROM will let you. It is pretty cool, and should work without being rooted.

Camera on lock screen?

Is it possible to enable the camera widget on the lock screen? I wasn't able to find any settings or a widget that I can add manually. I have a stock LGLS990. The camera was the tipping point for buying this phone, so it'd be nice to get the most use out of it.
Sent from my LGLS990 using XDA Premium 4 mobile app
stealthdave said:
Is it possible to enable the camera widget on the lock screen? I wasn't able to find any settings or a widget that I can add manually. I have a stock LGLS990. The camera was the tipping point for buying this phone, so it'd be nice to get the most use out of it.
Sent from my LGLS990 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
You can hold down the volume down button while screen is off to quickly launch the camera. Aside from that, there are app shortcuts on an unsecure lockscreen. So if you use a secured lockscreen, the volume down shortcut is your best bet.
4ndroid99 said:
You can hold down the volume down button while screen is off to quickly launch the camera. Aside from that, there are app shortcuts on an unsecure lockscreen. So if you use a secured lockscreen, the volume down shortcut is your best bet.
Click to expand...
Click to collapse
This works, thanks! My experience is the screen needs to be on when locked, and then pressing the Volume-Down button will launch the camera. Not as intuitive as swiping the lock screen widgets like Stock AOSP or CM, but still much quicker and more convenient than having to unlock the phone.
or set one of the quick access apps to the camera app :good:

Fingerprint-only unlock working if using lock widget with root (updated for Nougat)

--ORIGINAL POST AND TITLE--
Title: Fingerprint only unlock not working if using lock widget
I'm using the app called Power Toggles, and when I lock my phone with the toggle, it will ask for my password pattern when I try to unlock with my fingerprint. If I use the power button to lock, the fingerprint unlock works fine.
--UPDATE (Marshmallow)--
Since I rooted, I can unlock my phone using my fingerprint when locking it using the below methods. Interested to hear from others, and I can update this list. Looks like a few on Nexus 6P have had issues, but let me know if you've tested on 5x, 6P, or both.
To be added to the list, you have to be able to lock the screen using the method listed. It has to be a true lock, not a short dimming of the screen like a few widgets do.
Phone state when tested: Stock OS, systemless root, custom kernel (Franco).
- Nova launcher gestures (e.g. double-tap to turn screen off) - 5x
- Power Toggles app - 5x
--UPDATE (Nougat)--
Phone state is stock OS, systemless root, Franco kernel.
Working:
- Nova launcher gestures (e.g. double-tap to turn screen off)
- Tasker "keyevent 26" command. Using this with a custom Power Toggles tile works, but there is a noticeable delay between pushing the button and the screen turning off. The delay varies.
Not working:
- Power Toggles. The native screen-off function requires a pattern/PIN/etc. to unlock. There is a feature that allows you to create a custom tile that links to Nova's double-tap function, but there's a bug that causes the app to crash when you try adding that button.
Yup, just tested and getting the same result.
Yep noticed that within the first hour when using Screen Off app.. I used a double tap Nova gesture to trigger the app and turn the screen off but using the fingerprint reader to unlock, it asks for the PIN/Pattern anyway
very annoying
Evidently something in Android causes those apps to "force" it to the lock screen. On prior devices without the finger print scanner, using those apps would always trump any sort of screen lock timer (like if you have it set to go off, but not lock until 5 minutes later, so you would do a regular swipe to unlock).
I don't have mine yet but know that will annoy me as I use that all the time.
I've tried a variety of screen off apps and they all do the same thing you are experiencing. Looks like it will take an app update from someone who has access to one of these phones.
Is it interfering with the fingerprint auth for Android Pay? If not, it may be just what I'm looking for. I want to use Pay, but I don't want my finger to unlock the phone, and I can't seem to find any way to limit what Imprint controls.
Doesn't interfere with Android Pay.
If rooted... Setup a Tasker task that uses the Secure Settings plugin to run command 'input keyevent 26' as root. Create a widget pointing to the task. Fingerprint/Imprint then unlocks phone as expected.
Thanks go to user nsg96:
http://forum.xda-developers.com/showthread.php?p=63465531
Sent from my Nexus 5X using Tapatalk
scottfreeze said:
If rooted... Setup a Tasker task that uses the Secure Settings plugin to run command 'input keyevent 26' as root. Create a widget pointing to the task. Fingerprint/Imprint then unlocks phone as expected.
Click to expand...
Click to collapse
I tried this but it doesn't lock the screen, it just turns it off (at least on my Nexus 6P).
dbareis said:
I tried this but it doesn't lock the screen, it just turns it off (at least on my Nexus 6P).
Click to expand...
Click to collapse
Do you have "Power button instantly locks" enabled in your security settings? "Input keyevent 26" is functionally identical to pressing the power button.
Sent from my Nexus 5X using Tapatalk
scottfreeze said:
Do you have "Power button instantly locks" enabled in your security settings? "Input keyevent 26" is functionally identical to pressing the power button.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
You are probably correct, yes I do have that set but it appears that smart lock overrides that ?
Sent from my Nexus 6P using Tapatalk
This has been my experience as well and it sucks because I was looking forward to never having to use the power button or put in a code with the n5x. I am hoping for this to be fixed somehow.
this one works (experimental) https://play.google.com/store/apps/details?id=com.iglint.android.screenlockpro&hl=en
it is paid one
MODs please delete. Posted in wrong forum.
Thank you
Hi,
There's a android bug tracker report for this here: - star if this is affecting you.
https://code.google.com/p/android/issues/detail?id=191955
---------- Post added at 06:23 AM ---------- Previous post was at 06:12 AM ----------
kamerunka said:
this one works (experimental) https://play.google.com/store/apps/details?id=com.iglint.android.screenlockpro&hl=en
it is paid one
Click to expand...
Click to collapse
Works well - thanks for the spot.
An app called Gravity Screen works, can be set to screen off and lock when placed faced up on a table or a double Tap from home screen to activate short cut "persistent off"
Smart Lock Support in more settings in Gravity Lock needs to be enabled.
I suspected do not using unstock fingerprint app
Sent from my SHIELD Tablet K1 using Tapatalk
Guys try this attached apk. This was made with the AutoInput Tasker plugin to emulate the power button press.
steelorange said:
Guys try this attached apk. This was made with the AutoInput Tasker plugin to emulate the power button press.
Click to expand...
Click to collapse
Does require root ?
UnderXP said:
Does require root ?
Click to expand...
Click to collapse
yes it does

App for volume key softkey

I'm using fosso transparent case and I'm afraid that the hardware keys might give up on me hence I never use them.i use the capacitive keys to lock and fingerprint to unlock but I need some App or a Nova launcher activity so that when clicked the volume menu pops up and I can control any volume I need without using the volume rockers..
Sent from my ONEPLUS A3003 using Tapatalk
abhiiceman said:
I'm using fosso transparent case and I'm afraid that the hardware keys might give up on me hence I never use them.i use the capacitive keys to lock and fingerprint to unlock but I need some App or a Nova launcher activity so that when clicked the volume menu pops up and I can control any volume I need without using the volume rockers..
Click to expand...
Click to collapse
If your rooted then you can use gmd gesture control to bring the volume panel with a gesture.
Or You can get a volume tile in the notification panel with Xposed and gravity box.
I don't know any non root app.
Look for "All in one gestures" app in Play Store.
Don't be fooled by the name: it does what you ask and some other interesting things; no root needed.
Giocarro said:
Look for "All in one gestures" app in Play Store.
Don't be fooled by the name: it does what you ask and some other interesting things; no root needed.
Click to expand...
Click to collapse
That app is freaking awesome Bro. thanks for the suggestion?
Sent from my ONEPLUS A3003 using Tapatalk

How to toggle flashlight torch with physical button when screen is off?

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

Categories

Resources