[MOD][9/23] Replace Menu key with Recent Apps, Long-press Home for Menu - Verizon LG G2

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.

Related

Is it possible to replace the menu button with the ICS Task Manager/Multitasker?

Is it possible to replace the menu button with the ICS Task Manager/Multitasker? like in the galaxy Nexus? I think even the icon looks similar in a way to a list of apps. This would be useful especially since ICS deals with this perfectly by showing a menu button when it doesn't detect it as a hardware button.
What do you guys think about this idea?
Why not just hold the home button to bring up recent apps..
Sent from my GT-N7000 using xda premium
joshnichols189 said:
Why not just hold the home button to bring up recent apps..
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
pachi72 said:
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
Click to expand...
Click to collapse
Agree. Home buttons degrade and break.
pachi72 said:
Cuase holding the home button for 1 or 2 seconds its not better than just pressing the menu button.
Click to expand...
Click to collapse
VTEChump said:
Agree. Home buttons degrade and break.
Click to expand...
Click to collapse
Yep, and because given the choice, I'm sure most will opt to use it this way. the menu button is getting deprecated as a hardware button and being implemented more and more inside applications.
Hopefully some more ICS ROM devs will see this and review this suggestion. I would love to know what they have to say about it.
I wouldnt mind a widget to do it either. That shouldnt be to hard to do.
moyajaya said:
Is it possible to replace the menu button with the ICS Task Manager/Multitasker? like in the galaxy Nexus? I think even the icon looks similar in a way to a list of apps. This would be useful especially since ICS deals with this perfectly by showing a menu button when it doesn't detect it as a hardware button.
What do you guys think about this idea?
Click to expand...
Click to collapse
+1.
Regards.
This was the first thing I wanted to do after installing ICS. The capacative buttons are mapped in /system/usr/keylayout/melfas-touchkey.kl;
Code:
key 158 BACK WAKE
key 139 MENU WAKE
I'm just not sure what to replace 'MENU' with. 'TASK'?
Hate to double post but I thought I'd share what I've discovered.
I tried replacing 'MENU' with 'APP_SWITCH' in melfas-touchkey.kl and sec_touchkey.kl and got the menu button to act just like the recents button, however there was then no way to access the menu
I had a brief look at the android source code and it looks like the value that decides to show the action overflow button in the toolbar is set depending whether the on screen buttons are being used. Not at all sure about that though and I've seen the new HTC one phones have a hardware recents button replacing the menu so it can't be impossible.
bootlessjam said:
Hate to double post but I thought I'd share what I've discovered.
I tried replacing 'MENU' with 'APP_SWITCH' in melfas-touchkey.kl and sec_touchkey.kl and got the menu button to act just like the recents button, however there was then no way to access the menu
I had a brief look at the android source code and it looks like the value that decides to show the action overflow button in the toolbar is set depending whether the on screen buttons are being used. Not at all sure about that though and I've seen the new HTC one phones have a hardware recents button replacing the menu so it can't be impossible.
Click to expand...
Click to collapse
Thank you for trying this and letting us know about the results. I was thinking if all fails maybe the search option that appears when you click and hold the menu button could be replaced with the menu?
Clicking the Old menu button = New app switcher
Holding the old menu button = Menu
how about that? I think most apps include a search icon if/when they include search functionality.
Had a brainwave today and got it 90% there. I decompiled framework-res.apk and enabled the navigation bar AND resized it to 0. This means the action overflow button shows up in apps without the galaxy nexus-like software keys getting in the way. I then remapped the menu key and it is working like a charm
Of course then there is the little issue of bringing up the menu when using a pre honeycomb app. The simplest solution for me was to use the pen's button+swipe up gesture. This isn't ideal and doesn't even work for people using CM9 or stock ICS.
Here is the modified framework-res for the Team Rocket ROM v1.5:
dl.dropbox dot com/u/2340506/navbarhidden.zip
These forums don't trust me with links
Install with CWM recovery. Don't use it on any other ROM! I can't even guarantee it'll work on every team rocket rom. I'm too lazy to load every ICS ROM but if you post your framework-res.apk I can edit it for you.
After you can remap the hardware keys in /system/usr/keylayout/melfas-touchkey.kl and /system/usr/keylayout/sec_touchkey.kl like I mentioned earlier with Root Explorer or ES File Explorer. I have it set up to mimic the HTC one phones and the galaxy nexus's layout, since I keep the key lights off.
Hopefully this is useful to people. A better way to access the menu on old apps should be easier to do once people start tinkering with the HTC one phones.
bootlessjam said:
Had a brainwave today and got it 90% there. I decompiled framework-res.apk and enabled the navigation bar AND resized it to 0. This means the action overflow button shows up in apps without the galaxy nexus-like software keys getting in the way. I then remapped the menu key and it is working like a charm
Of course then there is the little issue of bringing up the menu when using a pre honeycomb app. The simplest solution for me was to use the pen's button+swipe up gesture. This isn't ideal and doesn't even work for people using CM9 or stock ICS.
Here is the modified framework-res for the Team Rocket ROM v1.5:
dl.dropbox dot com/u/2340506/navbarhidden.zip
These forums don't trust me with links
Install with CWM recovery. Don't use it on any other ROM! I can't even guarantee it'll work on every team rocket rom. I'm too lazy to load every ICS ROM but if you post your framework-res.apk I can edit it for you.
After you can remap the hardware keys in /system/usr/keylayout/melfas-touchkey.kl and /system/usr/keylayout/sec_touchkey.kl like I mentioned earlier with Root Explorer or ES File Explorer. I have it set up to mimic the HTC one phones and the galaxy nexus's layout, since I keep the key lights off.
Hopefully this is useful to people. A better way to access the menu on old apps should be easier to do once people start tinkering with the HTC one phones.
Click to expand...
Click to collapse
Great finds! Thumbs up!
Thank you for your efforts!
I would love to try those but I moved back to Gingerbread for the time being. ICS in the note is far from being a daily driver for me. A lots of bugs and battery drains compared to Gingerbread. Hopefully this will change quickly. I trust the dev community and i'm sure they'll beat samsung in having stable ICS releases...
Back to ICS. Using ICS Stunner 4.3 ROM with the new LP5 kernel and modem. This setup is simply stunning. Best ROM I've tried so far.
Back to subject, how can the process go for AOSP ROMs? Like this one I'm using...
Anyone found any other way around this? Thanks !
Sent from my GT-N7000 using Tapatalk 2 Beta-5
moyajaya said:
Back to ICS. Using ICS Stunner 4.3 ROM with the new LP5 kernel and modem. This setup is simply stunning. Best ROM I've tried so far.
Back to subject, how can the process go for AOSP ROMs? Like this one I'm using...
Anyone found any other way around this? Thanks !
Sent from my GT-N7000 using Tapatalk 2 Beta-5
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1450138
I looked into doing the same thing as you did only because I love the tablet layout and holding the home button doesn't bring it up.
In order to get what you and a few others would want on select roms, the source for the framework would have to be adjusted as said in the thread, meaning each dev would have to implement this independently.
The second thing is alread mentioned in this thread, which is changing the key layout.
You can hope that the dev has no issues with inserting it into their build.
NOT changing the source but editing the key layout will only bring up the a Gingerbread styled task switcher. I've tried ;_;
I personally might I add, would just love the same hold the home button functionality while in tablet mode.
evilisto said:
1) change source code related to APP_SWITCH keycode.
platform/frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
from :
Code:
} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0) {
showOrHideRecentAppsDialog(RECENT_APPS_BEHAVIOR_SHOW_OR_DISMISS);
}
return -1;
}
to :
Code:
} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0 && !keyguardOn) {
try {
mStatusBarService.toggleRecentApps();
} catch (RemoteException e) {
Slog.e(TAG, "RemoteException when showing recent apps", e);
}
}
return -1;
}
2) edit your keylayout files..
/system/usr/keylayout/
for example, if you want to use search key to recent apps on nexus s...
cypress-touchkey.kl
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL
and mxt224_ts_input.kl (it would be better to edit both files..)
Code:
key 158 BACK WAKE
key 139 MENU WAKE
key 217 APP_SWITCH WAKE
key 102 HOME WAKE
Click to expand...
Click to collapse

