[Request] [Xposed] Module to Swap Power Button With Vol+ - Verizon HTC One (M8)

The new m8 just got root, and I'd like to see if anyone could fix the issue i have with the hardware key placement. Specifically, the position of the power button annoys me quite a bit. On the old One it was at least accessible through your index finger, but the m8 must have been designed by lefties!
I'm looking for a module that would swap the function of the power key with the vol+ key to see if that will fix my little hangup with this phone. No pun intended.
Thanks!

fronc said:
The new m8 just got root, and I'd like to see if anyone could fix the issue i have with the hardware key placement. Specifically, the position of the power button annoys me quite a bit. On the old One it was at least accessible through your index finger, but the m8 must have been designed by lefties!
I'm looking for a module that would swap the function of the power key with the vol+ key to see if that will fix my little hangup with this phone. No pun intended.
Thanks!
Click to expand...
Click to collapse
I'm surprised this isn't a bigger complaint amongst m8 users. Well, if anyone finds anything, please let me know! Thanks!

fronc said:
I'm surprised this isn't a bigger complaint amongst m8 users. Well, if anyone finds anything, please let me know! Thanks!
Click to expand...
Click to collapse
I'm also not a fan of the power button being switched. At least we can double tap the screen to unlock. Cuts down the usage a bit.

Frankie1588 said:
I'm also not a fan of the power button being switched. At least we can double tap the screen to unlock. Cuts down the usage a bit.
Click to expand...
Click to collapse
Agreed, but it doesn't help when wanting to lock it quickly with one hand after the phone has already been unlocked. I'm more interested in that function than waking it. But glad to see I'm not alone in this.

fronc said:
Agreed, but it doesn't help when wanting to lock it quickly with one hand after the phone has already been unlocked. I'm more interested in that function than waking it. But glad to see I'm not alone in this.
Click to expand...
Click to collapse
I use this https://play.google.com/store/apps/details?id=com.katecca.screenofflock in tandem with Nova Launcher and just assign a gesture to it which in turn will turn the screen off and lock. Works great.

I just use gmd gesture control to do a three finger downward swipe to shut the device off.
Sent from my HTC6525LVW using Tapatalk

Izeltokatl said:
I just use gmd gesture control to do a three finger downward swipe to shut the device off.
Sent from my HTC6525LVW using Tapatalk
Click to expand...
Click to collapse
For my purposes, I'm trying to find a one-handed solution. So 3 fingers is no help when the phone is in-hand. But thanks for sharing your idea!
Sent from my HTC6525LVW using Tapatalk

What I did was use gravitybox > navigation key actions and then set back key long press to go to sleep. Works perfect but I am left handed so you might want a different key.

krazya said:
What I did was use gravitybox > navigation key actions and then set back key long press to go to sleep. Works perfect but I am left handed so you might want a different key.
Click to expand...
Click to collapse
I think you're on to something.... I'm going to experiment with this. Thanks!

steelersmb said:
I use this https://play.google.com/store/apps/details?id=com.katecca.screenofflock in tandem with Nova Launcher and just assign a gesture to it which in turn will turn the screen off and lock. Works great.
Click to expand...
Click to collapse
This is how I do it. Just a single finger swipe upwards shuts my screen off, then a double tap turns it back on. Works great for me!
Now if only someone could figure out how to get double tap (to wake) working in landscape mode.

Hey guys -- I just posted a fresh thread for this, but since I assume you all have weaksauce+xposed working...
After my soft-reboot to install xposed, wifi would not turn on. Did anyone else have anything similar happen?
I did weaksauce, phone off/on, install xposed, full reboot (accidentally), enable xposed, soft reboot, then no wifi when the phone came back up.
Any ideas?

Related

[KERNEL] Slide to Unlock

