Side button (volume) unlock screen - Android Software/Hacking General [Developers Only]

Currently I`m using WidgetLocker to unlock screen with volume but I lost default unlock screen from sense who is beautifull so:
WidgetLocker Lockscreen can do it, CM7 rom I heard that can do it so how can they do it? What should us (I`m sure that I`m not the only one who don`t want to use power button to unlock screen or to use some app that keep sensors on) have to do to unlock screen with volume keys? I tried to edit keypad.kl (key 114 VOLUME_DOWN WAKE to WAKE_DROPPED) but on desire S has no effect so if widget locker/cm7 can do this thing maybe someone can help and say what should I have to edit ?

update: after using ButtonRemapper v0.2.4.1:
1.volume +- with wake_dropped = didn`t worked to unlock screen.
2.volume +- binded as power and wake_dropped = when screen was on it worked to make screen off but when screen was off didn`t worked to unlock.
out of ideas :|

Bump
I'm bumping this one.
Yes there are more people who want to use their volume key(s) to unlock to their Sense 3 based lockscreen!
Hope that somebody can come up with an answer!
I'm keeping my eyes on this post.
Cheers,
D.

codryn said:
update: after using ButtonRemapper v0.2.4.1:
1.volume +- with wake_dropped = didn`t worked to unlock screen.
2.volume +- binded as power and wake_dropped = when screen was on it worked to make screen off but when screen was off didn`t worked to unlock.
out of ideas :|
Click to expand...
Click to collapse
i got this working on my htc evo today, here are my changes i made using Button Remapper v0.2.4.1
107 [Endcall] Endcall W_D
116 [Power] Volume Up W
115 [Volume Up] Volume Down W
114 [Volume Down] Power W_D
217 [Search] Search W_D
158 [Back] Back W_D
139 [Menu] Menu W_D
102 [Home] Home W_D
so now my power button is vol up, vol up is vol down, and vol down is power.
im not sure if this will work on your phone, but i dont get to help people much and this felt right up my alley
EDIT: also, i used to use widgetlocker with a sense theme, so you should be able to change it in the custom slider screen, check under themes.

Look HERE for info how to do it.

Related

[Q] Is there a way to remove the 'swipe to unlock'?

Afternoon all,
I had a HTC Magic originally and when you pressed menu button twice it would bring the screen back on and then unlock it.
I am trying to achieve the same functionality on my Desire.
The Desire insists you firstly use the power button to bring the screen back to life & then you must swipe down (which i find a nuisance!) before you are back at the home screen.
By modifying 'bravo-keypad.kl' as below this fixes the first part (so the menu button activates the screen), but it still wants me to swipe down.
key 102 HOME
key 139 MENU WAKE_DROPPED
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
Click to expand...
Click to collapse
To conclude: Is there a way to remove the 'swipe to unlock'? (without using ''Lock Screen Switch'' widget from the market.)
Thanks in advance!
Chris
I use "nolock", free from the Market and it works great on my Evo.
(Not sure if this is the widget you were referring to or not. )
-= SomeHuman =-

Button is not working properly

Hi all
Due to a bug in my HTC Desire, I installed a new ROM. Everything worked fine.
The problem is: My back button, volume down and search does not work.
I noticed in the recovery in key test that worked well.
Still in recovery, if I click on volume down, I change my options. If I click on volume down, it restarts the phone. Also, I have to click the back button to enter an item. Usually it is the power button that makes this task.
It seems that the buttons no longer performs the proper treatment.
Thank you for helping me
I just made a test
Here are the key original maps:
Power 116
Home 102
menu 139
158 back
Search 217
Volume UP 115
Volume 114 DOWN
Those I have:
Power 116
Home 102
menu 139
272 back
Search 272
Volume UP 115
Volume 272 DOWN
someone ?

Xperia J remap volume down button root

Hi,
I was not happy with the small power button, so I took the idea described here for miro device: http://forum.xda-developers.com/showthread.php?p=35801737
and I changed in fih_gpio-keys.kl:
key 114 VOLUME_DOWN WAKE
to:
key 114 SEARCH WAKE_DROPPED
Now volume down key works as search button - so I can unlock device by pressing volume down, and use it as a fast search to Google. I also downloaded LaunchKey
http://forum.xda-developers.com/showthread.php?t=818499
So long press on Volume down will bring me to camera360 app. for photo.
I do not use volume down so often and If I want to set volume down, I just press volume up and on screen I set the level..
(also the value can be change to: key 114 POWER WAKE - after that it works as the power button - but not for the complete power up after shut down... )
So this tip can be useful for anybody, who wish to have another way to unlock Xperia J (I was not happy with the unlock app. on Google play, as they always somehow messed with my lock screen)
Changed minc VOL(-) liked it !
jozka said:
Hi,
So long press on Volume down will bring me to camera360 app. for photo.
Click to expand...
Click to collapse
change mine keylayout and installed LaunchKey.
Useful combo for Xperia J ,since it lacks SEARCH key +1

[Q] Galaxy S2 Power Button Failure

My sprint epic power button failed and I am trying to fix it by moving the function of the power key to the volume up or down key and setting the power key function to null. I have several questions on how to do this.
1. I know that I will have to gain root access but is there a way to do this without installing a custom kernel?
2. If i do end up having to root hte thing how do I get into download mode if the power key is not working?
3. My current /system/usr/keylayout/ has several files in it and am I right to assume that I should be editing the gpio-keys.kl file?
4. Is the 116 button assigned the power button value and 115 volume up?
5. Currently the file looks like this
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
so if i edited it to something like
key 115 POWER WAKE
key 114 VOLUME_DOWN WAKE
key 116
would it still work? I want to leave the power key funciton blank as it looks like it is stuck and I dont want it to get stuck performing volume up the whole time.
That is all. Any help would be extremely appreciated by me and as you can see I am new to this whole process so if you have any pointers or better ways of doing this I would be extremely grateful for any input.
Bump
Bump
sacaAf unto
Any suggestions would def help

Lock the device on longpress vol down

Hi all
I made some searches but didn't find any answer, hope some of you could help me.
I want to edit the system/usr/keylayout/device-keypad.kl to make my device go to sleep when screen on & longpress vol down.
Here is the original file content :
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
In fact, I don't know the keycode and keyevent name of a vol down longpress.
Can someone know this ? Or at least how to get it ? (Already tried KeyCode Display but it doesn't work as expected).
NB : I already tried Xposed Additions module, and it made the job quite well (device goes to sleep when longpress the right key), but all other keys seems to be messed up (double vibrate, sometimes some keys doesn't even work) so I decided not to use this module anymore and make it manually by editing the right file.
Thx for reading

Categories

Resources