yashsingh1/xdaforums huggingface dataset:
[Desire General] jbaldwinroberts:
Hello everyone,

I've just rooted my phone and flashed the custom modaco ROM, when you enter the revovery menu by using "recovery-windows.bin" the terminal says

D:\Downloads\2>echo Desire Recovery Mode
Desire Recovery Mode

D:\Downloads\2>echo.

D:\Downloads\2>echo Pushing required files to device...
Pushing required files to device...

D:\Downloads\2>echo.

D:\Downloads\2>adb-windows.exe push files /
push: files/etc/mtab -> /etc/mtab
push: files/etc/fstab -> /etc/fstab
push: files/sbin/wipe -> /sbin/wipe
push: files/sbin/unyaffs -> /sbin/unyaffs
push: files/sbin/ums_toggle -> /sbin/ums_toggle
push: files/sbin/um -> /sbin/um
push: files/sbin/tune2fs -> /sbin/tune2fs
push: files/sbin/toolbox -> /sbin/toolbox
push: files/sbin/sdparted -> /sbin/sdparted
push: files/sbin/recovery -> /sbin/recovery
push: files/sbin/reboot -> /sbin/reboot
push: files/sbin/parted -> /sbin/parted
push: files/sbin/nandroid-mobile.sh -> /sbin/nandroid-mobile.sh
push: files/sbin/mkyaffs2image -> /sbin/mkyaffs2image
push: files/sbin/mke2fs -> /sbin/mke2fs
push: files/sbin/log2sd -> /sbin/log2sd
push: files/sbin/fs -> /sbin/fs
push: files/sbin/flash_image -> /sbin/flash_image
push: files/sbin/fix_permissions -> /sbin/fix_permissions
push: files/sbin/e2fsck -> /sbin/e2fsck
push: files/sbin/dump_image -> /sbin/dump_image
push: files/sbin/busybox -> /sbin/busybox
push: files/sbin/backuptool.sh -> /sbin/backuptool.sh
push: files/sbin/adbd -> /sbin/adbd
push: files/system/bin/sh -> /system/bin/sh
push: files/system/bin/linker -> /system/bin/linker
push: files/system/lib/libstdc++.so -> /system/lib/libstdc++.so
push: files/system/lib/libm.so -> /system/lib/libm.so
push: files/system/lib/liblog.so -> /system/lib/liblog.so
push: files/system/lib/libcutils.so -> /system/lib/libcutils.so
push: files/system/lib/libc.so -> /system/lib/libc.so
31 files pushed. 0 files skipped.
983 KB/s (3709881 bytes in 3.683s)

D:\Downloads\2>adb-windows.exe shell busybox --install /sbin

D:\Downloads\2>echo.

D:\Downloads\2>adb-windows.exe shell /sbin/recovery

How do i enter in more commands without the prompt??

Thanks for your help.
[Desire General] kingchris:
open a new commandline, or shell

navigate to the directory you stored the root-file

type adb shell
[Desire General] zaphyr:
For some reason it doesn't work here

I'm trying to use this file

key 102 HOME
key 139 MENU WAKE_DROPPED
key 158 BACK
key 217 SEARCH

key 107 ENDCALL WAKE_DROPPED
key 116 POWER

key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE

I pulled the file after a reboot, and it has not ben overwritten by default, but I can still use the powerbutton to wake up the phone :confused:

The original file looked like this