So I came across this in the EVO 3D forums. How hard do you think it will be to port this to our device?
http://forum.xda-developers.com/showthread.php?t=1346760
It is in development already. See bricked kernel thread for more info.
Sent from my Sensation
Anyway to enable this?
http://forum.xda-developers.com/showthread.php?t=1269247
And gnex has it
Both Bricked and TamCore have this feature.
Bricked: http://forum.xda-developers.com/showthread.php?t=1269247
TamCore: http://files.tamcore.eu/android/?dir=tamcore-kernel
Bricked gives you an option to enable it during installation, while TamCore requires you to flash a zip to enable it, which you can get on the same page, under the name "sweep2wake_enable.zip".
A few kernels already have it.
I am already using it... :angel:
Already using it on bricked!
It's nice because you don't have to constantly use your power button to turn on device ! I really love it! It's so easy.
Sent from my HTC Sensation 4G using xda premium
Is there any way to make it more efficient when locking the device? I find that it closes the current application and goes to the home screen (as you swipe the back and home keys when locking your device).
This is quite annoying when using an app like gmote when I may need to immediately unlock my phone again to pause/play adjust volume etc, as I find that the app has been terminated when putting the device to sleep.
I really like the idea of not having to mash my power button any more than necessary, so using the sweep to lock would be ideal. I also noticed that even in the demo video of sweep to wake, the menu button gets pressed as the phone is locked (you can see the launcher menu appear for a second before the device locks).
Any suggestions would be appreciated, but I wanted to get some guidance before posting any sort of feature requests in the dev forum.
Thanks guys!
Louer Adun said:
Is there any way to make it more efficient when locking the device? I find that it closes the current application and goes to the home screen (as you swipe the back and home keys when locking your device).
This is quite annoying when using an app like gmote when I may need to immediately unlock my phone again to pause/play adjust volume etc, as I find that the app has been terminated when putting the device to sleep.
I really like the idea of not having to mash my power button any more than necessary, so using the sweep to lock would be ideal. I also noticed that even in the demo video of sweep to wake, the menu button gets pressed as the phone is locked (you can see the launcher menu appear for a second before the device locks).
Any suggestions would be appreciated, but I wanted to get some guidance before posting any sort of feature requests in the dev forum.
Thanks guys!
Click to expand...
Click to collapse
Sometimes it will pull up the power window, it will go back, back out of an app...instead of posting here...post in show-p threads.
It's a good feature, the bricked & faux kernels have it as far as I know!
Sent from my HTC Sensation Z710e using xda app-developers app
Louer Adun said:
Is there any way to make it more efficient when locking the device? I find that it closes the current application and goes to the home screen (as you swipe the back and home keys when locking your device).
This is quite annoying when using an app like gmote when I may need to immediately unlock my phone again to pause/play adjust volume etc, as I find that the app has been terminated when putting the device to sleep.
I really like the idea of not having to mash my power button any more than necessary, so using the sweep to lock would be ideal. I also noticed that even in the demo video of sweep to wake, the menu button gets pressed as the phone is locked (you can see the launcher menu appear for a second before the device locks).
Any suggestions would be appreciated, but I wanted to get some guidance before posting any sort of feature requests in the dev forum.
Thanks guys!
Click to expand...
Click to collapse
Skip pressing the back button, just sweep above the back button like that: __--_ (while locking)
kgs1992 said:
Skip pressing the back button, just sweep above the back button like that: __--_ (while locking)
Click to expand...
Click to collapse
Brilliant idea! This actually works as desired, and it doesn't seem to activate the home button in the sweep/swipe either. Now I just need to get in the habit of skipping the back key.
Louer Adun said:
Brilliant idea! This actually works as desired, and it doesn't seem to activate the home button in the sweep/swipe either. Now I just need to get in the habit of skipping the back key.
Click to expand...
Click to collapse
There's a thanks button.
However, I don't see how this is practical much. I only lock using sweep because it's a good shortcut to exit current app, go to home & luck.

Power Button on HTC OneX

