Related
I would like to find a way to modify the amount of time the backlight is on for the bottom buttons. I know there is a MOD that uses these for notification in place of the LED we don't have; so I am guessing someone knows how to modify this setting. I would like to be able to make the backlight remain on anytime the screen is on. I am more than willing (and would actually like to) to do the work if someone here can get me started.
Thanks
Jeff
no one has yet found a way to do this, not sure if it's possible, but who knows.
https://github.com/project-voodoo/backlightnotification/tree/master/liblights/
^ that's neldar's work for backlight notifications, lights.c is the modified file and lights.c.original is what was modified. go ahead and play with that to see what you can find out.
Thanks for the info and link. I will certainly look into it and see what I can do. Persistance may pay off eventually!
Jeff
actually the epic 4g has this setting built in. on that phone the slide-out keyboard back light has the same timer as the 4 soft keys and you have the option to sync both to the screen.
so maybe posting over there to or just getting the epic source would help.
a.vandelay said:
actually the epic 4g has this setting built in. on that phone the slide-out keyboard back light has the same timer as the 4 soft keys and you have the option to sync both to the screen.
so maybe posting over there to or just getting the epic source would help.
Click to expand...
Click to collapse
the setting is still tied to liblights.c and it isn't tied to the length of the screen timeout, it's the softkeys tied to the keyboard keys (which use the same settings/binary)... the keyboard is just an extension of the softkeys so the solution would still lie in modifying liblights.c
Just get one of the i9000 roms with the setiron kernel, it has backlight notifications among other things.
Introduction:
This mod disables the actions of the capacitive front buttons on the S7. Honeycomb has the soft buttons on the statusbar so the capacitive buttons are redundant. The S7 is one of the few tabs to officially recieve Honeycomb after product launch and hence one of the few HC tabs to have capacitive buttons.
Unofficial ports of HC to devices do not count.
Requirements:
Any HC based rom
Clockwork mod
Installation:
Download Button disabler.zip
Copy to 'sdcard'
Reboot into clockwork mod
Flash zip
Finished
Notes:
Button enabler.zip is also available to revert this mod, flash in the same manner.
Do not attempt to manually flash this onto a 2.2.x based rom, it will work correctly which means that you will not be able to exit any apps and essentially render your device useless until removed. (It cannot be flashed onto a 2.2.x based rom regardless, the installer will silently fail)
I do not know how to disable the LEDs under the buttons, they are disabled in an entirely different manner, open to suggestions
If you can think of a really good use for the front buttons, I may make a mod for it:
Keep in mind the button map is global, you cannot easily make it have app-specific actions
Because of this I would recommend against having it launch specific apps
If you wish to modify the buttons yourself, the file location is: system/usr/keylayout/ATA2538_capkey.kl
Thanx, man. Will give it a try. Sometimes those buttons get annoying for ex. when you hit them accidently while playing a game
Awesome! Now if we could get the lights disabled my streak would be perfect!
Sent from my Nexus S 4G using XDA App
this zip is a blessing thanks
If its not too much trouble. Could you show me how to undo it?
Sent from my Dell Streak 7 using xda premium
flash button enabler
Omg I totally skipped that part. Man, talk about braint fart.
Sent from my Dell Streak 7 using xda premium
Not sure if this will help...
The HTC Flyer is a GB device that got an OTA update to HC also. In their thread on enabling their buttons this post mentions how to turn on and off the lights for the buttons. Perhaps it will be a useful hint to disable them on the Streak 7.
http://forum.xda-developers.com/showthread.php?p=19278086
Capacitive buttons in HC
It's not, the s7 HC kernels dont export flags to allow you to change the lights.
The S5 and possibly S7 3xx kernels exported flags so you could easily play with the values.
The only way would be to modify and recompile the kernels, the HS kernels might have it exposed as I've bugged DJ_Steve about it previously, but I use the stock kernel.
Thank you man! it works
Is it possible to remap one of the cap buttons to make the streak screen sleep/wake?
Where would one find the script for the power button to copy to the mentioned key-mapping location for say the capacitive home button?
Sent from my PC36100 using XDA
anyone know where to get a hold of this zip? the link in the OP is broken.
autonami said:
anyone know where to get a hold of this zip? the link in the OP is broken.
Click to expand...
Click to collapse
Look here: http://d-h.st/users/TheManii/?fld_id=3888#files.
Im working on porting gweedo767's touch recovery to the incredible. I do not own an incredible so i need people to give me feedback so i know what to change. Once i get a good working fakeflash i will release an installable recovery image. If anyone wants to donate to me for me to get my own incredible that would be much appreciated and will make the process quicker.
Here is a youtube video I made of how it works: ------> VIDEO
4 ways to use recovery:
volume rockers
soft keys on bottom of screen
capacitive buttons
swipe gestures (up/down = scroll && left = back && right = select)
This will not install ANYTHING on your phone. It is just a test drive to see what it is like. This loads the files into the ram and runs them from there. As soon as you reboot everything will be back to the way it was. This does not change/alter ANY files on your phone.
I need to know what sort of things i need to change like:
swipe sensitivity
font size
order of soft keys on bottom of screen
anything else......
Please let me know how i can make this better
Click to expand...
Click to collapse
Here is the link to a FAKEFLASH: --------> http://sk8erwitskil.com/guest/skyrocket/CWMRT/inc/cwmrt-inc.zip (flash in CWM)
There is a known bug in ClockworkMod 5.5.0.4 that long file names can POSSIBLY cause backups to hang. There is a solution/workaround:
boot into recovery
try to make a backup (no matter if it passes or fails proceed to next step)
either through terminal emulator or through adb run the following command EXACTLY:
Code:
touch /sdcard/clockworkmod/.hidenandroidprogress
NOTICE THE PERIOD AND LACK OF EXTENSION.
and it is .hidenandroidprogress NOT .hideandroidprogress __notice the letter "n"__
Click to expand...
Click to collapse
Hello i tried your recovery and it has a few issues one being major. First off the up scroll button (the one that looks like a house) seems to select items instead of scroll up in the list. Also while on the subject of the buttons imho there a little small, and would look better more rounded, perhaps just putting a ring arround them.
If you swipe to the right on the screen it reboots the phone.
Ok now on to the major issue, it only backed up boot, system, and recovery. It did not back up data, datadata, cache, sd-ext, android.secure, or generate an md5 sum.
Other that that its good. It is not what i was expecting when i tried it. I was expecting to touch on the menu where the options are instead of using softkeys to navigate and select, but i still like this better than having to use vol keys and trackball, great job so far.
cmlusco said:
Hello i tried your recovery and it has a few issues one being major. First off the up scroll button (the one that looks like a house) seems to select items instead of scroll up in the list. Also while on the subject of the buttons imho there a little small, and would look better more rounded, perhaps just putting a ring arround them. Ok now on to the major issue, it only backed up boot, system, and recovery. It did not back up data, datadata, cache, sd-ext, android.secure, or generate an md5 sum. Other that that its good. It is not what i was expecting when i tried it. I was expecting to touch on the menu where the options are instead of using softkeys to navigate and select, but i still like this better than having to use vol keys and trackball, great job so far.
Click to expand...
Click to collapse
It is touch... You swipe to scroll. Swipe your finger up and down to scroll. Swipe right to select and SWIPE LEFT to go back. And thank you for your feedback.
Edit: and also that backup issue is a bug in clockworkmod. You have to put a file call:
.hidenandroidprogress in the /sdcard/clockworkmod/ folder. Notice the period and lack of extension.
Sent from my SAMSUNG-SGH-I727 using XDA App
sk8erwitskil said:
It is touch... You swipe to scroll. Swipe your finger up and down to scroll. Swipe right to select and SWIPE LEFT to go back. And thank you for your feedback.
Sent from my SAMSUNG-SGH-I727 using XDA App
Click to expand...
Click to collapse
Ok i see let me try this again.
Ok now i get it. Lol ok then heres my bug report.
Swipe left and right are way to sensitive. When scrolling up and down if you go just the slightest bit to the left or right, it either goes back or selects an item.
As i said earlier the up softkey selects items instead of moving up in the list.
Also as i said earlier not backing up everything or generating an md5.
Other than that it seems great.
cmlusco said:
Ok now i get it. Lol ok then heres my bug report.
Swipe left and right are way to sensitive. When scrolling up and down if you go just the slightest bit to the left or right, it either goes back or selects an item.
As i said earlier the up softkey selects items instead of moving up in the list.
Also as i said earlier not backing up everything or generating an md5.
Other than that it seems great.
Click to expand...
Click to collapse
i added the fix to the backup problem in the OP. add that file and itll solve that issue. that is a known issue in the base code of clockworkmod 5.x, im working on making a code fix for that. the workaround works fine for now tho. can you tell me what the "home" "menu" "back" & "search" capacitive buttons do in recovery? that way i can re-arrange the soft keys to line up with the corresponding capacitive button.
im guessing back = go back, search = select, but does home = scroll up or scroll down?
thanks
sk8erwitskil said:
i added the fix to the backup problem in the OP. add that file and itll solve that issue. that is a known issue in the base code of clockworkmod 5.x, im working on making a code fix for that. the workaround works fine for now tho. can you tell me what the "home" "menu" "back" & "search" capacitive buttons do in recovery? that way i can re-arrange the soft keys to line up with the corresponding capacitive button.
im guessing back = go back, search = select, but does home = scroll up or scroll down?
thanks
Click to expand...
Click to collapse
Home scrolls down, menu does nothing just vibes, back goes back, search selects. Also the on screen back key seems to select instead of go back like the on screen up key does.
EDIT: actually the menu button seems to go back also. Its hard to tell. I think when hitting home, menu, back, search, it is also picking up my finger slightly moving left or right when i hit it.
Also for the backup fix, that is just creating a file called .hiddenandroidprogress right? That file was already present in my cwm folder before i ever even tried this recovery. I ran the command anyways and tried to back up again but still only boot recovery and system.
cmlusco said:
Home scrolls down, menu does nothing just vibes, back goes back, search selects. Also the on screen back key seems to select instead of go back like the on screen up key does.
EDIT: actually the menu button seems to go back also. Its hard to tell. I think when hitting home, menu, back, search, it is also picking up my finger slightly moving left or right when i hit it.
Click to expand...
Click to collapse
ok i updated the file. the soft keys on screen should be fixed to at least be the right keys. im going to re-arrange the order to those of the capacitive once i get to my work computer tomoro. also, i made the left/right sensitivity lower. see how it works.
cmlusco said:
Also for the backup fix, that is just creating a file called .hiddenandroidprogress right? That file was already present in my cwm folder before i ever even tried this recovery. I ran the command anyways and tried to back up again but still only boot recovery and system.
Click to expand...
Click to collapse
yes .hidenandroidprogress. what it does is stop cwm from enumerating the file list that it is backing up. if it gets stuck after that then i have to go in and debug the filesystem points i have probably as they are wrong for data, etc.
sk8erwitskil said:
ok i updated the file. the soft keys on screen should be fixed to at least be the right keys. im going to re-arrange the order to those of the capacitive once i get to my work computer tomoro. also, i made the left/right sensitivity lower. see how it works.
Click to expand...
Click to collapse
Still to sensitive left to right, and the on screen up key still goes back instead of up in the list.
cmlusco said:
Still to sensitive left to right, and the on screen up key still goes back instead of up in the list.
Click to expand...
Click to collapse
Agreed, havent totally tested though.
Nice having a touch option. Desire has CWmod touch and another one.
Sent from my Droid Incredible using Tapatalk
72ls1 said:
Agreed, havent totally tested though.
Nice having a touch option. Desire has CWmod touch and another one.
Sent from my Droid Incredible using Tapatalk
Click to expand...
Click to collapse
My wifes evo 4g has it too, but its where you touch the words on the screen instead of swiping or using soft or on screen keys.
im updating the base code to fix alot of bug fixes. will update soon
sk8erwitskil said:
im updating the base code to fix alot of bug fixes. will update soon
Click to expand...
Click to collapse
When you make updates, can you provide change log with dates so we know when you updated it.
Thanks
72ls1 said:
When you make updates, can you provide change log with dates so we know when you updated it.
Thanks
Click to expand...
Click to collapse
Yes definitely. I have actually stopped doing anything for now since I'm getting an incredible in a few days so I can do my own testing. It was getting too difficult doing all my testing over the Internet lol. I'll be back with another version in about a week. So until then....
Sent from my SAMSUNG-SGH-I727 using XDA App
sk8erwitskil said:
Yes definitely. I have actually stopped doing anything for now since I'm getting an incredible in a few days so I can do my own testing. It was getting too difficult doing all my testing over the Internet lol. I'll be back with another version in about a week. So until then....
Sent from my SAMSUNG-SGH-I727 using XDA App
Click to expand...
Click to collapse
cant wait to see what you come up with.
Trying this, may I ask what to do if I don't like this? How would one go back to the regular CWM?
Sent from my HTC Droid Incredible -
Clutch 3.5 - Sense 4.0 Theme
withbloodskies said:
Trying this, may I ask what to do if I don't like this? How would one go back to the regular CWM?
Sent from my HTC Droid Incredible -
Clutch 3.5 - Sense 4.0 Theme
Click to expand...
Click to collapse
Try re flashing from ROM Manager.
withbloodskies said:
Trying this, may I ask what to do if I don't like this? How would one go back to the regular CWM?
Sent from my HTC Droid Incredible -
Clutch 3.5 - Sense 4.0 Theme
Click to expand...
Click to collapse
This is only a bootable test, it changes nothing on your phone. You flash this it temp boots to the touch recovery, and then when you exit the touch recovery you will be exactly the way it was before flashing it. It is not permanent.
Hi everybody, as you can see, I'm brand new to the community. This is actually my first post after the 10-post newbie threshhold. I'm also new to Android phones, though I've tinkered extensively with my Nook Simple Touch and HD+. I'm excited to be able to contribute my first mod, which addresses one of my few complaints about the stock LG ROM. I'm not a big fan of the permanent menu key, and I much prefer to have a recent apps key at the ready. So I did some digging, some decompiling and some smali hacking, and I've come up with a mod that replaces the Menu key with the Recent Apps key and makes a long-press on the Home key pull up the Menu.
Here's a screenshot:
Launcher:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
** Update 9/24 **
I fixed a glitch where the recent apps button was smaller than the other buttons when in portrait mode. It should look nice now. If you flashed the earlier one, please grab the v0.2 version of the zip. I've updated all the links below.
I'm including links to two TWRP-able zips, as there are two variations of the mod. The first, RecentAppsKey_v0.2.zip just replaces Menu with Recents and makes a long press on home pull up the menu. The second, RecentAppsKey_with_ellipsis_v0.2.zip also patches framework.odex so that the system reports that there is no permanent menu key, which causes apps to display the "vertical ellipsis" overflow menu in the Action Bar. The downside to using this one is that older apps (and even the Settings app in the stock ROM) will display an ugly Menu button at the bottom of the screen if there's no permanent menu key. Personally I prefer to have the vertical ellipsis menu, but I figured some people wouldn't want it.
Also one other thing to mention is that in the little preview images in the "Front Touch Button" settings you'll still see the menu key. When you select it, the recent apps key will be in whatever position the menu key was supposed to be. Also, this mod plays nice with the various themes, so if you want a "Lovely Pink" recent apps key, I guess it's your lucky day Update: if you change the position of the recent apps button by choosing a new layout in settings, you need to reboot your phone afterwards, otherwise the recent apps button won't do anything! I'm looking into a fix for this, but haven't quite got it yet.
*** Update 9/29: AT&T Version! **
Thanks to the help of users Wesley32 and jug6ernaut, there is now an AT&T version of this mod! Please see the AT&T thread for details.
*** Installation ***
Download the zip you want:
RecentAppsKey_v0.2.zip - Just do the key swap, no overflow menu
RecentAppsKey_with_ellipsis_v0.2.zip - Also add the "vertical ellipsis" overflow menu to the action bar
Update:
As requested by stetsonaw, if you just want the vertical ellipsis action bar menu button and want to leave your nav-bar alone, you can flash VerticalEllipsis.zip which will only patch framework.odex to trick the system into thinking you don't have a permanent menu key. You can still summon the menu from the nav-bar as usual, you'll just also have a button in the nav bar.
To install, just put the zip you want somewhere on your device and reboot into TWRP. Install and reboot and you should be good to go.
*** Reverting ***
If you change your mind and would like to go back to stock, flash RevertRecentKeyMod.zip and it will re-flash the files from the stock rom.
*** Source code ***
Update: 9/25
For developers that would like to include this mod in their work, I've attached the modified sources. There are three zips, one for framework.jar to enable the Action Bar Overflow menu, one for android.policy.jar to change the long-press on home behavior to inject a menu key event, and one for LGSystemUI.apk to swap the buttons. Please let me know if you want more details on what exactly was changed.
Would this affect the black nav bar mod?
Edit: Works great, thanks! Nav bar still black.
http://imgur.com/xUcYRxD
Edit 2: The icon seems small, it that intended?
So if i just want the vertical ellipisis, and not worry about changing the keys, since i am using Auto Hide Softkeys, do i just flash the framework.odex? Or are the SystemUI and android.policy.odex files required as well?
I'm also already running another systemui mod, and don't really want to lose it.
stetsonaw said:
So if i just want the vertical ellipisis, and not worry about changing the keys, since i am using Auto Hide Softkeys, do i just flash the framework.odex? Or are the SystemUI and android.policy.odex files required as well?
I'm also already running another systemui mod, and don't really want to lose it.
Click to expand...
Click to collapse
Here's a zip with just the framework.odex: VerticalEllipsis.zip
The one in the OP will also replace the SystemUI and android.policy.odex, so avoid that one!
It should work fine by itself; it's just a one-byte patch to make ViewConfiguration.hasPermanentMenuKey() return false instead of true.
cheami said:
Would this affect the black nav bar mod?
Edit: Works great, thanks! Nav bar still black.
http://imgur.com/xUcYRxD
Edit 2: The icon seems small, it that intended?
Click to expand...
Click to collapse
Great, I'm glad it worked! The icon does seem a bit small. It's just the icon that's included in the standard SystemUI. My guess is that they didn't bother themeing it to match the others since they knew it would be disabled. There is a copy in each theme bundle, but they all seem to be the same.
sefnap said:
Here's a zip with just the framework.odex: VerticalEllipsis.zip
The one in the OP will also replace the SystemUI and android.policy.odex, so avoid that one!
It should work fine by itself; it's just a one-byte patch to make ViewConfiguration.hasPermanentMenuKey() return false instead of true.
Click to expand...
Click to collapse
Is this suppose to give me recents button but keep the same icon?
If not is there a way to keep LG's button but just turn it into a recents with button overflow.
The zip in the post you quoted won't do anything to your navbar; it just makes apps display the three-dot menu onscreen. The zips in the OP will change the menu key into a recent apps key, including changing the icon. They will also change the behavior of the Home key so that a long-press acts like the Menu key instead of pulling up the recent app switcher.
Sent from my VS980 4G using xda app-developers app
sefnap said:
The zip in the post you quoted won't do anything to your navbar; it just makes apps display the three-dot menu onscreen. The zips in the OP will change the menu key into a recent apps key, including changing the icon. They will also change the behavior of the Home key so that a long-press acts like the Menu key instead of pulling up the recent app switcher.
Sent from my VS980 4G using xda app-developers app
Click to expand...
Click to collapse
First off, Thanks for creating making the mods for us...NICE!!!
Also, thanks for the clarification. Installing now.
sefnap said:
Hi everybody, as you can see, I'm brand new to the community. This is actually my first post after the 10-post newbie threshhold. I'm also new to Android phones, though I've tinkered extensively with my Nook Simple Touch and HD+. I'm excited to be able to contribute my first mod, which addresses one of my few complaints about the stock LG ROM. I'm not a big fan of the permanent menu key, and I much prefer to have a recent apps key at the ready. So I did some digging, some decompiling and some smali hacking, and I've come up with a mod that replaces the Menu key with the Recent Apps key and makes a long-press on the Home key pull up the Menu.
Here's a screenshot:
Launcher:
I'm including links to two TWRP-able zips, as there are two variations of the mod. The first, RecentAppsKey.zip just replaces Menu with Recents and makes a long press on home pull up the menu. The second, RecentAppsKey_with_ellipsis.zip also patches framework.odex so that the system reports that there is no permanent menu key, which causes apps to display the "vertical ellipsis" overflow menu in the Action Bar. The downside to using this one is that older apps (and even the Settings app in the stock ROM) will display an ugly Menu button at the bottom of the screen if there's no permanent menu key. Personally I prefer to have the vertical ellipsis menu, but I figured some people wouldn't want it.
Also one other thing to mention is that in the little preview images in the "Front Touch Button" settings you'll still see the menu key. When you select it, the recent apps key will be in whatever position the menu key was supposed to be. Also, this mod plays nice with the various themes, so if you want a "Lovely Pink" recent apps key, I guess it's your lucky day
*** Notes and words of caution ***
This is currently a Verizon-only mod, as that's the one I've got. I've pulled the relevant files from scrosler's rooted AT&T rom, but there are several differences between the two. I also have no way to test an AT&T version, so I'll be shooting in the dark, as it were. I do plan to work up an experimental AT&T version in the next couple of days, and I'll update this thread with a link when that happens. Hopefully some brave souls can test it out.
Also, I have only tested this on a post-OTA device. I don't think that the OTA changed anything relevant, but if you are on a pre-OTA device, I'd recommend pulling the following files from your phone and checking their checksums. You can use adb to pull them, for example:
Code:
adb pull /system/framework/framework.odex
. Then you can use this tool to add a "Checksums" tab to the Properties dialog you get when right-clicking on a file in Windows Explorer. The checksums for the orignal (unmodified) files are:
/system/app/LGSystemUI.apk -- md5: 9a49826cddfaeaf7cb77fc0e3fe0557e
/system/app/LGSystemUI.odex -- md5: e3da7ff9c4bf400fe15d52f21a610955
/system/framework/android.policy.odex -- md5: cc5ca0e503cc603e30f963d1c0b5cba1
And, if you're using the Vertical Ellipsis zip:
/system/framework/framework.odex -- md5: 1e679588d49f00310f07c3a41e71fc52
If you get something else, this could easily break something! Also, if you are pre-OTA and you try this, let us know how it worked out!
*** Installation ***
Assuming everything checks out, you should be good to go, but I'd recommend doing a backup first, just to be safe.
Download the zip you want:
RecentAppsKey.zip - Just do the key swap, no overflow menu
RecentAppsKey_with_ellipsis.zip - Also add the "vertical ellipsis" overflow menu to the action bar
To install, just put the zip you want somewhere on your device and reboot into TWRP. Install and reboot and you should be good to go.
P.S. if anyone is interested in the technical details, I can write up what exactly I changed. It might have to wait a little bit though; I'm posting this at my toddler's nap time, and that could end any minute
Click to expand...
Click to collapse
I'm guessing this is implied, but should a restore to a backup (after flashing this mod) should revert both the icon and the behavior of the home button? I didn't see a zip that reverses out these mods (I mean to say) so should that be the correct process to reverse the changes?
Would it be possible to have a variant of this mod to change the pull down menu button to the recent apps instead of the menu button? I have added the 4th button to the layout. It is a rectangle with an arrow pointing down.
The order would be: Back, Home, Menu, Recent Apps.
giri0n said:
I'm guessing this is implied, but should a restore to a backup (after flashing this mod) should revert both the icon and the behavior of the home button? I didn't see a zip that reverses out these mods (I mean to say) so should that be the correct process to reverse the changes?
Click to expand...
Click to collapse
Yeah, restoring a backup will revert the changes. An "undo" zip is a good idea though! I went ahead and made one up: RevertRecentKeyMod.zip -- I'll edit the OP to include it. This will just flash the stock files back, and should revert all changes.
Has anyone done this on a Pre-OTA device yet?
beddachedda said:
Has anyone done this on a Pre-OTA device yet?
Click to expand...
Click to collapse
Looks like I will be the Guinea pig.
sefnap said:
Hi everybody, as you can see, I'm brand new to the community. This is actually my first post after the 10-post newbie threshhold. I'm also new to Android phones, though I've tinkered extensively with my Nook Simple Touch and HD+. I'm excited to be able to contribute my first mod, which addresses one of my few complaints about the stock LG ROM. I'm not a big fan of the permanent menu key, and I much prefer to have a recent apps key at the ready. So I did some digging, some decompiling and some smali hacking, and I've come up with a mod that replaces the Menu key with the Recent Apps key and makes a long-press on the Home key pull up the Menu.
Here's a screenshot:
Launcher:
I'm including links to two TWRP-able zips, as there are two variations of the mod. The first, RecentAppsKey.zip just replaces Menu with Recents and makes a long press on home pull up the menu. The second, RecentAppsKey_with_ellipsis.zip also patches framework.odex so that the system reports that there is no permanent menu key, which causes apps to display the "vertical ellipsis" overflow menu in the Action Bar. The downside to using this one is that older apps (and even the Settings app in the stock ROM) will display an ugly Menu button at the bottom of the screen if there's no permanent menu key. Personally I prefer to have the vertical ellipsis menu, but I figured some people wouldn't want it.
Also one other thing to mention is that in the little preview images in the "Front Touch Button" settings you'll still see the menu key. When you select it, the recent apps key will be in whatever position the menu key was supposed to be. Also, this mod plays nice with the various themes, so if you want a "Lovely Pink" recent apps key, I guess it's your lucky day
*** Notes and words of caution ***
This is currently a Verizon-only mod, as that's the one I've got. I've pulled the relevant files from scrosler's rooted AT&T rom, but there are several differences between the two. I also have no way to test an AT&T version, so I'll be shooting in the dark, as it were. I do plan to work up an experimental AT&T version in the next couple of days, and I'll update this thread with a link when that happens. Hopefully some brave souls can test it out.
Also, I have only tested this on a post-OTA device. I don't think that the OTA changed anything relevant, but if you are on a pre-OTA device, I'd recommend pulling the following files from your phone and checking their checksums. You can use adb to pull them, for example:
Code:
adb pull /system/framework/framework.odex
. Then you can use this tool to add a "Checksums" tab to the Properties dialog you get when right-clicking on a file in Windows Explorer. The checksums for the orignal (unmodified) files are:
/system/app/LGSystemUI.apk -- md5: 9a49826cddfaeaf7cb77fc0e3fe0557e
/system/app/LGSystemUI.odex -- md5: e3da7ff9c4bf400fe15d52f21a610955
/system/framework/android.policy.odex -- md5: cc5ca0e503cc603e30f963d1c0b5cba1
And, if you're using the Vertical Ellipsis zip:
/system/framework/framework.odex -- md5: 1e679588d49f00310f07c3a41e71fc52
If you get something else, this could easily break something! Also, if you are pre-OTA and you try this, let us know how it worked out!
*** Installation ***
Assuming everything checks out, you should be good to go, but I'd recommend doing a backup first, just to be safe.
Download the zip you want:
RecentAppsKey.zip - Just do the key swap, no overflow menu
RecentAppsKey_with_ellipsis.zip - Also add the "vertical ellipsis" overflow menu to the action bar
Update:
As requested by stetsonaw, if you just want the vertical ellipsis action bar menu button and want to leave your nav-bar alone, you can flash VerticalEllipsis.zip which will only patch framework.odex to trick the system into thinking you don't have a permanent menu key. You can still summon the menu from the nav-bar as usual, you'll just also have a button in the nav bar.
To install, just put the zip you want somewhere on your device and reboot into TWRP. Install and reboot and you should be good to go.
*** Reverting ***
If you change your mind and would like to go back to stock, flash RevertRecentKeyMod.zip and it will re-flash the files from the stock rom. Again, these files are from the post-OTA ROM, so if you're pre-OTA and my mod broke your phone, this won't fix it! In that case you'll want to restore from the backup you undoubtedly took before you started.
P.S. if anyone is interested in the technical details, I can write up what exactly I changed. It might have to wait a little bit though; I'm posting this at my toddler's nap time, and that could end any minute
Click to expand...
Click to collapse
Thank you. Nice job!
sefnap said:
If you get something else, this could easily break something! Also, if you are pre-OTA and you try this, let us know how it worked out!
Click to expand...
Click to collapse
Installed and working great pre-OTA.
Works great! I liked the pull down button, a great idea for such a large screen, but having the recent apps button is great too. Coming from a galaxy nexus this is the best of both worlds. Thanks!
What did you modify in the lgsystemui.apk? I would like to incorporate the changes into another modified UI apk. Thanks.
Beaumac said:
Would it be possible to have a variant of this mod to change the pull down menu button to the recent apps instead of the menu button? I have added the 4th button to the layout. It is a rectangle with an arrow pointing down.
The order would be: Back, Home, Menu, Recent Apps.
Click to expand...
Click to collapse
Yeah, that shouldn't be too hard. I'll see what I can work up today if I have time.
BrianTDI said:
What did you modify in the lgsystemui.apk? I would like to incorporate the changes into another modified UI apk. Thanks.
Click to expand...
Click to collapse
I've removed the attached sources zip, as it had the small icon glitch. Please see the OP for a new one!
sefnap said:
Here's a zip with just the framework.odex: VerticalEllipsis.zip
The one in the OP will also replace the SystemUI and android.policy.odex, so avoid that one!
It should work fine by itself; it's just a one-byte patch to make ViewConfiguration.hasPermanentMenuKey() return false instead of true.
Click to expand...
Click to collapse
Got it working by ripping apart the other zip... I couldn't get my phone to download this one. Nonetheless, combined with Auto Hide Softkeys, i have a menu button on the nav bar only when needed, and a menu button in apps built for it! Only problem is some of the LG software, like the settings menu and Phone have a GIANT menu bar/button at the bottom. I can live with that though!
Thanks man!
Screenshots to follow.
I have a crazy problem I could use some help with. I was trying a few different kernels on the new TMOUS 4.3 update including various button mods and somehow I lost all Google Now actions from Home button. I tried reboots, swapping the Gestures options in Settings, Xposed Framework Mods, and even reflashing the stock Kernel. The button vibrates on long press but does nothing. Even remapping the button with the Sense 5 Toolbox does nothing. It's really bizarre. Has anyone seen this or knows a fix without reflashing my entire system partition from TWRP (I smartly made a backup)? I've done a lot of customizations I don't want to have to redo. Any help is greatly appreciated!
I am having the same problem with my home button. It does nothing on long press (doesn't even vibrate) even though it is set to Google Now. I've tried the same things you have but haven't been able to fix it. If anyone knows what the issue is please help! Thanks.
As a work around I have used the Xposed Frameworks and Sense Toolbox to add Google Now to a long press on the back button. It's a quick and dirty fix but the home button failure is troublesome. There has got to be a container that maps the function of long press to the apk. Maybe you should try the Xposed/Sense Tool box Mike and see if you can remap your Home to GNow (or trigger a reset to it). It didn't work for me but I at least get the vibrate confirmation that it wants to do something. Also did you notice all of the kernels (or one of them also perm effected this too) force the vibrate intensity to 2000 (too low for my comfort)? Even flashing stock didn't restore that. You can barely feel the motor and I had to install TrickDroid from the market to reset the value on boot. >_< Is that a build.prop mod or something?