[Q] Adv Key Mapping question. Dev insight appreciated - Epic 4G Q&A, Help & Troubleshooting

Recently moved away from IOS JailBreak to Android, and can't say im used to the new FileSystem! I am trying to map keys specifically while the lockscreen is active. Most of my searches are littered w/ the global keylayout method. I noticed how the camera app remaps vol and pwr hard buttons (to zooming and controls lock respectively), while lockscreen nulls the 4 touch keys but keeps the global hard buttons, except camera. IOS JB had "activator". It is able to set button and gesture actions for the lock screen, home screen, while an app was active, and global (across the other 3). I dont need the full "activator", just wish to do lockscreen specific remappings to better utilize unused keys that otherwise have a good function. Anyone know a good FS mod shortcut or does the lockscreen.apk it's self need to be altered to achive this?

You can simply pull the key mapping file off the phone itself and edit it in notepad, save it, and send it back on. You need root though, I believe. Follow this guide and mix it up yourself! There are many tutorials on how to do this, if this certain one isn't too helpful. This one specifically is for the G1 but the steps should be very similar.
http://forum.xda-developers.com/showthread.php?t=551344

Post #4 of http://forum.xda-developers.com/showthread.php?t=1046761. Epic specific button mapping file.

Thanks, but those are, what I refer to as, the global keylayout, because it affects the phone's lockscreen, homescreen, and where ever else applicable. For Example, I am trying to mod the lockscreen camera buttons to control music, but it goes back to the camera buttons @ homescreen. I would also like to set the 4 touch buttons that are normally blocked on the lockscreen to do Media stuff as well. The keylayout overtakes too much. I'm lookin a bit more into the filesystem to day, might look into the AOSP work for better insight. Still open to any suggestions on where 2 look.

Related

[Q] Disable Transparent Bars in Start Menu & Pocket Track Changing!

Had my Touch Pro2 for about a week now, and I'm loving it (coming from a TyTN II) I've found a ROM I like, set it up the way I want it, and I'm very happy apart from a couple of little niggles. It's so fast and smooth compared to my old phone!! And the screen is gorgeous
Anyway, I've been a member of these fantastic forums for a long time now, and I don't ask many questions, since usually I can find the answers I am looking for (I like figuring things out for myself!) but I have searched and searched for an answer to these questions to no avail.
So, here goes:
1. Is there any way to disable the transparency of the task bar and soft key bar on the start menu? It annoys me having the background show through. I'm a bit of a perfectionist and don't like the fact that it's the ONLY place where it happens, I'd like a consistent experience Why on earth did Microsoft decide to do this? If it's going to be transparent then apply it everywhere! It looks a little weird since the ROM I am using (which is awesome, btw ) has custom task bar icons, and little squares show up around them when the task bar goes transparent. I guess I'm just being picky but if anyone knows a reg tweak or some other way of doing this that would be great!
2. Has anybody found any way to change tracks in WMP without taking the device out of your pocket? On my old phone, when using WMP's Toggle Screen feature, I could feel for and use the DPad in my pocket to change tracks and volume without the device waking up. On the TP2 I can change the volume using the volume keys but changing tracks causes it to wake up and go crazy in my pocket! (I've used advanced keyboard config to assign the windows key and back key to DPad left and right, since I find having both hardware and software buttons in WM6.5.X a little pointless). If I lock the phone, then the volume keys still work, which is very useful, but obviously non of the other keys do so no track changing.
I know there is a program that allows you to use the voice command button on the HTC headphones to change tracks on the HTC music tab, but I have to use custom headphones because my ears are a funny shape and normal headphones don't stay in xD Also I don't like the music tab, it seems slow and doesn't show all the album art properly. I actually like WMP, it's always worked fine for me, don't know why everyone hates it so much BTW I've disabled the standard 6.5 lockscreen and am just using the soft key unlock like in 6.1
Sorry for the epic long post and thanks in advance!

[REQ] Capacitive Button Toggle

So I've searched and found ways to disable my capacitive buttons, both the use and the lights but I haven't found any mod that will toggle their use on-off on the go. I just feel that with so many ROMS including some type of pie or gesture control I don't always need the buttons. Especially when one of my young kids is playing games on my phone and accidentally bumps the buttons. I'd love a mod that toggles the buttons almost like a lock, that can be disabled when I do need the buttons. I know I can edit the Genric.kl file and then reboot each time, but it would be really cool if someone could make a simple toggle. What do you guys think?
Sent from my... wait- I don't know what device or ROM I'm running anymore!
i can be wrong but in order to implement that type of toggle it would be necessary to reboot after the toggle so the changes can take effect. Whenever I am on an AOSP-Based rom I have a copy of my keylayout folder that I just copy of to disable the HW buttons instead of doing the changes manually.

[Q] Manually Changing the Quicklaunch Key to Camera in CM11