key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# key 399 GRAVE
# key 2 1
# key 3 2
# key 4 3
# key 5 4
# key 6 5
# key 7 6
# key 8 7
# key 9 8
# key 10 9
# key 11 0
# key 158 BACK WAKE_DROPPED
# key 230 SOFT_RIGHT WAKE
# key 60 SOFT_RIGHT WAKE
#
# key 62 ENDCALL WAKE_DROPPED
# key 229 MENU WAKE_DROPPED
# key 59 MENU WAKE_DROPPED
# key 139 MENU WAKE_DROPPED
# key 127 SEARCH WAKE_DROPPED
# key 228 POUND
# key 227 STAR
# key 231 CALL WAKE_DROPPED
# key 61 CALL WAKE_DROPPED
#
# key 108 DPAD_DOWN WAKE_DROPPED
# key 103 DPAD_UP WAKE_DROPPED
# key 102 HOME WAKE
# key 105 DPAD_LEFT WAKE_DROPPED
# key 106 DPAD_RIGHT WAKE_DROPPED
# key 211 FOCUS
# key 212 CAMERA
#
# key 16 Q
# key 17 W
# key 18 E
# key 19 R
# key 20 T
# key 21 Y
# key 22 U
# key 23 I
# key 24 O
# key 25 P
# key 26 LEFT_BRACKET
# key 27 RIGHT_BRACKET
# key 43 BACKSLASH
#
# key 30 A
# key 31 S
# key 32 D
# key 33 F
# key 34 G
# key 35 H
# key 36 J
# key 37 K
# key 38 L
# key 39 SEMICOLON
# key 40 APOSTROPHE
# key 14 DEL
#
# key 44 Z
# key 45 X
# key 46 C
# key 47 V
# key 48 B
# key 49 N
# key 50 M
# key 51 COMMA
# key 52 PERIOD
# key 53 SLASH
# key 28 ENTER
#
# key 56 ALT_LEFT
# key 42 SHIFT_LEFT
# key 15 TAB
# key 57 SPACE
# key 150 EXPLORER
# key 155 ENVELOPE
#
# key 12 MINUS
# key 13 EQUALS
# key 215 AT

@viper_campbell: Maybe key 212 can be used for unlocking with the optical button
[Desire General] Jamsi:
Could you give me a step be step on how you did it on Mac?

Thanks.
[Desire General] viper_campbell:
Nope 212 doesnt work :( also tried a few others but no luck... Im thinking the key number isn't included in this file...

Also i reckon the reason why your file isnt working is possibly because you have removed the power button function... As i left that in and changed the menu, and that worked fine, Power button would wake device and double press menu would wake and unlock...
[Desire General] zaphyr:
Nah, I had the powerbutton there as well first, and then changed it because I don't want it to wake the phone...only the menu button should be active imo. But as it is now, all buttons wake the phone, but doubleclicking the menubutton will make a "unlock bar" appear on the screen.

I'm on 1.15.405.4 as provided by Paul when he first released the root guide.
[Desire General] sbdags:
Great hack!

This is an excellent hack - I've now got my Desire opening with the menu button hit twice! :D Just like how I had my G1 ;)
[Desire General] kingchris:
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
[Desire General] zaphyr:
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.

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

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

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

Then

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)

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

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??
[Desire General] aslocum:
you have to mount system first...

adb shell mount /system
[Desire General] sactoguy:
It works. Thanks kingchris for the modded files.
[Desire General] lionel7:
great files

can someone post a step by step installation guide for android beginners like me ?

thx
[Desire General] ritdaw:
Try this on page one....

