Top 5 Apps for 2014 + Top Xposed Mod of 2014 – XDA TV

Its that time of year where you look back and remember the things that happened … more

NVIDIA SHIELD Tablet Gets Android 5.0.1, OTA Available

The NVIDIA SHIELD Tablet is the latest Android-powered device released by famed GPU … more

FXP Team Delivers Lollipop to Various Xperia Devices!

From all of us here at XDA-Developers, we’d like to wish you Happy Holidays! If … more

Turn Your Camera Into a Live Puzzle Game

The classic sliding puzzle game hasnt changed much, if at all, over the years. Dating all the way … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Mapping Camera on the back key

OP vbetts

3rd April 2014, 08:37 PM   |  #1  
vbetts's Avatar
OP Senior Member
Flag Toledo Ohio
Thanks Meter: 55
 
992 posts
Join Date:Joined: Jun 2010
More
I'm doing a few tweaks on my phone, mainly not using the capacitive keys as menu and back, and using the home key as the app switcher, and using the nav bar for those three tasks. Here's what I've got so far.

I edited a few files under system/usr/keylayout

The Menu and Search key layouts were found under sec_touchkey.kl(Home was also found under this, but I had to also edit sec_keys.kl and sec_key.kl to get the home key as the app switcher)

Here's the default settings.

key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
key 102 HOME
key 217 SEARCH

Here's what I set them to.

key 139 CALL VIRTUAL
key 158 CAMERA VIRTUAL
key 102 APP_SWITCH
key 217 SEARCH

Changing the roles of keys 139 and 102 worked, but Camera does not open the camera. I've tried assigning different roles to key 158 and they've worked except for the camera role. So I'm thinking CAMERA is not the correct event name to open the camera up....

http://developer.android.com/referen...KEYCODE_CAMERA

That's where I got the keyEvent listings from.

Rom is in my signature.
Last edited by vbetts; 3rd April 2014 at 08:42 PM.
4th April 2014, 04:42 PM   |  #2  
vbetts's Avatar
OP Senior Member
Flag Toledo Ohio
Thanks Meter: 55
 
992 posts
Join Date:Joined: Jun 2010
More
Bump!
7th April 2014, 02:12 PM   |  #3  
vbetts's Avatar
OP Senior Member
Flag Toledo Ohio
Thanks Meter: 55
 
992 posts
Join Date:Joined: Jun 2010
More
Help me out here guys!
8th April 2014, 02:15 PM   |  #4  
vbetts's Avatar
OP Senior Member
Flag Toledo Ohio
Thanks Meter: 55
 
992 posts
Join Date:Joined: Jun 2010
More
I'm just gonna keep bumping every day.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes