MOD: Search Key as a Power Button
This is my first real contribution to the Defy Android Development and Im very proud to contribute (small contribution) after all this forum has taught me and has make me choose my defy over any latest iPhone or big and new Android phone ^^
This MOD works perfectly on any ROM (cm7 cm9 cm10 miui mokee os.. so I imagine it works in every rom out there) and its pretty easy to do (although if someone knows how to make .zips to directly flash it from cwm I would appreciate it and include it in this post ^^)
This MOD does the following, it turns the seach key to your power button and in my opinion it is a good option because it increased life expectancy of our strong defy's (btw power button will work the same, and it will still be needed to unlock our defy since the touchscreen keys dont work when our defy is off)
If you press the search key your defy will go to sleep, as if you pressed once the power button, and if you do a longpress on the search key the power menu will show up (shut down reboot screenshot etc.. )
you only need a root explorer to edit system files I did it with root explorer btw
go to system > usr > keylayout and open qwerty.kl and X (the one above) with a text editor..
in both files----> key 217 SEARCH WAKE_DROPPED change it to ---> key 217 POWER WAKE
NOTE: make sure after this change that key, POWER and WAKE are in exactly the same collumn as before (insert one spacebar after POWER to move WAKE to the right position!
To end with, check permisions of both files (they didn't change for me but just in case) it should be:
X X 0
X 0 0
X 0 0
X= tick 0=untick
If you don't understand this just compare the permisions with any other file of that folder
RESTART then WALA!
Well, not all roms. Basically, all custom roms. Stock roms use a different set of files to mapping the phone. Still, values are correct and can be applied to any Rom, you just have to know which files mapping hardware keys on your Rom. This kind of things could make that you can even power up your phone with menu button or search with back button or whatever you want
Enviado desde mi MB525 usando Tapatalk 2
espaciosalter20 said:
Well, not all roms. Basically, all custom roms. Stock roms use a different set of files to mapping the phone. Still, values are correct and can be applied to any Rom, you just have to know which files mapping hardware keys on your Rom. This kind of things could make that you can even power up your phone with menu button or search with back button or whatever you want
Enviado desde mi MB525 usando Tapatalk 2
Click to expand...
Click to collapse
well, I read about touchkeys (search home etc..) and if they aren't fisical you can't powerup/unlock etc, in the defy case, it would only be possible to do it with volume or power up button (as we all do) by the way, can anyone link me to a how to create a .zip to do this? or could someone do it and I put it in the first post? ^^ its good to know how to do it but people will find easier to flash the .zip
This awesome idea for save our defy power button life please port to wiui Jb
mariosanoguera said:
well, I read about touchkeys (search home etc..) and if they aren't fisical you can't powerup/unlock etc, in the defy case, it would only be possible to do it with volume or power up button (as we all do) by the way, can anyone link me to a how to create a .zip to do this? or could someone do it and I put it in the first post? ^^ its good to know how to do it but people will find easier to flash the .zip
Click to expand...
Click to collapse
Nah this is just fine I think ..... This is the dev section afterall where we come to learn stuff and do stuff ourselves and anyways your instructions are great ...... anyone that has flashed a rom before must be able to follow this at least I mean it's changing two values with a text editor then resetting the permissions of the files... I mean this is easier than rooting the defy.
But if you still want to make a flashable zip search in the defy general section AL did a great tutorial a while back
Btw great work
I have one question .....
it should me 217 SEARCH WAKE_DROPPED to 217 POWER WAKE
or
217 SEARCH WAKE_DROPPED to 217 POWER WAKE_DROPPED ???????
Please reply....
Euro_Rules said:
I have one question .....
it should me 217 SEARCH WAKE_DROPPED to 217 POWER WAKE
or
217 SEARCH WAKE_DROPPED to 217 POWER WAKE_DROPPED ???????
Please reply....
Click to expand...
Click to collapse
Like the first one 217 POWER WAKE
Sent from my MB526 using xda app-developers app
cyrusct82 said:
Like the first one 217 POWER WAKE
Sent from my MB526 using xda app-developers app
Click to expand...
Click to collapse
Thanks
This is a cool mod, thanks for posting it, but I think it's more appropriate for the General section than Dev. Moved there.
Can we also assigned other 3 buttons ??????
& How.... ?
Euro_Rules said:
Can we also assigned other 3 buttons ??????
& How.... ?
Click to expand...
Click to collapse
Same principle... Just look at the original state of your keymap file (depends on if your have stock or custom Rom) in /system/usr/keylayout and then play with the values.
Enviado desde mi MB525 usando Tapatalk 2
espaciosalter20 said:
Same principle... Just look at the original state of your keymap file (depends on if your have stock or custom Rom) in /system/usr/keylayout and then play with the values.
Enviado desde mi MB525 usando Tapatalk 2
Click to expand...
Click to collapse
How Can you explain ? I am using Custom ROM (Mokee OS)..
Can someone make zip for this pls ???
Would be really helpful in using other cu
stom roms.
It Killed my Search key light
Guys please use this MOD at your own risk.. i tried this nd it killed my search key light... (DEFY+ MB526)
Any one tried in stock rom
Sent from my MB525 using Tapatalk
Joshua_CE said:
Guys please use this MOD at your own risk.. i tried this nd it killed my search key light... (DEFY+ MB526)
Click to expand...
Click to collapse
How can u expect a Key to work for both functions... ?
Just revert back to old config (hope u have taken backup ) your Search key light will work again
Flashable Zips
H! Guys,
I made flashable zips for the above MOD.
Do test and let me know... Will work on almost all Custom Roms.
Thanks,
Ashish
ashish386 said:
H! Guys,
I made flashable zips for the above MOD.
Do test and let me know... Will work on almost all Custom Roms.
Thanks,
Ashish
Click to expand...
Click to collapse
Nice Work.. !!
Hello!
Thank you for this mod, it works on my Desire S as it supposed to!!!
I have a broken power button so i mapped my search key to act as it. Now i was wondering would it be possible to map "long press search button" to "long press power button" ONLY. As i use sweep2wake -> search button wakes the phone and puts the phone to sleep too. I would like that the sweep2wake would do the waking and sleeping, and long pressing the search button would just open the "boot menu" . When i disable the sweep2wake search button doesnt wake my phone again. Which is what i want but then i have to remap my volume controls to wake it up.
Just small things, but i think this is the place to ask?
Peace!
Sweep2wake would be so sweet on our Defy
Sent from my Defy green lense using xda-developers app
Related
If you want to disable the ICS 3 dots menu follow this step.
Settings/Display,gesture & buttons/ Recent apps button/ and select "Press for menu, press and hold for recent apps" .
Work with root and unroot devices.
Have fun.
Screenshot:
before: http://dl.xda-developers.com/attachdl/cae95ad18b874b22dc17fb1b947e5089/5012a820/9/8/3/1/4/2/pre.jpg
after: http://dl.xda-developers.com/attachdl/936f54ed26aeebb794cf74208cbc178c/5012a820/9/8/3/1/4/3/post.jpg
Hope blubbers won't be sad because I use him screenshot. If are any problems please PM me !
Button option is added at 2.05. on the roms<2.05 we need to use blubbers mod
leventccc said:
Button option is added at 2.05. on the roms<2.05 we need to use blubbers mod
Click to expand...
Click to collapse
yeah. 10x. it was my mistake.
Thank you very much for this, I had no idea it was already built it. I've been downloading all sorts of things trying to get rid of the 3 dots!
ROFL...not a dev thread, but definitely has to be here since we are so tired of throwing yellow pages at noobs...
could someone make this sticky?
SbTro said:
If you want to disable the ICS 3 dots menu follow this step.
Settings/Display,gesture & buttons/ Recent apps button/ and select "Press for menu, press and hold for recent apps" .
Work with root and unroot devices.
Have fun.
Screenshot:
before: http://dl.xda-developers.com/attachdl/cae95ad18b874b22dc17fb1b947e5089/5012a820/9/8/3/1/4/2/pre.jpg
after: http://dl.xda-developers.com/attachdl/936f54ed26aeebb794cf74208cbc178c/5012a820/9/8/3/1/4/3/post.jpg
Hope blubbers won't be sad because I use him screenshot. If are any problems please PM me !
Click to expand...
Click to collapse
thanks man, worked well on ARHD 9.1.0 ROM with 2.17 base :good:
the idiocy is strong in here
now we get to see xda's "other" side
I would not say people here are idiots or stupid. They are only lazy and ignorant...and that's worse...
Sent from my HTC One X using xda premium
How to enable volume key wake up in sense ROM [2.3.5], heard that we need to edit android plicy .jar, could anyone say the procedure to edt and make it Volume key wake up enable?????
Its enabled in wildchild rom. I looked up for the android policy edit methods. but they are very difficult and went way over my head. so I gave up.:laugh:
It's a build.prop tweak for sense but I don't have it with me now.
May u please say the steps as i will try tooo.....
rezo609 said:
It's a build.prop tweak for sense but I don't have it with me now.
Click to expand...
Click to collapse
It's more than just a build.prop tweak.
Someone mentioned android.policy.jar and that is correct.
You also have to modify the keyboard layout files.
Take apart WildChild ROM for a reference, or else just scour the XDA forums for specifics (search on "smali editing", which is what you'll need to do for the aforementioned .jar file)
Good luck,
True now I remember
Tigger31337 said:
It's more than just a build.prop tweak.
Someone mentioned android.policy.jar and that is correct.
You also have to modify the keyboard layout files.
Take apart WildChild ROM for a reference, or else just scour the XDA forums for specifics (search on "smali editing", which is what you'll need to do for the aforementioned .jar file)
Good luck,
Click to expand...
Click to collapse
Yeah smali also with some java things i have even downloaded it but seriously i couldn't understand a thing I wanted to use vol rocker as media prev/next
Tigger31337 said:
It's more than just a build.prop tweak.
Someone mentioned android.policy.jar and that is correct.
You also have to modify the keyboard layout files.
Take apart WildChild ROM for a reference, or else just scour the XDA forums for specifics (search on "smali editing", which is what you'll need to do for the aforementioned .jar file)
Good luck,
Click to expand...
Click to collapse
Hi there,
I'm using your Wildchild 2.0 ROM (great work, BTW....:good and I was just wondering if there's a noob-proof way to disable the unlock-with-volume-keys function: phone keeps waking up while it's in my pocket, and battery dries up
TIA
joemontana8 said:
Hi there,
I'm using your Wildchild 2.0 ROM (great work, BTW....:good and I was just wondering if there's a noob-proof way to disable the unlock-with-volume-keys function: phone keeps waking up while it's in my pocket, and battery dries up
TIA
Click to expand...
Click to collapse
1. Navigate to this directory on your phone:
\system\usr\keylayout
2. Modify the file "marvel-keypad.kl" by removing the following lines:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
(Delete the entire lines)
3. Perform the same mod on the file "qwerty.kl"
4. Reboot.
5. If works, click Thanks and buy me a beer. If you're short on time, just buy me a beer.
My Dear developers and newbees Like me, Finaly I tried this Method and Works like charm..... Thank you thank you thank u.............
I tried in Two Roms
(Stock and Jikantaru, Both Works as No prbm in that.....)
http://forum.xda-developers.com/showthread.php?t=1164777
finance.resat said:
Yeah smali also with some java things i have even downloaded it but seriously i couldn't understand a thing I wanted to use vol rocker as media prev/next
Click to expand...
Click to collapse
I tried as Just to Wake up android using volume keys and It works....
My friend said there is a App name as "Button Mapper" that may help u :laugh:, try that toooooo from Play Store.
Tigger31337 said:
1. Navigate to this directory on your phone:
\system\usr\keylayout
2. Modify the file "marvel-keypad.kl" by removing the following lines:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
(Delete the entire lines)
3. Perform the same mod on the file "qwerty.kl"
4. Reboot.
5. If works, click Thanks and buy me a beer. If you're short on time, just buy me a beer.
Click to expand...
Click to collapse
Works a treat :good:
Thanks given - beer will follow ASAP
Thanks again, mate
balakrishnan111 said:
I tried as Just to Wake up android using volume keys and It works....
My friend said there is a App name as "Button Mapper" that may help u :laugh:, try that toooooo from Play Store.
Click to expand...
Click to collapse
I know that But I want volume keys too. Means I wanted volume long press to change track.
joemontana8 said:
Works a treat :good:
Thanks given - beer will follow ASAP
Thanks again, mate
Click to expand...
Click to collapse
My pleasure.
Tigger31337 said:
1. Navigate to this directory on your phone:
\system\usr\keylayout
2. Modify the file "marvel-keypad.kl" by removing the following lines:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
(Delete the entire lines)
3. Perform the same mod on the file "qwerty.kl"
4. Reboot.
5. If works, click Thanks and buy me a beer. If you're short on time, just buy me a beer.
Click to expand...
Click to collapse
Hello. I just did what you said, and now not only that it doesn t wake when i press vol, but the volume rocker doesnt work at all.
How can i reverse that so at least i can use the vol rocker?
EDIT. I rewrited mannualy those words and the vol rocker works again.
Still, i tried pretty much everything i found here and still my phone dont wake on vol keys.
i m on stock 2.3.5 and my power button is broken.
Please help if you can!
And thanks!
his post let’s you make your Galaxy Y Menu & Back buttons a small vibrate.
Note : Need Rooted Phone {
Tutorial of vibrating Menu & back keys:
1. Download a Root Browser free version from Play Store Link.
2. Open it & allow SU permissions.
3. Navigate to /system/usr/keylayout/qwerty.kl and open querty.kl in text editor.
4. Now find & change these original values to the bold text below:
+ Change “KEY 158 BACK VIRTUAL“
+ Change “KEY 229 MENU VIRTUAL“
+ Change “KEY 139 MENU VIRTUAL“
+ Change “KEY 59 MENU VIRTUAL“
5. Now save it and wait it grants SU access again.
6. Now reboot or restart your phone & enjoy!
Unvibrate:
1. Edit qwerty.kl and change your values from VIRTUAL to WAKE_DROPPED.
2. Save it and wait till it grants SU access.
3. Reboot your restart your phone.
I am not responsible for any damage so try it at your own risk!
mrappbrain said:
his post let’s you make your Galaxy Y Menu & Back buttons a small vibrate.
Note : Need Rooted Phone {
Tutorial of vibrating Menu & back keys:
1. Download a Root Browser free version from Play Store Link.
2. Open it & allow SU permissions.
3. Navigate to /system/usr/keylayout/qwerty.kl and open querty.kl in text editor.
4. Now find & change these original values to the bold text below:
+ Change “KEY 158 BACK VIRTUAL“
+ Change “KEY 229 MENU VIRTUAL“
+ Change “KEY 139 MENU VIRTUAL“
+ Change “KEY 59 MENU VIRTUAL“
5. Now save it and wait it grants SU access again.
6. Now reboot or restart your phone & enjoy!
Unvibrate:
1. Edit qwerty.kl and change your values from VIRTUAL to WAKE_DROPPED.
2. Save it and wait till it grants SU access.
3. Reboot your restart your phone.
I am not responsible for any damage so try it at your own risk!
Click to expand...
Click to collapse
Is another thread like this,if im not wrong.
funny95 said:
Is another thread like this,if im not wrong.
Click to expand...
Click to collapse
yup there is,
Thnx..
Sent from my GT-S5830i using xda premium
....
Hit ThanX If I helped you !!
Lalit Patil said:
Thnx..
Sent from my GT-S5830i using xda premium
....
Hit ThanX If I helped you !!
Click to expand...
Click to collapse
Talk about revivng a dead thread
PHONE SLOW CLICK ME?
_____________________________________
"No one lives in the slums because they want to. It's like this train. It can't run anywhere except where its rails take it."- Cloud[FFvii]"
TingTingin said:
Talk about revivng a dead thread
Click to expand...
Click to collapse
exactly..lawl
funny95 said:
Is another thread like this,if im not wrong.
Click to expand...
Click to collapse
Don't freaken qoute the op
Sent from my S100 using xda premium
Hmmm, I know this vibrating thing from 7 months.. someone posted it last year..
these noobs! lol!
copy and paste!
He posted like he can edit [.kl] and [.so] files, lol!
we don't need broadcom to release the improved drivers, this noob will do it!
kaustubh.rockstar said:
Hmmm, I know this vibrating thing from 7 months.. someone posted it last year..
these noobs! lol!
copy and paste!
He posted like he can edit [.kl] and [.so] files, lol!
we don't need broadcom to release the improved drivers, this noob will do it!
Click to expand...
Click to collapse
LOL..! :thumbup:
Rom: Hyperion 8
Kernel: Savie's kernel
Theme: My own modification
Trolled !
[19.08.13] -->> SENSE 5 <<----->> Volume Wake JB-> with deep sleep fix :)
So after i upgrade to jb the first thing i miss was s2w kernel (hope we get the source fast and show-p can do some magic)
As a containment i wanted to get volume wake to work (as we know wake over power button is mmmmhhhhh) After some use of the greatest thing in xda...the search button...i get a how to volume wake
DOWNLOAD SENSE 5 Volume Wake
->important...my mod is based on apm mod from here...so you need to have this installed
http://forum.xda-developers.com/showpost.php?p=44734537&postcount=28
http://sourceforge.net/projects/ale...th_deep_sleep_fix_Alex-V_SENSE_5.zip/download
STORY TO THIS:
http://forum.xda-developers.com/showthread.php?t=1585309
was not for jb and i only have minimum skills in smali coding so i delete :
0x18 -> :sswitch
0x19 -> :sswitch
and the rest in the how to...after that volume wake works but not in deep sleep...
so i searched again and get this:
http://forum.xda-developers.com/showthread.php?t=2038726
flashed the init.d script and now volume wake also works in deep sleep
The version i uploaded here is from jotha´s Advanced Power Menu Mod (so you must have a rom with this in) and is also patched with lyapota´s kill app mod...
My thx to all those devs
If you cant get it to work...make your own android.policy.jar with the how to...
with kind regards...Alex
You my friend are just plain awesome You have made a lot of people happy
Awww Thanks Alex-V !!! Good Work !
Happy New Years Mate!
Thanks Alex, great job! Works perfectly.
Sent from my EndeavorU using xda app-developers app
hassan89 said:
You my friend are just plain awesome You have made a lot of people happy
Click to expand...
Click to collapse
Lextermina said:
Awww Thanks Alex-V !!! Good Work !
Happy New Years Mate!
Click to expand...
Click to collapse
TToivanen said:
Thanks Alex, great job! Works perfectly.
Sent from my EndeavorU using xda app-developers app
Click to expand...
Click to collapse
yeah
thx and TToivanen thx...that it works
with kind regards
Mate,
I can only find
0x18 -> :sswitch_6
0x19 -> :sswitch_6
Under method sWakeKeyWhenKeyguardShowing(IZ)Z is that the one?
Edit:
Yup that was one... Since Ordroid works different had to modify the Ordroid one
Just replace this file in Alex's Update script
View attachment android.policy.jar
It works like a charm on TrickDroid v2
Tnx Alex
Alex,
Thanks for the script link, this is one thing what forced me use custom kernel, when I prefer the stock one.
Alex,
I flashed your script but it's not work for me. I'm using ZeroInfinity's rom with stock kernel. Could u help me how to do it? Thank u
nice work alex.....
Vothana said:
Alex,
I flashed your script but it's not work for me. I'm using ZeroInfinity's rom with stock kernel. Could u help me how to do it? Thank u
Click to expand...
Click to collapse
its because the rom you say is odexed...you need to ask ZeroInfinity if he can do it... (anyway...i will also bring my rom back soon..and will be re-odexed )
with kind regards
Thank you very much !
Works perfect on Blade 4.0...Great !
lol it works fine here but it done something wierd to my phone the holding power button just restarts the fone quickly
faisaldante said:
lol it works fine here but it done something wierd to my phone the holding power button just restarts the fone quickly
Click to expand...
Click to collapse
+ 1
I lost the power menu and it's impossible to shut down the phone...
epiteto said:
+ 1
I lost the power menu and it's impossible to shut down the phone...
Click to expand...
Click to collapse
Did you apply the mod as it is or did you make your own zip file ? if its not working for you then you need to ask your rom chef to make the mod for you guys
faisaldante said:
lol it works fine here but it done something wierd to my phone the holding power button just restarts the fone quickly
Click to expand...
Click to collapse
epiteto said:
+ 1
I lost the power menu and it's impossible to shut down the phone...
Click to expand...
Click to collapse
than you must patch the android.policy.jar from the rom (it contains the apm) or ask the rom dev
Was waiting for you getting S2W working
Have to run ViperX RC4 today as it is and tomorrow will flash & try your Kernel
LG, Helmut
hd2neuling said:
Was waiting for you getting S2W working
Have to run ViperX RC4 today as it is and tomorrow will flash & try your Kernel
LG, Helmut
Click to expand...
Click to collapse
Hi!
Does this s2w kernel work for ViperX JB? just flash the .zip?
Thanks!
Guys here is no s2w kernel..this is just volume wake ..with fix
Sent from my HTC One X using XDA Premium App
Alex, awesome work! works on the brilliant rom: bugx 2.3!
Do you know how I can achieve the following: I'm running exchange policy (mandatory at my company). I've got an 'screen off and lock' button installed. When I use this screen off button, I always have to fill in my pin number, even when set on 30 minutes... I don't want to use the exchange disabler (which are found often in aroma installers), but would like to be able to use the phone as with gingerbread (just press the off button on your homescreen, activate the screen again with the volume down button (the last for wat your awesome mod does!)). The current screen off buttons/widgets all have a delay of some seconds... which is anoying... I can imagine that this is an app related thing, but if you know if there's a value which can be altered for the 'time out', that would be awesome!
Is there a way to achieve this, of your knowing?
cheers and many many thanks for this great mod (and for your awesome roms for desire )
Follow the method to make this process easier.
*//I am not responsible for any damage, so try it at your own risk.
1. Open Root Explorer & allow SU permissions.
2. Navigate to /system/usr/keylayout/
qwerty.kl and open qwerty.kl in text
editor.
3. Now find & change these original
values to the bold text below:
[size=+2]+ Change “KEY 158 BACK VIRTUAL“
+ Change “KEY 229 MENU VIRTUAL“
+ Change “KEY 139 MENU VIRTUAL“
+ Change “KEY 59 MENU VIRTUAL“[/size]
5. Now save it and wait it grants SU
access again.
6. Now reboot or restart your phone &
enjoy!
Click to expand...
Click to collapse
Unvibrate:
1. Edit qwerty.kl and change your values from VIRTUAL to WAKE_
DROPPED
2. Save it and wait till it grants SU
access.(rw-r--r--)
3. Reboot your restart your phone.
Click to expand...
Click to collapse
imElectronica said:
Follow the method to make this process easier.
*//I am not responsible for any damage, so try it at your own risk.
Unvibrate:
Click to expand...
Click to collapse
Old trick bro!! I think ever one knows it!! Or we already have one thread about it to!!
But nice one who don't know it!!
Work !
Sent from my GT-S5360 using xda app-developers app
1hewarlock said:
Old trick bro!! I think ever one knows it!! Or we already have one thread about it to!!
But nice one who don't know it!!
Click to expand...
Click to collapse
I know it...i post it again for newbies...some of the xda member only check only new thread, not check the olds so they ignor about some common stuff..
Work !
Click to expand...
Click to collapse
wht is it quesn or feedback.
imElectronica said:
I know it...i post it again for newbies...some of the xda member only check only new thread, not check the olds so they ignor about some common stuff..
wht is it quesn or feedback.
Click to expand...
Click to collapse
By the way this trick is awesome!! by making soft keys vibrate u r confirm that key is presses because our soft keys are irresponsibe!!
great trick!!
1hewarlock said:
Old trick bro!! I think ever one knows it!! Or we already have one thread about it to!!
But nice one who don't know it!!
Click to expand...
Click to collapse
1hewarlock said:
By the way this trick is awesome!! by making soft keys vibrate u r confirm that key is presses because our soft keys are irresponsibe!!
great trick!!
Click to expand...
Click to collapse
Yes...I's true.
Works
Sent from my GT-S5360 using xda app-developers app