[Q] Custom kernel/mod like Sense 4.2.2 version for menu bar removal

Not sure if it was discussed, but didn't find anything specific. If it was - then it wasn't focused too much on that.
I just rooted my HTC One 4.2.2 (Sense) and flashed a custom kernel (tried many of the most recent ones). I was very happy with various wake options as well as making HTC logo to behave as menu key. However I noticed a weird behavior of how custom kernels disable"3 dot menu" bar. They disable not just the bottom menu bar that appears only in some apps (i.e. Facebook), that are not fully designed according to Google guidelines. Menu buttons are disabled everywhere, in any app instead - even if they are placed according to guidelines (i.e. in Gmail app, at the top corner).
It's really annoying.. I don't want to hide all "good menu" buttons, I just want to hide the bottom line menu button. Exactly as it was made by HTC in 4.2.2 update.
Currently used method is just modifying /system/build.prop file by adding the line:
qemu.hw.mainkeys=1
Click to expand...
Click to collapse
Is there any other alternative fix? Is it there is no better alternative, because HTC didn't give latest kernel sources yet? I guess it's also not possible to revert to the stock kernel (without reseting the whole ROM)?..

[Q] Remove 3 dot menu bar in GPe rom, but keep 3 dot menu in apps?

Okay, so my question is similar to this guy's: http://forum.xda-developers.com/showthread.php?t=2323390
Sadly, the solution he found did not appear to work for me (guessing it's a sense thing?). Basically, I want the setup that the Sense HTC One has regarding the menu button, remove the ugly ass bar, but keep the button in apps the use it correctly (like google apps such as the play store or chrome), which things like remove 3dot menu does not do.
So far, I have been able to make a long press of the back button bring up a menu with Gravitybox, but have been unable to remove the black bar without removing native menu buttons in apps.
Anyone have a solution for me?
I'm running the latest Sinless Google Play Rom (Sinless 4.1.2 with Android 4.3)
The solution is posted in the thread you've linked...
Guich said:
The solution is posted in the thread you've linked...
Click to expand...
Click to collapse
Change the qemu.hw.mainkeys=1 to qemu.hw.mainkeys=0? Did that, nothing changed.
EDIT: perhaps I should be more clear. qemu.hw.mainkeys=0 was ALREADY in the build.prop when I opened it (likely because the Sinless Rom Developer put it in there). So, that addition to the build.prop file was in there, and I was still receiving the black menu bar regardless.

[Q] AOKP nav bar buttons on stock

Is there any way to add extra buttons to the nav bar in stock (.283) like you can in AOKP, Carbon, etc.? I don't even need all of them, just the last app button. There are some apps that do this by adding a floating button (LAS), but I want it on my nav bar. UDN doesn't work right, and doesn't let me customize the buttons for some reason. The only other way I've found is to decompile the SystemUI, but I'd rather not do something that risky if there's an alternative. I was on Carbon for a long time and I really loved this feature, but I need the battery life that stock gives. I've found Xposed modules for everything else I'm used to, this is the only thing missing. Any help at all would be greatly appreciated.
SirVer said:
Is there any way to add extra buttons to the nav bar in stock (.283) like you can in AOKP, Carbon, etc.? I don't even need all of them, just the last app button. There are some apps that do this by adding a floating button (LAS), but I want it on my nav bar. UDN doesn't work right, and doesn't let me customize the buttons for some reason. The only other way I've found is to decompile the SystemUI, but I'd rather not do something that risky if there's an alternative. I was on Carbon for a long time and I really loved this feature, but I need the battery life that stock gives. I've found Xposed modules for everything else I'm used to, this is the only thing missing. Any help at all would be greatly appreciated.
Click to expand...
Click to collapse
use gravity box and add custom key to get it!
:good:
I've tried that, and it's not suitable for several reasons. First off, GB causes layout problems in the recents panel, making the small apps inaccessible. No matter what I toggle, it doesn't go away unless I disable GB. Also, the button appears to the extreme side; I was hoping to get it as a main nav button, like in the custom ROMs.
Looks like I might have to decompile after all. Oh, well. Thanks for your reply, though!
I used this xposed module on sock 4.3 for modify navbar buttons:
Xperia/AOSP NavBar Buttons
I don't know is it working on 4.4 or not. I am using Carbon at the moment.
SirVer said:
I've tried that, and it's not suitable for several reasons. First off, GB causes layout problems in the recents panel, making the small apps inaccessible. No matter what I toggle, it doesn't go away unless I disable GB.
Click to expand...
Click to collapse
This is a known bug in the latest GravityBox version. Download the ”no_translucent_recent” version from this post.
SirVer said:
Also, the button appears to the extreme side; I was hoping to get it as a main nav button, like in the custom ROMs.
Click to expand...
Click to collapse
You might not even need a separate button — with GravityBox you can assign actions to the long press of the “Recent Apps” button, and to the long press and double tap of “Back” and “Home” buttons. There is also the “Navigation Bar Ring” feature (you can add more actions than just Google Now).
@kanyazsombor
That module doesn't have a last app button. Thanks anyway!
@sigprof
Long press takes too long, and double tap on anything other than the recent key for a recent app feels... Wrong. Picky, I know, but still. I hadn't thought of using the nav bar ring targets, will try that as soon as I can, and the bug fix you mentioned. Thanks for your help!

Navigation bar customization

O.k., call me OCD, set in my ways, or just plain stubborn, but I simply hate having a recents button in the navbar. I'd much rather have a menu button, and long press the home button to get recents, hearkening back to my old Galaxy SIII. Now, I've flashed countless ROM's on the Nexus 6, and have come across only two that allow the ability to eliminate any button and replace it with anything else. See screenshot for an example of what I'm looking for. Most of the marshmallow ROM's out there only allow you to move the buttons around, and add buttons to the navbar, but none allow you to eliminate or remap the buttons that are already there except for VRToxin. So here are my questions: 1) Why is this kind of customization not found in many ROM's? 2) Is there a mod, or Xposed module that will allow this? I looked at Gravity Box and it doesn't seem to have that ability. Any thoughts/wisdom/comiseration would be appreciated.
morrowa2 said:
O.k., call me OCD, set in my ways, or just plain stubborn, but I simply hate having a recents button in the navbar. I'd much rather have a menu button, and long press the home button to get recents, hearkening back to my old Galaxy SIII. Now, I've flashed countless ROM's on the Nexus 6, and have come across only two that allow the ability to eliminate any button and replace it with anything else. See screenshot for an example of what I'm looking for. Most of the marshmallow ROM's out there only allow you to move the buttons around, and add buttons to the navbar, but none allow you to eliminate or remap the buttons that are already there except for VRToxin. So here are my questions: 1) Why is this kind of customization not found in many ROM's? 2) Is there a mod, or Xposed module that will allow this? I looked at Gravity Box and it doesn't seem to have that ability. Any thoughts/wisdom/comiseration would be appreciated.
Click to expand...
Click to collapse
1. most likely it isnt needed by many people
2. i dont use xposed for many reasons, but one thing is that xposed is not recommended to be run on a custom rom, as it could, and would, mess with that roms code, causing issues and/or reboots.
simms22 said:
1. most likely it isnt needed by many people
Click to expand...
Click to collapse
That's what I figured, it just seems like this would offer much more flexibility, no?
unfortunately no option yet to remove that recents button. afaik. but ive used lmk and as far as i can remember i was able to change the targets. but again . its not gonna be visible everytime coz u have to pull it out from the side or bottom
reyscott1968 said:
unfortunately no option yet to remove that recents button. afaik. but ive used lmk and as far as i can remember i was able to change the targets. but again . its not gonna be visible everytime coz u have to pull it out from the side or bottom
Click to expand...
Click to collapse
what is lmk?
morrowa2 said:
what is lmk?
Click to expand...
Click to collapse
oops.. my bad. its lmt
Try Dirty Unicorns. It has a feature called smart bar and you can add and remove buttons to the nav bar. Its still in the test phase but pretty solid.
---------- Post added at 10:34 PM ---------- Previous post was at 10:33 PM ----------
Go to their Google + site to get the latest test builds. The Marshmallow builds are not official so not on XDA yet.
Sirdragonx said:
Try Dirty Unicorns. It has a feature called smart bar and you can add and remove buttons to the nav bar. Its still in the test phase but pretty solid.
---------- Post added at 10:34 PM ---------- Previous post was at 10:33 PM ----------
Go to their Google + site to get the latest test builds. The Marshmallow builds are not official so not on XDA yet.
Click to expand...
Click to collapse
I'll check it out, thanks!
Looks like even on DU you can't remove the recents button ?
morrowa2 said:
2) Is there a mod, or Xposed module that will allow this? I looked at Gravity Box and it doesn't seem to have that ability. Any thoughts/wisdom/comiseration would be appreciated.
Click to expand...
Click to collapse
I have found one other rom that had the ability to change the navbar but in the last build the feature is gone again. I keep an eye on that rom as i'm searching for the same things as you. It was the last experimental build of "srewd" rom.
If you find a rom yourself please report here
You mentioned gravity box. Gravitybox will let you assign single tap, double tap, and long press actions to navbar buttons. Up to 5 buttons (recent, home, back, menu, custom) with up to three actions each. (Although single tap is slower if a double tap is assigned). You can assign built in actions or apps or shortcuts.
That's a lot of flexibility. The only thing you can't do is change the symbol for those buttons. I guess that's the part you want that gb didn't have?
That would work. I don't care about the symbol as long as the action can be reassigned. Is that GB marshmallow?
Only two I know of are Slim LP and VR toxin. I'm on VR toxin now, which is a great ROM, but security is broken, no pin or pattern unlock.
electricpete1 said:
You mentioned gravity box. Gravitybox will let you assign single tap, double tap, and long press actions to navbar buttons. Up to 5 buttons (recent, home, back, menu, custom) with up to three actions each. (Although single tap is slower if a double tap is assigned). You can assign built in actions or apps or shortcuts.
That's a lot of flexibility. The only thing you can't do is change the symbol for those buttons. I guess that's the part you want that gb didn't have?
Click to expand...
Click to collapse
Lol, so silly, I was looking under navigation bar tweaks, and never saw that menu. Thanks!
morrowa2 said:
Looks like even on DU you can't remove the recents button ?
Click to expand...
Click to collapse
The smartbar is still in alpha stages but in the end should be able to remove it.
zelendel said:
The smartbar is still in alpha stages but in the end should be able to remove it.
Click to expand...
Click to collapse
I'll keep my eye on it.
Even with gravity box, looks like the changes don't stick. Even when another action is assigned, that pesky recent button still brings up recents. It was worth a try.
For now I may just revert back to Slim LP, and hope Yank gets a Slim6 build up soon.
The recents button, and what it should do is considered basic functionality and it's deep in the SystemUI app (which is more like a service). I've changed my navigation bar by adding a permanent menu button and a lot of functionality there is hard coded. So I recommend you build you own rom and customize it.
Mine sticks. Reboot, still there.
I don't know why yours acts differently....
I use a lot of gravity box tweaks and they all work the way they're supposed to for me, except notification shade quick toggle tiles. Reverts to stock after reboot... I have to go back into the gb quick setting menu and press save to get my tiles back after reboot
Droidphilev said:
I have found one other rom that had the ability to change the navbar but in the last build the feature is gone again. I keep an eye on that rom as i'm searching for the same things as you. It was the last experimental build of "srewd" rom.
If you find a rom yourself please report here
Click to expand...
Click to collapse
Looks like the latest build of VRtoxin got the security issues fixed, and retains the navbar customization I like. I'll be sticking with this for a while.
morrowa2 said:
Looks like the latest build of VRtoxin got the security issues fixed, and retains the navbar customization I like. I'll be sticking with this for a while.
Click to expand...
Click to collapse
DU is for the moment my best option but i know that it's about the recents button in your case. (mine is set to long "press for menu" for now)

Categories

Resources