Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,884 Members 52,534 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
YukiXDA Old
(Last edited by YukiXDA; 11th June 2011 at 06:44 PM.)
#1  
Guest
Thanks Meter 0
Posts: n/a
Lightbulb [HACK] Hard keys remaping [YukiXDA] [10/06]

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.
The Following 4 Users Say Thank You to For This Useful Post: [ Click to Expand ]
 
iba21
Old
#2  
iba21's Avatar
Senior Member
Thanks Meter 1,512
Posts: 2,513
Join Date: Jul 2010
Location: Venice

 
DONATE TO ME


now i understand, you are Bill Gates

 
CopyCounsler
Old
#3  
Member
Thanks Meter 14
Posts: 46
Join Date: 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!
 
webwalk®
Old
#4  
Senior Member
Thanks Meter 42
Posts: 332
Join Date: 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 Old
#5  
Guest
Thanks Meter 0
Posts: n/a
Quote:
Originally Posted by iba21 View Post


now i understand, you are Bill Gates

^^

Quote:
Originally Posted by webwalk® View Post
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
 
webwalk®
Old
#6  
Senior Member
Thanks Meter 42
Posts: 332
Join Date: 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 Old
#7  
Guest
Thanks Meter 0
Posts: n/a
Quote:
Originally Posted by webwalk® View Post
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?
 
the0ne
Old
#8  
the0ne's Avatar
Senior Member
Thanks Meter 52
Posts: 843
Join Date: Jan 2007
Location: Melbourne
Impressive but I will pass on this one
---

Windows Phone Apps || Windows Phone Games --- want to review apps and game for windows phone and get paid for it ? Get it touch



---
 
anonymous-x
Old
#9  
anonymous-x's Avatar
Member
Thanks Meter 3
Posts: 65
Join Date: Jan 2010
Location: FL
wow, thank you for this.
 
volmar
Old
#10  
Member
Thanks Meter 0
Posts: 51
Join Date: 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?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA Xposed Tuesday: DonkeyGuard, Don’t Be a Donkey, Control Your Device – XDA Developer TV

Some applications ask for the world … more

Use Facebook Pictures as a LWP with Facebook View

One of the best things that Android has always offeredits users is the ability to tailor … more

Share Your Thoughts Anonymously with A Minimalist Social Network

Nowadays, almost everyone has a second life onthe Internet. Among the best … more

Enable Heads Up Notifications For The Sprint Galaxy S3

Heads up notifications, in case you didn’t already know, are an experimental … more