Does anyone know of an existing mod or another way to wake my phone? I would prefer to wake the phone with the volume toggles instead of the power button at the top. ::Small hands::
Any help would be greatly appreciated. Thanks.
wake up "call"
I had wondered about the same thing when i got my one x last week. I find it really inconvenient to wake up the phone using the top button. It seems like you have to put a lot of pressure on it just to actuate it, plus it sits at a weird angle that makes it quite awkward to press. The other concern is the weird placement of the hdmi charger port on the side of the phone instead of the bottom.
Lastly, I find the volume rocker on the right side of the phone placed too close to the center instead of closer to the top (making it easy to press accidentally) and they are much too sensitive. I've lost count of the number of times I've inadvertently increased the volume to the detriment of my ear drums. I did, however, get a Speck case that alleviates that problem, BUT, exacerbates the issue with the power button that is the subject of this thread. its just too hard to actuate the top button with the case on, never mind trying to to take a screenshot using it and the capacitive home button. REALLY awkward...
I've just crossed over from IOS to android so for now I only know iphone. There was an app available from Cydia (app store for jailbroken iphones) that allowed me to assign the iphone buttons to just about anything. I had hoped there was something like this app in Play store but I'm still new to android so I'm having to rely on the members who have been at this for a while.
Well I just found an app in the play store called JustFlip only played with it a little but seems to work on the one x does not use volume but by flipping the phone you can turn it on and off and set how many flips and how fast for it to activate has debug feature but it worked on the first try with default settings have not tested when phone is off for an extended period of time but looks like it has potential will test more and it does not require root
Edit
After playing some more it seems it does not always work and when it does it opens to the app not my home screen. Kinda annoying well it was worth a shot.
Sent from My Nocturnalized Beast
E.Cadro said:
Well I just found an app in the play store called JustFlip only played with it a little but seems to work on the one x does not use volume but by flipping the phone you can turn it on and off and set how many flips and how fast for it to activate has debug feature but it worked on the first try with default settings have not tested when phone is off for an extended period of time but looks like it has potential will test more and it does not require root
Edit
After playing some more it seems it does not always work and when it does it opens to the app not my home screen. Kinda annoying well it was worth a shot.
Sent from My Nocturnalized Beast
Click to expand...
Click to collapse
Thanks for the attempt. I hope there is something out there that will help with this issue.
Widgetlocker has this as a setting
Sent from my Nocturnal HOX
JamesR913 said:
Widgetlocker has this as a setting
Sent from my Nocturnal HOX
Click to expand...
Click to collapse
Do you know if Widgetlocker will work on the HTC one X? I thought the volume toggle only works on specific phones.
Widgetlocker works but I am not using that specific function.
Sent from my Nocturnal HOX
pigtaru said:
Do you know if Widgetlocker will work on the HTC one X? I thought the volume toggle only works on specific phones.
Click to expand...
Click to collapse
The "Easy Wake" function on WidgetLocker does not work on the HOX.
Volume Rocker Wake works on CM9 Alpha 5
I've been using CM9 Alpha 5 for a few hours now and it's great !
The first think I set was the Volume Rocker Wake as the Power Button is not as easy to press when using most cases covering the power button.
To enable it, go to SETTING --> DISPLAY --> VOLUME ROCKER WAKE
it enables waking the phone by pressing the volume rocker EITHER up/down.
There is no way to specify one or the other
However, it works great ! I'm really liking CM9, my only complaint is the missing HTC Camera which was just amazing with the hardware burst (I'm still looking for a way to flash it if that's even possible).
As stated above, CM9 is your best bet. Or if AOKP is ever released for the HOX.

Nexus 4 Power button problem

Hi all,
not if anyone has been the same for a few months but I have problems with the power button . Never work the first time .
Is there any solution that does not involve replacing the switch ?
vballest said:
Hi all,
not if anyone has been the same for a few months but I have problems with the power button . Never work the first time .
Is there any solution that does not involve replacing the switch ?
Click to expand...
Click to collapse
Yes.
- DoubleTap2Wake - slightly higher battery drain
- Proximity sensor wake - slight battery drain
- Volume button wake - no battery drain
The problem with "Volume Button Wake" solution is that it doesnt lock. And yes, you can use DoubleTapStatusBar, but its difficult to lock without looking and you have to be very precise.
Thank you, I must have rooted my telephone for use these applications? sorry for my ignorance
SetPT said:
The problem with "Volume Button Wake" solution is that it doesnt lock. And yes, you can use DoubleTapStatusBar, but its difficult to lock without looking and you have to be very precise.
Click to expand...
Click to collapse
Greenify users can activate the hibernation+lock solution using the Google Search-like swipe up from the navbar. Works like a charm and you don't have to rely on xposed.
vballest said:
Thank you, I must have rooted my telephone for use these applications? sorry for my ignorance
Click to expand...
Click to collapse
take the back cover off , shove some plastic underneath the power button make sure it fits properly , screw tthe cover back on = profit
SetPT said:
The problem with "Volume Button Wake" solution is that it doesnt lock. And yes, you can use DoubleTapStatusBar, but its difficult to lock without looking and you have to be very precise.
Click to expand...
Click to collapse
You can always download a Screen Off app from the app store, and use a custom launcher to bind it to a gesture (swipe up/down, double tap)
Smart launcher got double tap to sleep option, i love it.
I use Power widget to screen locking and voulme key to wake (xposed).