I'm on Madmack's 11/26/13, CM11 build and I'm trying to remap the extra quick launch button we have above the volume rocker on CM11 - basically I want it as my camera button.
I've been able to do this on other phones by manual editing the proper keyboard layout file.
The hardware keyboard layout file for the LGOP on CM11 appears to be: /system/user/gk-keypad-8064.kl
The quick launch button is Key 250 and by default its set to ASSIST (which launches the Search function oddly enough).
Normally just changing ASSIST to CAMERA and rebooting is sufficient to launch the CAMERA functions - doesn't work with my LGOP on CM11. However, once changing Key 250 to CAMERA, it does take pictures if you manually launch the camera app.
Switching it to Key 250 CAMERA WAKE oddly enough makes the quicklaunch button function exactly the same as when you press down on the screen for 2+ seconds and the home screens shrink to the center and Wallpapers/Widgets/Settings pop up.
I can tell you that changing Key 250 to POWER, VOLUME_UP, VOLUME_DOWN, HOME all work... just can't get the CAMERA function to work.
Any thoughts or ideas? Any help would be appreciated.
I have no idea but this is would be great. I hope someone can chime in to help you out.
Sent from my LG-E980 using xda app-developers app
hey, decompressed an old nandroid of the stock rom...
i'm pretty sure i had the quicklaunch button set to the default "press to launch camera/press again to snap a pic" action, and my gk-keypad-8064.kl had key 250 set to QUICK_CLIP
Can we set it to a particular app? particularly to display recent apps?
Isn't there a "buttons" section in the phone settings? I used that to switch search function to camera and tested, it works great. Only downside is its not a 2-step shutter button lol.
Hi have you tryed changing it to camera wake_dropped? ive remapped another LG phone and that was the code i used. ill try it now aswell
BraveDemon said:
I'm on Madmack's 11/26/13, CM11 build and I'm trying to remap the extra quick launch button we have above the volume rocker on CM11 - basically I want it as my camera button.
I've been able to do this on other phones by manual editing the proper keyboard layout file.
The hardware keyboard layout file for the LGOP on CM11 appears to be: /system/user/gk-keypad-8064.kl
The quick launch button is Key 250 and by default its set to ASSIST (which launches the Search function oddly enough).
Normally just changing ASSIST to CAMERA and rebooting is sufficient to launch the CAMERA functions - doesn't work with my LGOP on CM11. However, once changing Key 250 to CAMERA, it does take pictures if you manually launch the camera app.
Switching it to Key 250 CAMERA WAKE oddly enough makes the quicklaunch button function exactly the same as when you press down on the screen for 2+ seconds and the home screens shrink to the center and Wallpapers/Widgets/Settings pop up.
I can tell you that changing Key 250 to POWER, VOLUME_UP, VOLUME_DOWN, HOME all work... just can't get the CAMERA function to work.
Any thoughts or ideas? Any help would be appreciated.
Click to expand...
Click to collapse
A similar question
In looking through the forums, this thread seemed to be the closest to users having a similar situation to myself. I have an LGOP running the latest nightly of CM11 and I would also like to map the quick search button to a different function. While there are buttons options to set it to launch the camera app, it launches the default camera app and I would like it to launch the latest version of Google's camera app. Does anyone know how to do this?
Gravity box I think can pull it off
2SHAYNEZ
WEll I was searching for something similar, to remap our Quick button and assign anything to it! and I have found an xposed module which can do the job here you go: https://play.google.com/store/apps/details?id=com.spazedog.xposed.additionsgb

[mod request]

Is it possible to activate the navbar plus the hard ware keys? I would like to normally use the hardware keys but have the navbar to use the music controller or the "new" clipboard feature or just have some extra buttens. Maybe for some Tasker action or so.
Iam on OOS.
I would use this mod as well. That's how I had my Asus Zenfone 2 Laser set up. Hardware keys with back on the right and soft keys with back on the left that way I could use either hand without having to reach across the phone to press back or recents. It was like a rigged up one-handed mode.
Edit for clarification: I used Xposed to have both hard and soft keys. I'm not sure how else it could be done, but I imagine it'd be a little more difficult that a few edited lines of code here and there.
It's possible to do this currently with a few different custom ROMs. Resurrection Remix, which I currently run, has the option to enable both hardware and software keys, and it is likely that many other Lineage-based ROMs would be able to as well.
Joooscha said:
Is it possible to activate the navbar plus the hard ware keys? I would like to normally use the hardware keys but have the navbar to use the music controller or the "new" clipboard feature or just have some extra buttens. Maybe for some Tasker action or so.
Iam on OOS.
Click to expand...
Click to collapse
Use LMT launcher's pie
https://forum.xda-developers.com/showthread.php?t=1330150

Activate softkeys navigation on any stock rom

Hi, I found you can activate softkeys on any stock rom by modify the build.prop value below
- Need root and use BuildProp Editor to edit
- Searh for words: qemu.hw.mainkeys=1 and change 1 to 0 it activates the softkeys.
- Save the changed and Reboot, your hardware key will still working as well
- The softkeys function is same to the hardware keys you can long press for screenshot, turn on camera etc
I don't know how to turn off the hardware key yet, if anyone know you can share it.
You can disable the hardware button in Settings/Accessibility/Virtual Button Control.
Just thought I'd add a little tidbit to this topic that I found after a dropped my LePro3 and lost home and back hardware key function. With the app Handy Soft Keys I now have (as the name suggests) really handy software keys. https://play.google.com/store/apps/details?id=ca.yesoft.handysoftkeys&hl=sv (There's an ad-free pro version available as well). No root required. I don't think it has the full functionality of the hardware buttons with long press, but I just needed the basic ones and if that's what someone else needs as well, well, it's there.
And by the way, if you don't want to go through settings etc hardware keys can be turned on/off easily by pressing power and volume up at at the same time.

Categories

Resources