http://xdaforums.com/showpost.php?p=6517818&postcount=8
[Desire General] zaphyr:
Ah, classic! That explains why I couldn't see /system/usr :o

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 :(
[Desire General] ruslanvetra:
How to assign wakeing on the optical trackpad for further unlocking?
[Desire General] pina_:
i don't know if that's possible, if you know the code of the optical button, then it should be possible
[Desire General] ruslanvetra:
Unfortunatey i don`t know.

Is here somebody who does?
[Desire General] samac92:
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
[Desire General] kazgor:
I have a non rooted phone.. can i just put this update.zip onto the SD card and do update?
[Desire General] squrl:
no, root is necessary.
[Desire General] kingchris:
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
[Desire General] mountnorth:
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)
[Desire General] pina_:
nice work! I have updated the first post in meantime.

@mods: maybe this thread should be in the Development-section?
[Desire General] egzthunder1:
Development section is only for OS/ROM development. This thread is ok where is at.
[Desire General] blackfox888:
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?
[Desire General] ephumuris:
I really want trackpad to wake too :(
[Desire General] djtosh:
great work, just wondering if there is a possibility then to set long press of a button to put the phone to sleep?
[Desire General] lecitron:
Hi, maybe if we can take a look to a nexus one rom we could find the number of the trackpad key?

I find this url 3w.kandroid.org/addon-pdk/guide/keymaps_keyboard_input.html, and i think [ key 232 DPAD_CENTER WAKE_DROPPED ] maybe is the trackpad.

Sorry for my english, bye
[Desire General] vanja:
Humm, maybe it really is, but it doesn't work for waking up. Also,

key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED

doesn't get registered either...

I believe we have to dig into services.jar and framework-res.jar to get this baby workin'...
[Desire General] alledm:
Solution

Just to let you know that the amazing "LockBot Free" (and I guess many other) seem to enable the use of the menu button to unlock the phone (unrooted).

Amazing.. Finally my phone makes some sense :P
[Desire General] tommo123:
tried it but any key turns the screen on and prevents my bluetooth headset working properly - it stops meridian responding to the controls :(

nice app, but not usable for me.
[Desire General] bponury:
I believe that it's not that simple to use trackpad - It's actually not a keyboard - it's optical joystick and it's not sending events as KB. Probably changing kernel module to fire up DPAD_* events might help. Also gpio_kp is receiving IRQs for trackpad.
[Desire General] executivul:
By looking into Recovery->Other->Keyboard Test

I discovered the codes for DPAD up/dn were correct like in Bravo-keyboard.pl

the code generated to the press of the trackpad is 272,

however I did not succeed in firing up the unlock screen by adding "key 272 DPAD_PRESS WAKE_DROPED", in recovery console there is no name associated to pressing the trackpad, only the code, 272.

maybe someone finds it useful.

LE: knowing it's an optical trackpad maybe for power saving it's turned off in standby and only active when phone is awake, then we have no chance of waking up the phone with it.
[Desire General] oliverreed:
I'm very sorry to ask this here but I've rooted my phone for the sole purpose of changing the awkward & nasty power button unlock, how do I apply any of these zips please.
[Desire General] Dodolom:
works like a charm. thanks
[Desire General] Rickbob:
Works for me, im back to the power button only for sleep and wake commands. just seemed like the best way for me.

thanks

EDIT- since editing this file some strange thing have been happening. I can now wake and unlock the phone with a double tap on the Dpad even though i have disabled the settings in the bravo file? also the phone does not wake when receiving a call? and im now getting the blue led problem for notifications (using defrost froyo 1.8).

Any ideas people???

and what's the difference between the WAKE and WAKE_DROPPED commands???
[Desire General] jwickers_1234:
I got my trackball working, see: http://xdaforums.com/showthread.php?p=7236745#post7236745

Hope that helps.
[Desire General] blackfox888:
what rom you are using?

btw as I cldn't get dpad to wake-dropped I thought I try the search button so I edit bravo-keypad.kl to have search button wake-dropped. than when I rebooted the phone, power button did not put phone to sleep! phone is on constant wake!! put back the original bravo-keypad.kl file and phone is working again. what am I doing wrong? my rom details are below.
[Desire General] ephumuris:
I tried this on Defrost. Works ok to wake the screen up but double press does NOT unlock like someone has said.

I want to use menu to wake and unlock :(

Any help?
[Desire General] zeljkod:
remapping

Not directly related to unlock, but more to remapping keys

Is it possible to have 'search' key remapped to do

short press: END CALL

long press: LOCK

Regards,

Zeljko
[Desire General] tropheuz:
This would be great!

any help?
[Desire General] mongo56:
I'd like to know a solution to this also. I'm running the stock rooted froyo rom.

Replacing the unlocker with the previous version should work imo.
[Desire General] w0mbat:
I'm interested in mapping a long press of the search key too. Can anyone help me with the key value (I'm imagining that key 217 just does a normal single press of search)

I imagine it must be possible as Button Shortcut on the market does this. Unfortunately it only maps applications and I want to map media functions to it......
[Desire General] Sokko:
It would be great if something like this could be done.

It is really annoying to tap and recheck the screen after I finish conversation. I want to press the button and be sure that my call is ended.

Thanks in advance.
[Desire General] ashrack0:
thx for this great thread
[Desire General] ingenious:
Hey guys, has anyone succeeded making the Menu button to unlock the device? So far I can wake the device using the menu button and I can wake and unlock it using the optical trackball, but I want to have menu-to-unlock cause it's easier to press (I'm not afraid of accidental unlocking).
[Desire General] pina_:
errrm... ever tried to read the first post...?
[Desire General] ingenious:
Errrrmm... I did, but it doesn't work on Froyo. I also tried putting WAKE_DROPPED for the MENU key in curcial-oj.kl but still doesn't unlock the device - it only wakes it up. I'm running the LeeDroid 2.2f ROM which already has dpad-to-unlock.
[Desire General] debos1:
I'm also here as a newbie, and if someone could please help me with the issue of how to apply the update.zip

( http://xdaforums.com/showpost.php?p=6588836&postcount=22 )

to make the phone unlock for example with the menu button.

I did not root the phone yet or anything else..

I would really appreciate your help. Thank you!

Regards,

Marko
[Desire General] ippoglosso:
Maybe I did not understand, with this zip you create a button on the home screen to activate the LockScreen?

I can install from ClockworkMod Recovery

Thanks for the reply

Ippo
[Desire General] cmavr8:
Same here, still having this problem..

Any solution anyone?
[Desire General] neiamu:
im not really good at this stuff so do you need to plug the phone into the pc?
[Desire General] cescof:
hy i'm trying here to solve my problem... My desire it's crazy now cause many hardware keys are done (maybe rain...) So vol-, menu and trackball are gone..

The problem is that every boot i've safe mode maybe because menu key fault and give always imput on....

So my question is for a solution maybe trying to disabel hardware key menu???

Any suggest (excluding rma)

Regards
[Desire General] :
Hey guys, i cant get it to stop waking on menu, this is what i have done to the file so far

http://dl.dropbox.com/u/6017469/bravo-keypad.kl
[Desire General] Nyto75:
perfect !

it works great on rcmix S !
[Desire General] XConvict:
People is there anyway that i can DISABLE the optical trackpad from unlocking my phone?

I use RCmix 2.0 rom at the moment.

It keeps unlocking and take pictures when i'm carrying the phone around at work. :(

Thnxs in advance for your replys!

[SOLVED]
[Desire General] faz1964:
Blank screen when unlocking

Hi

I am using the latest Gingervillain Rom but when I try to wake my HTC Desire my screen blanks out and is unusable for a few seconds.

Has anyone else experienced this and foud a cure :confused:

Many thanks
[Desire General] RealyPssd:
Thanks for the guide, I was wondering if there was a way to change the button.

Someone told me that N1's power buttons were breaking down after a while? Wasn't sure if it affected Desires as well.
[Desire General] graebens:
Thank you for the Guide, will try this out
[Desire General] melvinchng:
does this work for virtual key to wake phone?

I'm from nexus s.
[Desire General] donverse:
This is great, thanks a lot
[Desire General] copecu:
Hello,

¿I can change the power button to turn off only, but that does not turn on the screen?

Thank you. Greetings.
[Desire General] ovicornea:
Man, I love you, I've been looking for a way to turn screen on using other hardware button for ages. I'm using HTC Legend, so the file is legend-keypad.kl; I'm assuming every model has its own name.

Also, if you have Root Explorer installed, you can navigate to the file, mount it in R/W then open it in text editor and edit it and save it right on your phone. After that, just a reboot and voila!!! Just my 2 cents.

Again, thanks for the great tip!

I realized, though, that after a while, the trick doesn't work anymore. I think the buttons are put to sleep or something and they do not wake up the device any longer. Any tips to solve that?
[Desire General] asle18:
I tried this method but it still didn't work. I was previously using no lock and that worked fine until I upgraded to 2.3. Now no lock and widgetlocker won't work. Is there anything I can do?

Thanks :)
[Desire General] chelsea2005:
Hello

How do I use my back button to return to the search button?

Button back later corrupted and not usable.

I mean, I changed the file bravo-keypad:D
[Desire General] strumpfv:
works like a charm!
[Desire General] *Buzz*:
Wildfire ??

can i use this method on wildfire ??
[Desire General] *Buzz*:
any suggestions ??
[Desire General] baschelik:
No answer?
[Desire General] lzzar:
it's awesome

I assigned the 3d button on my optimus 3d the WAKE_DROPPED line and it works like charm!!
[Desire General] darac-t:
what does it mean "You need to pull the file first via recovery". I'm new to android and not sure what it is
[Desire General] ik8vwa:
How can you go into recovery mode and type those commands? Where can you type them? On the pc? Please would you provide detailed step to step instructions for newsbies like me?

I would appreciate that.

Thanks
[Desire General] Mr Faceless:
Just use FX Explorer with Root addon. Both are available for free on googleplay store. Then follow this video for basic understanding: http://www.youtube.com/watch?v=GhB5kJGQKsI
[Desire General] ik8vwa:
I use Root Explorer which is even better than fx explorer and following the path in /system/usr/keylayout there is no bravo-keypad.kl file.

More, a video is not the best way to help cause written instructions are far better than a video spoken with an heavy accent. Let me say the video you indicated does not help in the case we are examining here. I want to unlock the screen using other buttons. That's it.

If you can help, that would be appreciated, but with a bit of patience and FULL DETAILS.

Otherwise, don't write anything, I'm sure other people will help REALLY.
[XPERIA X2 General] Razzino:
First of all, excuse me for my english cause im italian.

Do u know if there is a way (like a registry mod) to make the x2 display switched on when a new sms (or mms) arrives?

Thank u.
[XPERIA X2 General] kepeder:
Already is possible

Just go into Settings -> Personal -> Sounds...

And go to alerts... there you just click on new textmessage and you can choose to turn on light on arrival. ;)
[XPERIA X2 General] rsx19:
display on, not notification lights
[XPERIA X2 General] bob2k4:
Besides which the notificaton lights don't work properly anyway. Anyone know a reg fix for this?
[XPERIA X2 General] anothadave:
this is one of the main things a lot of people have been waiting for. sad that theyve not bothered to fix this. the X1 did it fine.

the phone wakes up when theres an incoming call... i wonder if someone good at programming can somehow use that as a template and apply it to sms messaging...
[XPERIA X2 General] Razzino:
Ive tried so many apps and also tried to set "1", instead of "0", in the key HKLM/Drivers/BuiltIn/RIL/DisableSMSWakeUpEvent (that i think its the key that is modified by applications), but.... nothing happened! :mad:
[XPERIA X2 General] anothadave:
maybe theres more than one registry event that affects it.
[XPERIA X2 General] Razzino:
Its possible, but.... what are they??? :confused:
[Droid Eris Q&A, Help & Troubleshooting] dreris7:
I have leaked 2.1 v3 loaded, and have not been pushed the OTA yet. I understand that it has been established that leakers will not be able to upgrade, however I have not read about any leakers that have actually received the push yet, and just curious if they will receive the push (regarsless if it can be installed), or if VZW has bypassed these folks altogether?

-------------------------------------

Sent via the XDA Tapatalk App
[Droid Eris Q&A, Help & Troubleshooting] pabent:
It is the same...

The Leak v3 is identical to the OTA.
[Droid Eris Q&A, Help & Troubleshooting] dreris7:
Um...yeah, it is almost the same, but that's not what I asked. Just wondering if anyone, with any leak, has received the OTA...

Thanks!

-------------------------------------

Sent via the XDA Tapatalk App
[Droid Eris Q&A, Help & Troubleshooting] VermiThrax423:
it hasn't been pushed to me... but i am running EE 2.0.1 and like a lot of the roms out there ota is turned off
[Droid Eris Q&A, Help & Troubleshooting] thatguythatdid:
It's in my limited understanding that the ota update is downloaded as an update zip and applied during recovery. Can anyone who has this and a little understanding pull this?
[Droid Eris Q&A, Help & Troubleshooting] esmith972:
If I understand correctly, going from Leak to OTA is not possible. It upgrades the HBOOT whereas the OTA uses the old HBOOT and there isn't a way to downgrade that right now. Sorry. :(
[Droid Eris Q&A, Help & Troubleshooting] 8on3s:
The leak updated the hboot, the OTA doesn't change the hboot but is unable to install on the 2.1 since its looking to upgrade 1.5.

-------------------------------------

Sent via the XDA Tapatalk App
[Droid Eris Q&A, Help & Troubleshooting] 8on3s:
LOL sorry for the repeat esmith.

-------------------------------------

Sent via the XDA Tapatalk App
[Droid Eris Q&A, Help & Troubleshooting] dreris7:
I understand all of this, but what I want to know is in reality, what has happened? Have leakers (or rooters for that matter) been pushed the update? I.e. has anyone with 2.1 on their phone already received the update notification?

-------------------------------------

Sent via the XDA Tapatalk App
[Droid Eris Q&A, Help & Troubleshooting] esmith972:
Oh, absolutely. Someone already has the OTA link...

http://www.androidcentral.com/how-manually-update-your-htc-droid-eris-android-21
[Droid Eris Q&A, Help & Troubleshooting] dreris7:
I checked thru all of the comments in that link, and I saw no confirmed cases of 2.1 leak (or root) being pushed the OTA....only 1.5. Maybe I missed something?

Thanks for all your responses so far!

-------------------------------------

Sent via the XDA Tapatalk App