Updated Android Lollipop Preview Images – XDA TV

The Android Lollipop Preview Images are now available! That and much more news is … more

Get a Complete Set of Logs with Andy Log

The importance of proper logging is undeniable. No, we’re not talking about lumberjack work. … more

Try Some Android Lollipop Applications on Your Device

Android 5.0 Lollipop has been officially announced and lucky users of Google Nexus 5 … more

AutoCon Manages Your Connections to Perserve Battery Life

As we’ve talked about in the past, battery life is still somewhat of a sore … more
Post Reply

[HACK] Hard keys remaping [YukiXDA] [10/06]

OP YukiXDA

YukiXDA
10th June 2011, 05:27 PM   |  #1  
Guest
Thanks Meter: 0
 
n/a posts
Hi,
Here is a methode to remap the hard keys functions as you want, I've done it for HD2 devices in this thread http://forum.xda-developers.com/show....php?t=1114737 but it's exactly the same thing for other HTC devices under WP7 and surely can be adapted for other devices like LG and Samsung.

First to know, there is a list of a function but there isn't a way to affect a long press or double press for now, it don't work like this. (but there is surely a way I won't search since it's good for me now)
For exemple When you long press Search (home button on hd2) you obtain Speech recogntition. If you affect Search to another key you'll obtain too Speech recognition when you'll long press this key.

Second, camera (green on hd2) and power (red on hd2) hard keys run under screen off, it's not the function, So if you wan't a function not run under screen off, just use the template in which it's on another hard key.

To achieve that you have to edit the dll keybdpdd_htc.dll you can find in your ROM (in IMGFS/OEM) section (there are equivalents for aother devices as HTC).
To decompress a rom and rebuild use the package I've post in my thread for HD2.
Don't take it from another rom since it hasn't the same location place in memory or you should have to relocate it.

In this module, edit the file S001, in which you can find this part:



On the right in red you can find the functions.
RC_PLAY is the bluetooth function so Play/pause on press, Skip on double press, Answer when receive a call and End call when in call, Quickly call a contact by speech recognition on long press.
RC_UP and RC_DOWN are bluetooth volume but are usually not used by HTC as it use only VOL_UP and VOL_DOWN
CAMSTEP_1 is autofocus and CAMSTEP_2 is camera launcher/shot
SEARCH is search when press and Full speech recognition on long press.

Just after each serie of FF FF FF FF in yellow, you can find a number.
So you can easily find that for exemple that 74 correspond to the function RC_PLAY

At top in blue you can find attribuated functions in the dll for launching actions. It's a serie starting at 00 00 and finishing at 0B 00. For each item there is the associated function.

So starting of the Hard keys we have and the functions we already know we can easily deduce this mapping:
Bluetooth Play | 00 | 74 | RC_PLAY
Bluetooth Vol_up | 01 | 75 | VOL_UP
Bluetooth Vol_Down | 02 | 76 | VOL_DOWN
Power | 03 | 81 | POWER
Camera short press | 04 | 83 | CAMSTEP_1
Camera full press | 05 | 82 | CAMSTEP_2
Volume up | 06 | 75 | VOL_UP
Volume down | 07 | 76 | VOL_DOWN
| 08 | 7F | TOGGLE
Windows | 09 | 5B | START
Search | 0A | 7C | SEARCH
Back | 0B | 1B | BACK

So if you want for exemple the function RC_PLAY instead of the Camera hard key you just have to change 05 00 82 by 05 00 74 in the blue section.

Save and rebuild your rom, you've got it.
Last edited by YukiXDA; 11th June 2011 at 06:44 PM.
The Following 4 Users Say Thank You to For This Useful Post: [ View ]
10th June 2011, 05:36 PM   |  #2  
iba21's Avatar
Senior Member
Flag Venice
Thanks Meter: 1,515
 
2,533 posts
Join Date:Joined: Jul 2010
Donate to Me
More


now i understand, you are Bill Gates

10th June 2011, 06:25 PM   |  #3  
Member
Thanks Meter: 14
 
46 posts
Join Date:Joined: Mar 2008
Will someone please upload their keybdpdd_htc.dll from their HTC device and label it? I really would like to see an HTC arrive, but others are welcome.

I left my phone at home today (accident) and want to look into this ASAP!

Thanks in advance for all that help out here!
10th June 2011, 06:41 PM   |  #4  
Senior Member
Thanks Meter: 42
 
332 posts
Join Date:Joined: Dec 2010
thats nice but i think it only works on your hd2
since you have to flash the edited rom

and i believe we cant flash custom (or hex edited) roms
only hd2 is able to flash unsigned roms..
YukiXDA
10th June 2011, 07:25 PM   |  #5  
Guest
Thanks Meter: 0
 
n/a posts
Quote:
Originally Posted by iba21



now i understand, you are Bill Gates

^^

Quote:
Originally Posted by webwalk®

thats nice but i think it only works on your hd2
since you have to flash the edited rom

and i believe we cant flash custom (or hex edited) roms
only hd2 is able to flash unsigned roms..

And what about all roms unsigned/signed by cross the method provided by ansar, for ex for HD7: http://forum.xda-developers.com/show....php?t=1028398
10th June 2011, 09:25 PM   |  #6  
Senior Member
Thanks Meter: 42
 
332 posts
Join Date:Joined: Dec 2010
as far as i know, these roms are still signed
and untill now there is no way to self-sign the roms.
i have asked ansar once but didnt get the reply i was hoping for, because it looked like he had provided a custom rom by mixing bootloader and os from different versions in order to unbrand them.

still, with the method you linked you are still flashing the signed rom,
if you only flash the unsigned one it wont work.

now if you would hex the 2nd, the signed rom it would break the crc and shouldnt be able to flash properly, but i can be wrong...

otherwise it may be a simple task to jailbreak nodo
YukiXDA
10th June 2011, 10:04 PM   |  #7  
Guest
Thanks Meter: 0
 
n/a posts
Quote:
Originally Posted by webwalk®

as far as i know, these roms are still signed
and untill now there is no way to self-sign the roms.
i have asked ansar once but didnt get the reply i was hoping for, because it looked like he had provided a custom rom by mixing bootloader and os from different versions in order to unbrand them.

still, with the method you linked you are still flashing the signed rom,
if you only flash the unsigned one it wont work.

now if you would hex the 2nd, the signed rom it would break the crc and shouldnt be able to flash properly, but i can be wrong...

otherwise it may be a simple task to jailbreak nodo

But some roms he provide don't had nodo before, so he should have the method, no?
26th June 2011, 12:37 PM   |  #8  
the0ne's Avatar
Senior Member
Flag Melbourne
Thanks Meter: 52
 
843 posts
Join Date:Joined: Jan 2007
More
Impressive but I will pass on this one
27th June 2011, 12:14 PM   |  #9  
anonymous-x's Avatar
Member
Flag FL
Thanks Meter: 3
 
65 posts
Join Date:Joined: Jan 2010
More
wow, thank you for this.
27th June 2011, 01:22 PM   |  #10  
Member
Thanks Meter: 0
 
51 posts
Join Date:Joined: Nov 2008
I can't understant a bit, but is it possible to wake up the LGs with the home button instead of the power one?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes