Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,011 Members 47,842 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


Forums Added for the LG G Watch R and Samsung Gear S

A little over a week ago, LG “inadvertently” let the world know about the … more

Secrecy App Goes Open Source, New LG Android Wear Device! – XDA Developer TV

Secrecy encryption app goes open source! That and much … more

Pushbullet Updated with SMS Send Ability

Pushbullet is one of thoseapplications that every Android lover should have installed on his or … more

[OTA] Nvidia Shield Tablet Receives its First Update

The Nvidia Shield Tabletis the latest toy from one of the largest desktop graphics … more