Screen Pinning

On my previous phones and through reading around unpinning a screen required the user to hold both the recents button AND the back button. Does anyone know why the S6 and touchwiz only require you to hold to recents button? My toddlers use my phone for apps and kids youtube but they are constantly unpinning the screen cause of their little hands and they way they hold the phone with their thumb right on the recents button.
With the old M8 ir required both buttons to be held and they never unlocked it on their own by accident.
Anyone know why touchwiz has to be different and if there is a way to enable BOTH buttons to be used to unlock?
Not rooted and fully stock but use tasker. Perhaps there is something I could use with that if anyone has an idea.
Thanks.
flexfulton said:
On my previous phones and through reading around unpinning a screen required the user to hold both the recents button AND the back button. Does anyone know why the S6 and touchwiz only require you to hold to recents button? My toddlers use my phone for apps and kids youtube but they are constantly unpinning the screen cause of their little hands and they way they hold the phone with their thumb right on the recents button.
With the old M8 ir required both buttons to be held and they never unlocked it on their own by accident.
Anyone know why touchwiz has to be different and if there is a way to enable BOTH buttons to be used to unlock?
Not rooted and fully stock but use tasker. Perhaps there is something I could use with that if anyone has an idea.
Thanks.
Click to expand...
Click to collapse
i have to push recents and back buttons to un pin an app with my galaxy s6, idk maybe you have a fake galaxy s6.
maybe you are doing that in the wrong way.
Nope it's a phone direct from my carriers store so it's not a fake.
Also as you can see in the screen shot the instructions say you just need to hold the recent button.
Did you actually check yours? Maybe you are mistaken that you have to use two buttons on your S6.
Can anyone confirm for me what the instructions are exactly on their phone why trying to pin? Lots of views on this thread but no one is chiming in on how their phone works.
Mine says to hold recent button only too. I'm on 5.1.1 and never checked on 5.0.2 so I don't know if Samsung changed it.
What I've done is turn on the 'Use screen lock type to unpin' option so it requires my fingerprint after holding recents.
WahFai said:
Mine says to hold recent button only too. I'm on 5.1.1 and never checked on 5.0.2 so I don't know if Samsung changed it.
What I've done is turn on the 'Use screen lock type to unpin' option so it requires my fingerprint after holding recents.
Click to expand...
Click to collapse
Hi thanks for helping out. I'm on 5.0.2.
I like your suggestion but I only use swipe lock so unfortunately I can't do that.
Maybe I'll see if I can get tasker to do something for me.
Cheers.
flexfulton said:
Can anyone confirm for me what the instructions are exactly on their phone why trying to pin? Lots of views on this thread but no one is chiming in on how their phone works.
Click to expand...
Click to collapse
Mine says recent and back together. I tested it myself and recent alone does nothing but recent and back puts the phone back to normal. I'm on T-Mobile running the latest update 5/1.1
Sent from my SM-G920T using XDA Free mobile app

[APP] Power Button Flashlight (No Root)

