Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,340 Members 43,962 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Power button is dead

Tip us?
 
GabberPL
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Mar 2014
Question [Q] Power button is dead

Hi!

I `ve got a problem - power button in my ACE2 is down. It`s most likely hardware problem. So that, I want to use the warranty.

But I cannot, due to custom ROM inside.

So that`s where my question come from - how can I install stock ROM on my device? So far, I can`t use ODIN - because I can`t enter DOWNLOAD MODE (no power button = no power menu = no key`s combination)
I see two options:
- an app that go`es to download mode from the interface - any help would do, I cannot find anything in the G.Play
- changing hard keys mapping (f.e. vol up could replace power) - is that possible at all?
I`ve already learned, that hard keys mapping location is in:
/system/usr/keylayout/Generic.kl
and mapping looks like this:
key 142 POWER WAKE
key 143 POWER WAKE
key 152 POWER WAKE
key 115 VOLUME_UP
So what can I do to replace this two keys?
 
GabberPL
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Mar 2014
Problem solved:

File changed:

system/usr/keylayout/gpio-keys.kl

Mapping:

key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 172 HOME WAKE_DROPPED

Replacing VOLUME_UP with POWER works just fine.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Play Music on Android Wear with Stellio Music Player

Android Wear smartwatchesare growing inpopularity every day. Some devices have already … more

Schedule is up for xda:devcon ’14

With xda:devcon ’14 just around the corner, and the venue close to selling out, there is a lot … more

aLogcat Returns Thanks to XDA Love

The developers of Android, that is Google, gave users several great debugging tools that can be used in … more

And the Winners in the XDA Pebble Development Challenge Are…

Almost two months ago, we set out with Pebble to findthree amazing … more