Activate softkeys navigation on any stock rom - LeEco Le Pro3 Guides, News, & Discussion

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.

Related

Remapping soft keys

So I'm looking at remaping the soft keys (specifically the search) on the front of the phone. There appears to only be one "SEARCH" in the /system/usr/keylayout/vision-keypad.kl - key 217 (see code below) - that if changed has the following 2 effects:
1. Alters the functions of both the soft key on the front of the phone and the search key on the hardware keyboard. When I remap one, they both change to match your modification.
2. When changed, long press functionality of the soft key is lost. It will only accept a short press.
"SEARCH" can be successfully changed to "MENU", "BACK", and "CALL" (possibly others I have not tried) then pushed to the phone in recovery and function perfectly. However, when I map it to be the "POWER", the soft key does nothing on press, while the hardware search key on the slide-out works fine.
Has anyone found a way around this?
We remap the track pad to wake because we dont like using the top mounted power button, but it only does a half-ass job because when you want to shut the screen back off, you still have to reach for the power button. I think the track pad wake mod needs its own 'bacon bits'
Code:
# column 0
key 185 USER3 WAKE_DROPPED
key 100 ALT_RIGHT WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 28 ENTER WAKE_DROPPED
key 38 L WAKE_DROPPED
key 14 DEL WAKE_DROPPED
key 54 SHIFT_RIGHT WAKE_DROPPED
I think you're out of luck with regard to an easy fix. I just did a quick experiment with evtest and it looks like the softkeys on the screen are just areas of the touchscreen that the window manager treats specially and generates synthetic key events in response to touches on, instead of being actual mappable keys.
teferi said:
I think you're out of luck with regard to an easy fix. I just did a quick experiment with evtest and it looks like the softkeys on the screen are just areas of the touchscreen that the window manager treats specially and generates synthetic key events in response to touches on, instead of being actual mappable keys.
Click to expand...
Click to collapse
Well the are mappable. I managed to make it be the menu button and the back button just fine. It just doesnt want to be the power button..
The same key can be used as a single quick press or a long press. It is considered two different keys though. So you would have to figure out what the long press equivalent of the search button would be and change that one.
The way this thread can stay in developmental, is show steps on how you are remapping the keys.
For others to gain knowledge or this thread is moving to Q&A
Mikey1022 said:
The way this thread can stay in developmental, is show steps on how you are remapping the keys.
For others to gain knowledge or this thread is moving to Q&A
Click to expand...
Click to collapse
Maybe I'm off here, but if I was making this post to show the steps, would that not fall under a "How To" or "Guide"? My goal here is development. Development –noun 1. the act or process of developing; growth; progress. Or in my case, I'm in the act/process of developing a remapped key file to make the search soft key into a power key, and to then share with the rest of the forum. My progress so far is that I've managed to map it to a menu key and a back key with no problems, and am reaching out to others for help as to why it is that when I change it to the power key, it doesn't accept my changes.
Its kinda a gray zone, in that if I were to successfully remap it to the power button and post the file here, it would, technically speaking, be less of a development thread than it is now - because it would be finished developing and instead, merely contain a file with instructions.
However, as requested, and for those who are interested:
The file you are looking for, is as mentioned in the OP, "vision-keypad.kl" and is located in /system/usr/keylayout. You can edit it with a text editor like Notepad++. The line that I am looking at, also refer to OP, is key 217.
I'm thinking now, after messing with it some more, that maybe because it is a soft key it cant be mapped to power, being that as soon as the screen shuts off it no longer functions... But then again there exists widgets that, upon press, turn off the screen and they function fine, so I see no reason this shouldn't. I'll keep you posted on what I find, and would appreciate any help in the mean time.
i'd love to be able to map a longpress menu and a longpress back action. Cyanogen 6.1 allows longpress back to be turned into force kill foreground process. So there is a way to capture longpress on those 4 keys, the question is, what does the system read that keypress as and how can it be mapped.
sundar2012 said:
i'd love to be able to map a longpress menu and a longpress back action. Cyanogen 6.1 allows longpress back to be turned into force kill foreground process. So there is a way to capture longpress on those 4 keys, the question is, what does the system read that keypress as and how can it be mapped.
Click to expand...
Click to collapse
So it is doable! There are some .bin files in the /system/usr/keychar folder that correspond to the .kl files in the ../keylayout folder, but i havent been able to read them. Maybe thats it.. Gonna figure that out when I land tomorrow and get my computer set up
I changed the Search function key to Camera and it only works on a long press and I get no result on a short press. So maybe the function you are trying to rename the Search key to has to be specific to either way i.e. short or long press but not both.
So it will either work as a long press key for some functions or a short press key for others.
Read the window manager source (from AOSP or CM), determine what scancodes it synthesizes in response to touches or long-touches on the softkeys, edit keylayout accordingly.
Doesn't ButtonRemapper from Android App Dev section work on G2? :S
hey guys, i dont know if you all figured this out or not, I just got the g2, and to remap the key to power button you have to change it to "ENDCALL" not "POWER", after, reboot and voila! your search button now acts like a power button!!!!! Hope this helps!!!!!
Need to Map Back button to one of the soft key
Rceently I bought HTC Desire Z (no warranty), and I am facing the problem with 4 bottom buttons of the touch screen (menu, back, home and search). So I am planning to do hardware map for one of the softkeys to BACK button.
Could you please provide me step-by-step installation of all the softwares and the procedure I need to do for updating "vision-keypad.kl" file. Appreciate your help.
My one more doubt is that what is the difference between "WAKE_DROPPED" & "WAKE". I have seen these keywords in ".kl" file in GITHUB.
Please give me reply ASAP. I am frustrated with the way the mobile is working. Just imagine how it will be if back button stop working and you are in the middle of some application. I restarted my mobile some dozens of times.

[Q] Adv Key Mapping question. Dev insight appreciated

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.

Enabling ICS virtual softkeys bar

Hello. Physical soft buttons (back, home, multitasking) on my HOX are not working anymore, I am sure it's a hardware problem but now I really cannot send it back to HTC as it will take forever, so I think I will fix it myself (at least try) as soon as spare parts start being sold and after I see some disassembly tutorials on the internet.
But with no physical buttons the phone is really hard to use, so I decided to unlock and root to be able to use button savior. However I am not completely satisfied with it as the multitasking button for button savior simply won't work and other buttons are a bit laggy.
So I ask... is there a way to enable the ICS native softkey bar while keeping sense 4.0?
Alternatively, do you know other apps such as button savior but with the multitasking button working properly on ICS?
Thanks!
if i remember correct, we must edit some code in framework-res.apk
framework-res.apk\res\values\bools.xml
Code:
<bool name="config_showNavigationBar">true</bool>
some tweak info from HD2 here http://forum.xda-developers.com/showpost.php?p=20604062&postcount=2
thanks. Never really done any modding before, I guess time has come to learn something new
I do not know where is the problem with one x
I just got new one but soft keys not work

Mapping the hardware keys?

Is it possible to map the menu key (long press) to show all recent apps without installing a custom rom? I am willing to root to get this function but I really don't want to deal with custom roms. Is there maybe an app or something I can flash that can do this? I'm currently stock unrooted with Nova launcher, which only allows me to map the menu key (long press) to recent apps if I'm at the home screen.
I haven't been able to do what you're asking, but have had success enabling the onscreen soft keys. This requires root:
http://forum.xda-developers.com/showthread.php?t=2022058
Some things are a little wonky with soft keys: the top entry of the call log is cut off and fast forwarding video with the default player while in landscape mode doesn't work. Small price to pay IMO for easy access to the multitasking menu.

[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

Categories

Resources