Hello, i was recently experimenting with this Project: https://github.com/epeterson320/flashlight
In android studio. Its a flashlight app with no ui you just tap the icon and the flashlight activates, however i added an intent filter to the android manifest allowing the app to be launched with the "Jump to camera" gesture, this allows you to toggle the flashlight on and off with a double tap of the power button even when the screen is locked.
Instructions
Download and install
Lock phone and double tap power button
Enter your PIN or fingerprint
Select flashlight as default app
This will only work on phones that have the "Jump to camera" gesture. For example Nexus and Pixel phones, OnePlus phones and probably more. It will also replace the camera shortcut obviously. Clear defaults to select camera again.
so yeah hope someone finds this useful
Credit to @epeterson320 for creating the original app.
Download below in attached files
Thank you!!! This is amazing.
Christ this is like the one feature that's a deal breaker for me, Xposed torch is great but not seeing Xposed for android 9 yet; and this works well enough. Great thinking and thank you!
Problem
Hello. I have got a problem. Every time the phone is turned off for a longer period, when i double tap a power button camera turns on instead of flashlight. When I turn off the camera and double tam button again, flashlight works. Have anyone got this problem too? (xz1 compact, 47.2.A.8.24)
Edit: I have found out that when i remove password protection everything works
@James_Ward01 would you be willing to share your source code? I want to see if I can get the app to activate without waking the screen.
creeve4 said:
@James_Ward01 would you be willing to share your source code? I want to see if I can get the app to activate without waking the screen.
Click to expand...
Click to collapse
Hi, I will look into getting it for you, but the source code for the original app can be found here
https://github.com/epeterson320/flashlight
James_Ward01 said:
Hi, I will look into getting it for you, but the source code for the original app can be found here
https://github.com/epeterson320/flashlight
Click to expand...
Click to collapse
Thank you! I don't know how I missed the link in the OP.
creeve4 said:
Thank you! I don't know how I missed the link in the OP.
Click to expand...
Click to collapse
No problem
creeve4 said:
@James_Ward01 would you be willing to share your source code? I want to see if I can get the app to activate without waking the screen.
Click to expand...
Click to collapse
The app I have on here for download should work with the screen off as I added both android.media.action.STILL_IMAGE_CAMERA_SECURE
And android.media.action.STILL_IMAGE_CAMERA
Intent filters, the _SECURE one meaning it should work with the screen off. At least this was the case on my Nexus 6p at the time.
James_Ward01 said:
The app I have on here for download should work with the screen off as I added both android.media.action.STILL_IMAGE_CAMERA_SECURE
And android.media.action.STILL_IMAGE_CAMERA
Intent filters, the _SECURE one meaning it should work with the screen off. At least this was the case on my Nexus 6p at the time.
Click to expand...
Click to collapse
It does work with screen off. What I want to accomplish is to keep the screen off when I launch from the lockscreen. I don't want the screen to turn on when I double-press the power button. Maybe this is impossible?
creeve4 said:
It does work with screen off. What I want to accomplish is to keep the screen off when I launch from the lockscreen. I don't want the screen to turn on when I double-press the power button. Maybe this is impossible?
Click to expand...
Click to collapse
Ah, I don't know then, I'm sure it is possible one way or another but I'm afraid getting that to work is beyond me,
Couldn't get it to work with home button on S10 but works perfectly mapped to Bixby button ????
cheffy11 said:
Couldn't get it to work with home button on S10 but works perfectly mapped to Bixby button ????
Click to expand...
Click to collapse
Yes Samsung don't allow the power button to be remapped unfortunately. Glad you found a use for it though.
This works great on the pixel 5, thanks!!
Confirmed, I was using it as well on pixel 5 until now, thanks!
However, new problem :s I couldn't resist trying out Android 12 Beta 3.1 and then no power button access to flashlight anymore.
Same deal for me : Pixel 4a, was using this app daily when I was under Android 11, did the update to Android 12, not working anymore... Sad
g0t.milkk said:
Same deal for me : Pixel 4a, was using this app daily when I was under Android 11, did the update to Android 12, not working anymore... Sad
Click to expand...
Click to collapse
You could use System Power:
https://forum.xda-developers.com/t/...-simple-and-intuitive-user-interface.4248221/
Toggle Flashlight on/off : NO Root is needed
biontx said:
You could use System Power:
https://forum.xda-developers.com/t/...-simple-and-intuitive-user-interface.4248221/
Toggle Flashlight on/off : NO Root is needed
Click to expand...
Click to collapse
Sorry but I'm not sure to understand how your app may help : We're talking about enabling the flashlight using physical button shortcut.
Maybe I missed something but for me that's not what your app is doing, is it ?
Anyway, I'm using Torchie now and it kinda work : You enable it by pressing Vol+ AND Vol- at the same time, but it ONLY work when you're on the lockscreen and the screen is on.
So : "Power" to wake the screen, "Vol+ and Vol- together" to turn the light on or off
If anybody find something better, let us know. For now, this is a little cumbersome but it's working.
The Tap Tap app on GitHub works for flashlight by double tapping the back of the phone.

Categories

Resources