[MOD] [ZIPs] Button remaps for the L90 - LG Optimus L90

Hi fellow users,
My D415 died awhile ago so therefore I cannot make nor test any new zips. I can add any of your zips to this thread as long as you PM me the zip and another user can verify that your zip works. Have fun and be safe!
I made some zips to remap the button layouts on the LG L90 to replace the menu with recents, and to remap the button above the volume keys to a play/pause media or camera. With these zips, you do not need to remap the keylayout files yourself, reboot, or mess something up. I've used these for myself when flashing a new rom, and the zips are in attachments.
Use these zips at your own risk. I am not responsible for anything you do(or don't do). If there is an issue, please tell me so I can try to help you.
NOTE: This has only been tested on the D415 and the D405n(thanks to @razoract) with Temasek's rom so it should work with any custom LP and MM (confirmed by @brossovitch with CM 13) rom, and probably won't work for the D410.
DO NOT USE WITH KITKAT ROMS OR STOCK. AFAIK THEY DO NOT WORK
Have custom recovery and unlocked bootloader...
Instructions:​ ​1. Go into your custom recovery [CWM or TWRP]
2. Flash zip of your choice [download default zip just in case of failure]. Make sure signature verification is disabled. Zips found below...
3.???
4. Profit
D410, KitKat, and/or other users, If you PM me what button corresponds to button number(through CWM button test and I don't know what else unfortunately), I can make a set of zips for you.
Descriptions:
Note: There is no need to use the Modified zips to use recents button on SlimLP based roms because there are settings to change the Menu button to recents and flashing the Modified zips will disable long press and double tap options​
Default: Use this to revert to default keylayout [no play/pause, camera button, nor recents remap]
​
​ Modified: Remaps the Menu button to Recents and adds the play/pause button
Modified camera: Same as Modified but with camera button​ ​
Modified Samsung Style: Remaps Menu to Back and Back to Recents with play/pause button, like most current Samsung devices​
Modified Samsung Style Camera: Same as Modified Samsung Style but with camera button
​
Play/Pause: Simply adds Play/Pause button to rom [no recents remap]
Camera: Simply adds Camera button to rom [no recents remap]
Super: Maps the Quick button to Recents
Duper: Maps the Quick button to Menu and the Menu button to Recents
Brightness: Maps the Quick button to turn brightness up
Brightness Modified: Maps the Quick button to turn brightness up and the Menu button to Recents
Brightness Samsung: Maps the Quick button to turn brightness up and the Menu to Back, and the Back to Recents
Power App Switch: "Quick Button (top left button) to Power (lock, unlock and turn off) and the Power Button (right button) to App Switch (shows the running apps)". Thanks to @937foy
...​

..Reserved..

Attention D410 Users
I need you guys to test this zip and see what it does (The MODIFIED-D410.zip)
I remapped the menu button to recent button, and I think I remapped the SIM button to Search and made the Home button to wake up the screen.
There shouldnt be any danger to your device, but if it doesnt work flash the DEFAULT-D410.zip and all should be fine.
Also, if this turns out to work, I'm sure that I can make a set of universal zips
Happy Flashing!

I'm sure that 99% of you have experienced the pure agony of stepping outside and your brightness is waaay too low and you fumble to turn the brightness back up [Aaaaah], but you can't see a darn thing [noooooooo!].
I have remapped the Quick Button to turn brightness up so that this doesn't happen as melodramatically as I described it. Just press the button and the brightness goes up quickly
Tested on my D415 and it should work for the D405(N) [Sorry D410 users]
Same bat instructions, same bat warnings

How would I accces the in app menus if I flash the"Modified: Remaps the Menu button to Recents and adds the play/pause button" zip, besides for using the nav bar?

mosimchah said:
How would I accces the in app menus if I flash the"Modified: Remaps the Menu button to Recents and adds the play/pause button" zip, besides for using the nav bar?
Click to expand...
Click to collapse
Most app menus are found in the top right corner and its also the menu button is defunct in material design guidelines, and a lot of phones don't even come with a menu button If you are running UberSlim or SlimLP you don't need to flash the modified because you can just remap the button in settings. So the only way to enable the menu button is with the nav bar or choose a different zip.
Sent from my LG-D415 using XDA Forums

ardentis said:
Most app menus are found in the top right corner and its also the menu button is defunct in material design guidelines, and a lot of phones don't even come with a menu button If you are running UberSlim or SlimLP you don't need to flash the modified because you can just remap the button in settings. So the only way to enable the menu button is with the nav bar or choose a different zip.
Sent from my LG-D415 using XDA Forums
Click to expand...
Click to collapse
Yeah, I know about the settings in uberslim, but I am considering switching ROM's again because of all of the random reboots. So which zip would turn the menu button into the recent key and still allow me to access hidden or non hidden menus. Or is Xposed the only viable option besides for the nav bar? Also, some apps hide the menu if they detect that the device has a menu key, so in that case either the nav bar has to be present (I know that it could be hidden) or one has to use the menu key. Personally I find that sometimes it is easier to just press the menu key rather than fish for the settings button.

Here I got an idea, thanks to @mosimchah
I just made these zips.
The Super zip remaps the Quick button to Recents and keeps the Menu button
The Duper zip remaps the Quick button to Menu and maps the Menu button to Recents
You should know what to do now..

Hi all,
I plan to make more zips (and/or improving my current ones) but I still need your help with testing the D410 zips as I have not received any input what-so-ever..
Anyways I have a new set of keymappings for you to test out. Below I have included zip mods for Stock Lollipop for the D415 (thanks to @lerner17 for providing the default.kl from Stock Lollipop) . It likely works for the D405 and probably doesn't work on the D410.
These zips are only for Stock Lollipop. Flashing these zips on Stock KitKat or any other rom will make buttons inoperable. If you have any doubts, copy your generic.kl found in /system/usr/keylayout/ and make sure your file manager has root access and is accessible without pressing any button (place it on a home screen). If buttons are inoperable, replace the generic.kl with the one you backed up.
The Stock.zip has the default keylayout and will undo the Stockified layout.
The Stockified.zip should remap the quick button to play/pause media and the Menu button to Recents.
Again, have custom recovery (CWM or TWRP) and flash zips. I assume no responsibility for whatever you do to your device or whatever you don't do to your device.
And as always, I'm open to input (and criticism) and welcome it

@ardentis
Thank you for this. The button remap flash is so convenient and easy. Works on all custom ROMs that I've tried. (CM12.1, CM13, Orion-LP) So amazing. Thank you!
Side note. The button allows pictures to be taken, but hold for video video.

Hey can you make a .zip that can work with google on tap in cm13 but have the same effect that the duper zip does? Also how do I uninstall this

yasiro500 said:
Hey can you make a .zip that can work with google on tap in cm13 but have the same effect that the duper zip does? Also how do I uninstall this
Click to expand...
Click to collapse
I can try making an on tap zip but no promises. You can uninstall a zip with another zip but if you want the default keymap flash default.zip
Now on tap can't be activated by a key command so I cant make a zip for it. :/

The button mod no longer opens camera on SlimROM (6.0.1). It does toggle shutter while camera is open.
Still great work man.
Sent from my SM-T230NU using XDA-Developers mobile app

brossovitch said:
The button mod no longer opens camera on SlimROM (6.0.1). It does toggle shutter while camera is open.
Still great work man.
Sent from my SM-T230NU using XDA-Developers mobile app
Click to expand...
Click to collapse
Hmm weird. It might be some sort of code change so I dont think I can help unless you can give me the default.kl. Isnt there an option to remap the button to open the camera in SlimRom? Or is it just CM13 ?

Hi !
Thank you for this buttons remap ! Now is more confortable use CM13 bith the recent apps in the menu button, and Google Now on Tap on the home.
Great job !
Enviado desde mi LG-D405n mediante Tapatalk

ardentis said:
Hmm weird. It might be some sort of code change so I dont think I can help unless you can give me the default.kl. Isnt there an option to remap the button to open the camera in SlimRom? Or is it just CM13 ?
Click to expand...
Click to collapse
Actually, neither have that option. Hence why I use your zips. It's not a big deal. There's the double tap power button to open camera. Works fine. One of my L90s has a jammed/broken quick button anyhow. So I use the power button option on it instead.
Thank you for the great work, BTW.
Sent from my LG-D415 using XDA-Developers mobile app

I have remapped the Quick Button (top left button) to Power (lock, unlock and turn off) and the Power Button (right button) to App Switch (shows the running apps).
Tested using aosp-6.0.1-20160519-w7 on LGD415d52789b.
Code:
key 102 HOME
key 116 APP_SWITCH
key 250 POWER
Ill email the file to @ardentis

937foy said:
I have remapped the Quick Button (top left button) to Power (lock, unlock and turn off) and the Power Button (right button) to App Switch (shows the running apps).
Tested using aosp-6.0.1-20160519-w7 on LGD415d52789b.
Code:
key 102 HOME
key 116 APP_SWITCH
key 250 POWER
Ill email the file to @ardentis
Click to expand...
Click to collapse
Its up

thanks a lot
i want to give you thanks, i was seaching something else because some xposed apps doesnt works. thank you by this job.

I flashed the Modified zip for the d410 but the home button doesnt' work, it shows the recent apps.
The buttons work like this: Back Button/Back - Home Button/Recent Apps - Menu Button/Search - Sim Button/Nothing.

Related

Would you recommend remapping the volume buttons?

Just wondering if people have done it and didn't like it, or vice-versa. It does seem bad for the hardware, but I can't stand softkeys/button saviour.
If you're using nookie Froyo, you can try the MENU/BACK soft buttons in the status bar mod, instead of remapping the vol+/- buttons. I've been using it since it came out, and can confim it works for nookie Froyo 6.7. Here's the link to the original thread: http://forum.xda-developers.com/showthread.php?t=932631
It does have it's issues, mainly with the stock browser, and causing it to FC. Other than that I have not noticed any other problems.
If you are interested in useing the mod, but don't know how to install it, let me know. I'll pm you or post instructions.
I absolutely recommend remapping the volume buttons. Softkeys is nice, but kind of a pain sometimes. For instance, when I would view pictures in the XDA APP, I would have to restart the app instead of backing out, for some reason softkeys wouldnt let me back out of the picture viewer. It's just much easier to have the menu and back buttons always available than rely on software. I installed volume volume control if I need to adjust volume for some reason.
Is there an app that puts volume in the status bar that anyone knows of?
buffnutz1 said:
Just wondering if people have done it and didn't like it, or vice-versa. It does seem bad for the hardware, but I can't stand softkeys/button saviour.
Click to expand...
Click to collapse
Yup... I've got a Pandigital Novel(white v2) w/custom fw and it'd be essentially useless w/o re-mapping the vol keys to menu and back along with soft-keys in the notification bar...
NC has one up on the WPDN though, it has the n home key plus the 2 vol keys and volume can be controlled through setting or a quick-settings app anyways or by adding soft-keys... still no substitue for physical keys or capacitive screen keys though, unfortunately... (spoilt by gtab with the full complement...)
-------------
buffnutz1 said:
I'm sure you guys know where I'm screwing up. After I adb pull, I only get this
/system/usr/keylayout/twl4030-keypad.kl -> ./twl4030-keypad.kl
/system/usr/keylayout/qwerty.kl -> ./qwerty.kl
/system/usr/keylayout/AVRCP.kl -> ./AVRCP.kl
but it says to edit " 'TWL4030_Keypad.kl' and 'omap_twl4030keypad.kl' "with your text editor of choice; I used vi, always a safe choice.
I don't have the omap. what should I do?
Click to expand...
Click to collapse
Just modify the qwerty.kl in the place of omap. That's what I did and things are working fine.
--ex
Love my remapped buttons and i saved the originals so i can go back anytime i wish.
buffnutz1 said:
Is there an app that puts volume in the status bar that anyone knows of?
Click to expand...
Click to collapse
I am on the stock 1.1 rooted and have mapped my volume buttons - I have tried the other ones, and I MUCH prefer having hard buttons.
I downloaded a volume app "Volume Master Free". It has about 5 different volume controls, but I only use the system volume and the media volume controls.
I use Zeam as home screen; and I put a shortcut to Volume Master on the bottom right of my Zeam shortcut bar. It works very well. I do need to go to the home screen to change volume; but I can tap on the notification bar and toggle mute, so that works for me.
Yes, it makes a huge difference on the stock rom and froyo -- though honeycomb's soft buttons eliminate the need to do so.
Can't recommend remapping the keys enough. On froyo it makes a huge difference in functionality on. The device, life is a pain without it.
how do you remap the vol buttons? i would love to do it
TweetyBear said:
how do you remap the vol buttons? i would love to do it
Click to expand...
Click to collapse
Go here for instructions:
http://nookdevs.com/NookColor_Remap_volume_buttons_for_back_and_menu
--ex
I remapped.
I also recommend remapping your volume buttons. It's handy having tactile buttons for the back and menu functions.
What really sold me on remapping was that I didn't like to have a Softkeys button floating on the home screen. Without a floating button, I would have to double tap the hardware "N" button to bring up the Softkeys interface, then hit "menu" or "back." If I have to double tap a hardware button to use "menu" or "back," I might as well just remap those functions to the volume buttons and use a single tap.
evilxenu said:
Go here for instructions:
http://nookdevs.com/NookColor_Remap_volume_buttons_for_back_and_menu
--ex
Click to expand...
Click to collapse
thanks. will attempt over the weekend
can remapping the volume buttons be done when running cm7 nightlies off SD ?
I didn't find a definitive answer
I ran with the CM7 softkeys, Button Savior, remapped volume keys and I just finally settled on zMooth.

How to remap the G-key to any app?

I saw threads remap the g-key to camera. But I want to map it to a volume app.
Thanks for the help.
Here is what i found;
1.Firstly, you need a rooted LG Optimus Black.
2.Find the file“TWL4030_Keypad.kl”, it’s in /system/usr/keylayout/
3.Backup the file, copy or rename.
4.Then open the “TWL4030_Keypad.kl”, scroll down to 3rd line from the bottom, it should be “key 95 GESTURE”.
5.If you want to use your phone’s “G Button” as camera button, change it to “key 95 CAMERA WAKE_DROPPED” (Once you launch the camera app, you can press the “G button” to take a picture immediately)
6.If you want to use use your phone’s “G Button as power/lock button, change it to “key 95 POWER WAKE_DROPPED”
7.Save the changes and reboot the device.
also found in here : http://forum.xda-developers.com/showthread.php?t=1194058
You get the trick right? With a little luck you can remap it to anything you want. You can write volume i guess... But volume has 2 options "+" and "-". So even if you manage to do it you will only be able to remap one of them. It's either "volume +" or "volume -" Since G is only one button.
Thanks a lot man!
The Volume i mean is just an ordinary app from the market called "volume toggle free". So an instruction about remapping the gkey to any app should work. How?
BoyBawang2 said:
Thanks a lot man!
The Volume i mean is just an ordinary app from the market called "volume toggle free". So an instruction about remapping the gkey to any app should work. How?
Click to expand...
Click to collapse
Sorry for the confusion. I just saw the volume part. But no need to get excited, i just wanted to help. I'm sure someome knows it and will post it. Good day, man...
do you how to change "g" key to wake up the screen. I'm using marvel 4

Menu buttons=touch?

Is it possible to install/flash the touch buttons for the menu (back, menu, home etc) on a TW custom rom?
i also would like to use my physical button for something else.
Motawa88 said:
Is it possible to install/flash the touch buttons for the menu (back, menu, home etc) on a TW custom rom?
i also would like to use my physical button for something else.
Click to expand...
Click to collapse
If I recall correctly, you should be able to get softkeys (that's what they're called) by simply adding qemu.hw.mainkeys=0 to your build.prop using a text editor.
That's works for aosp not sure about tw but if not you could install button saver from market and you can reroute buttons with a root explore and change some numbers what would you like the home button to do but it my still change the home soft key if you change the real button
sent from the darkness
ttibbetts83 said:
That's works for aosp not sure about tw but if not you could install button saver from market and you can reroute buttons with a root explore and change some numbers what would you like the home button to do but it my still change the home soft key if you change the real button
Click to expand...
Click to collapse
Nope. Works on touchwizz.
Have a look at this too
http://forum.xda-developers.com/showthread.php?t=2249000

anyone interested or know how to change task manager hardkey to menu key

Miss having the menu key..example go to xda app and cannot pull up other options because of this ridficulous hardkey when alternatives exist for task switching. This will need remapping..have seen it done for camera and power but wondered if there is any interest in this. I do I not have a solution but am asking. Thanks.
All you have to do is long press that button and becomes menu
EVOme said:
All you have to do is long press that button and becomes menu
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=56214304&postcount=14
remapped it in case anyone is interested
think long press goes to S finder
Good work, but long press is menu, I use it all the time.
--drl
I used xposed additions module to remap it. Also mapped the volume keys, home and power buttons to change music, play/pause and activate torch respectively while I was at it.

How do I customize the Menu/Recent button in CM13

I just recently flashed the CM13 and I found out the recent apps has to be accessed using the home button! I prefer the original lollipop button layout so I went searching around and found the 'Button' option in the settings and I was able to customise the home button, power button and the volume rocker but there was no option to customise the menu key to use it to access the recent apps!
I searched the settings for Menu and it showed up there but when I tap it, it goes back to the 'Button' options but it doesn't appear anywhere in there.
What do I do?
Same here, its frustrating. Do you have solved your problem?

Categories

Resources