Jump to content


Photo

change action of hardware buttons

- - - - -

  • Please log in to reply
12 replies to this topic

#1
magikstar29

magikstar29

    Enthusiast

  • Members
  • PipPipPip
  • 161 posts
is it possible to modify the action associate of the hardware buttons?

  • 0
Samsung Galaxy 551 : gingerbread 2.3.6 (stock)
HTC Desire Z : ViperZ 1.1.0 (ICS 4.0.4 Sense4.1)
Alcatel OT 986 : MIUI 3.2.8 (android 4.0.4)
Huawei U8730 : gingerbread 2.3.6 (stock)

#2
Chris_67

Chris_67

    Regular

  • Members
  • PipPip
  • 105 posts
  • Gender:Male
  • Location:~/.
  • Interests:Guess what!
  • Devices:ZTE Blade, ZTE Skate
It was mentioned here.
Don't know if it was solved.

  • 0

#3
Kayusumi

Kayusumi

    Regular

  • Members
  • PipPip
  • 84 posts
  • Gender:Male
  • Location:TAIWAN
  • Devices:ZTE Skate / SonyEricsson X8
Hi, if your skate is rooted, you can enter system/usr/layout to modify skate_keypad.kl
for example, if you want to change home&menu, just exchange the code of them
But note that in recovery, the left button still stands for home...

Edited by Kayusumi, 05 October 2011 - 12:04 AM.

  • 1

#4
magikstar29

magikstar29

    Enthusiast

  • Members
  • PipPipPip
  • 161 posts
ok thank you very much

in this files i've
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED

for example if i want to invert menu and home buttons i change to
key 102 MENU WAKE
key 139 HOME WAKE_DROPPED

is it right?

Hi, if your skate is rooted, you can enter system/usr/layout to modify skate_keypad.kl
for example, if you want to change home&menu, just exchange the code of them
But note that in recovery, the left button still stands for home...


Edited by magikstar29, 05 October 2011 - 02:22 AM.

  • 0
Samsung Galaxy 551 : gingerbread 2.3.6 (stock)
HTC Desire Z : ViperZ 1.1.0 (ICS 4.0.4 Sense4.1)
Alcatel OT 986 : MIUI 3.2.8 (android 4.0.4)
Huawei U8730 : gingerbread 2.3.6 (stock)

#5
Kayusumi

Kayusumi

    Regular

  • Members
  • PipPip
  • 84 posts
  • Gender:Male
  • Location:TAIWAN
  • Devices:ZTE Skate / SonyEricsson X8
yes, or you may change

key 102 HOME WAKE
key 139 MENU WAKE_DROPPED

to

key 139 HOME WAKE
key 102 MENU WAKE_DROPPED
(I did this way)

and WAKE_DROPPED stands for wake up function
after that you can save this file and reboot

ok thank you very much

in this files i've
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED

for example if i want to invert menu and home buttons i change to
key 102 MENU WAKE
key 139 HOME WAKE_DROPPED

is it right?



  • 0

#6
Navie

Navie

    Diehard

  • Members
  • PipPipPipPip
  • 484 posts
  • Gender:Male
  • Devices:Samsung Galaxy Note GT-N7000
Does anyone know how I can edit the skate_keypad.kl file located in system/usr/keylayout please? I can't manage to edit this file on my phone.

  • 0

#7
Chris_67

Chris_67

    Regular

  • Members
  • PipPip
  • 105 posts
  • Gender:Male
  • Location:~/.
  • Interests:Guess what!
  • Devices:ZTE Blade, ZTE Skate
1st of all, you need to root your device.

Then you install ES File Explorer, start it, grant it root and go to the settings. Change the Entry for "Home Directory" to "/" (without quotes).

Now search for the the folders "system", then "usr", then "keylayout" ant tap on the file "skate_keypad.kl". Open it as "Text" with "ES Note Editor".

Now you can edit and save the keypad-file.

  • 0

#8
dadashi

dadashi

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,157 posts
  • Gender:Male
  • Devices:MonteCarlo + HTC EVO 3D
what about changing the power button to one of the home, menu, return front buttons...?

  • 0
MonteCarlo + HTC EVO 3D

#9
Chris_67

Chris_67

    Regular

  • Members
  • PipPip
  • 105 posts
  • Gender:Male
  • Location:~/.
  • Interests:Guess what!
  • Devices:ZTE Blade, ZTE Skate
Why would you do that? :unsure:

  • 0

#10
Navie

Navie

    Diehard

  • Members
  • PipPipPipPip
  • 484 posts
  • Gender:Male
  • Devices:Samsung Galaxy Note GT-N7000

Why would you do that? :unsure:



Because I bought a TPU flexi case for my phone and because the case rigid its hard to activate the current power button.

  • 0

#11
Navie

Navie

    Diehard

  • Members
  • PipPipPipPip
  • 484 posts
  • Gender:Male
  • Devices:Samsung Galaxy Note GT-N7000

1st of all, you need to root your device.

Then you install ES File Explorer, start it, grant it root and go to the settings. Change the Entry for "Home Directory" to "/" (without quotes).

Now search for the the folders "system", then "usr", then "keylayout" ant tap on the file "skate_keypad.kl". Open it as "Text" with "ES Note Editor".

Now you can edit and save the keypad-file.



Stupid phone won't let me save the edited file, I can edit now but can't manage to save.

  • 0

#12
tilal6991

tilal6991

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,781 posts
  • Gender:Male
  • Devices:ZTE Skate, Huawei U8150

Stupid phone won't let me save the edited file, I can edit now but can't manage to save.

Did you enable root mode and mount system as rw in ES File Explorer settings?

  • 0
If you like my work or if I helped, click the Plus button.

#13
Navie

Navie

    Diehard

  • Members
  • PipPipPipPip
  • 484 posts
  • Gender:Male
  • Devices:Samsung Galaxy Note GT-N7000

Did you enable root mode and mount system as rw in ES File Explorer settings?



Nope, thanks.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users