[HOWTO] Assign other buttons to show unlock screen

Search This thread

kingchris

Senior Member
Apr 17, 2007
310
13
here are my modifications as update.zip file

menu-to-wake
-enables wake for menu button

menu-to-wake wo power
-enables wake for menu button
-disables wake for power button
 

Attachments

  • menu-to-wake.zip
    4.2 KB · Views: 1,102
  • menu-to-wake-wo-power.zip
    4.2 KB · Views: 515
  • back-to-original.zip
    2.9 KB · Views: 344

zaphyr

Senior Member
Jun 23, 2008
383
19
here are my modifications as update.zip file

menu-to-wake
-enables wake for menu button

menu-to-wake wo power
-enables wake for menu button
-disables wake for power button

Thanks, I tried the "menu-to-wake wo power" file, but it still doesn't work.
I rebooted twice, and then went into recovery to pull the file to see if it was overwritten.

Code:
C:\DATA\HTC-Desire\sdk\tools>adb pull /system/usr/keylayout/bravo-keypad.kl c:\
remote object '/system/usr/keylayout/bravo-keypad.kl' does not exist

then

Code:
C:\DATA\HTC-Desire\sdk\tools>adb shell ls /system/
bin  lib

There's no /system/usr/ ?? :confused:

Then

Code:
C:\DATA\HTC-Desire\sdk\tools>adb push c:\bravo-keypad.kl /system/usr/keylayout/b
ravo-keypad.kl
1 KB/s (1867 bytes in 1.000s)

Code:
C:\DATA\HTC-Desire\sdk\tools>adb shell ls /system/usr/keylayout/
bravo-keypad.kl

So, now it's there; reboot time
Still doesn't work.
Back in recovery it's status quo as well

Code:
C:\DATA\HTC-Desire\sdk\tools>adb shell ls /system/usr/keylayout/
ls: /system/usr/keylayout/: No such file or directory

Seems to me, /system/ is overwritten at reboot....
...guess I'll have to live with it as it is, and try again with Froyo when it comes :(

EDIT: I noticed, the wake on powerbutton is not working until I enter the SIM PIN code? I have to use the menu key...is this by default??
 
Last edited:

zaphyr

Senior Member
Jun 23, 2008
383
19
you have to mount system first...

adb shell mount /system

Ah, classic! That explains why I couldn't see /system/usr :eek:

So I did the whole operation again, still no luck.
I pulled the file off after I checked it did not work, and it's identical to the one I pushed i.e. it's not overwritten by default

Still, it's strange it works for some, and not others :confused:

EDIT: I found the source of my troubles! I had Lockbot Pro installed, and it overrides the bravo-keypad.kl file. Once uninstalled, the hack works like a charm :D
I am a little bummed though, because I really liked my customized lock screen :(
 
Last edited:

samac92

Senior Member
Dec 3, 2009
184
0
Can anyone help me try to run these commands on a mac?

I enter the phone into recovery
I then "cd" into the androidsdk tools folder

from there i can run commands like ./adb devices

but if i try any of the commands here, they don't work.

i'm not sure what im doing wrong
 

kingchris

Senior Member
Apr 17, 2007
310
13
here are my modifications as update.zip file

menu-to-wake
-enables wake for menu button

menu-to-wake wo power
-enables wake for menu button
-disables wake for power button

in an other forum they asked for other Buttons at the end of the Desire.
so i've created flasheable *.zip's for
home, back and search
 

Attachments

  • search-to-wake-wo-power.zip
    2.9 KB · Views: 98
  • home-to-wake-wo-power.zip
    2.9 KB · Views: 143
  • back-to-wake-wo-power.zip
    2.9 KB · Views: 67

mountnorth

Member
Apr 4, 2010
16
13
Inspired by the work done to change the wakebuttons I did some research if its possible to remap unlock from menu to another button... with success :)

If you flash the attached zip unlocking can be done by pressing the back button if the lockscreen is visible - menu no longer unlocks, but still can wake.

I modified HtcLockScreen.apk taken from MoDaCo Custom r3.1 for Desire - so this might or might not work on non-MoDaCo ROMs, it definately works on my Desire with r3.1

I might try to fully disable the unlock button later.

edit: there it is - unlock-disabled.zip :D if you flash this you can still wake your Desire but no longer unlock it with a key (e.g. default - menu key)
 

Attachments

  • back-to-unlock.zip
    675.9 KB · Views: 115
  • unlock-disabled.zip
    675.9 KB · Views: 168
Last edited:

pina_

Senior Member
Mar 5, 2010
144
0
nice work! I have updated the first post in meantime.

@mods: maybe this thread should be in the Development-section?
 

blackfox888

Senior Member
Mar 29, 2010
247
4
Great work, just to confirm if I use menu-to-wake.zip, does this mean I will have both power and menu key to wake?