Android OS Forum banner
1 - 20 of 160 Posts

·
Average Android
Joined
·
486 Posts
Here are some soft key mods for Jelly Bean. On the versions without Recent Apps, long pressing Home brings up Recent Apps. Long pressing Search brings up Voice Search on all.

NOTE: These mods were made for stock Toro Jelly Bean (based on the first release of Bugless Beast which had a stock System UI) when JB was first released (and there were not ROMS with nav bar customizations). They have not been updated since then, meaning further updates to JB may have broken these. Flash at your own risk.

4.1.1
Based on the Bugless Beast LTE JB Rom (which has a stock SystemUI):

Back - Home - Recent - Menu
Back - Home - Recent - Menu (w/ Circle Battery)
Back - Home - Recent - Menu (w/ 1% Fat Battery) credit: Jimmi3_T

Back - Recent - Home - Search - Menu
Back - Recent - Home - Search - Menu (w/ Circle Battery)
Back - Recent - Home - Search - Menu (w/ 1% Fat Battery) credit: Jimmi3_T

Back - Search - Home - Recent - Menu (w/ Circle Battery)
Back - Search - Home - Recent - Menu (w/ 1% Fat Battery) credit: Jimmi3_T

Search - Back - Home - Recent - Menu (w/ Circle Battery)
Search - Back - Home - Recent - Menu (w/ 1% Fat Battery) credit: Jimmi3_T

Back - Home - Menu - Search (w/ Circle Battery) credit: biz79
Back - Home - Menu - Search (w/ 1% Fat Battery) credit: Jimmi3_T

More to come eventually.

4.1 Leak
Based on the "stock" leaked JB SystemUI and should work on any ROM that hasn't modified it.
Note: These may also work on 4.1.1 but flash at your own risk.

Back - Home - Recent - Menu
Back - Home - Recent - Menu (w/ Circle Battery)

Back - Home - Search - Menu
Back - Home - Search - Menu (w/ Circle Battery)

Back - Home - Menu - Search
Back - Home - Menu - Search (w/ Circle Battery)

Menu - Back - Home - Recent
Menu - Back - Home - Recent (w/ Circle Battery)

Back - Recent - Home - Menu - Search
Back - Recent - Home - Menu - Search (w/ Circle Battery)

Back - Recent - Home - Search - Menu
Back - Recent - Home - Search - Menu (w/ Circle Battery)

Back - Home - Recent - Search - Menu
Back - Home - Recent - Search - Menu (w/ Circle Battery)

Menu - Back - Home - Search - Recent
Menu - Back - Home - Search - Recent (w/ Circle Battery)

Stock (Revert)

Flash in CWM/TWRP and Enjoy!

I will not be making anymore variations, so please no more requests. If you would like an order that isn't here, see the post below with the Do-It-Yourself guide.
If you do make your own, please post it, I will add it to the OP and credit you!

For different colors and/or styles of softkeys, see this thread. Installing these will not affect this mod.

For just the 1% Circle Battery Mod, click here

Special thanks to Bouchigo for help with the mod.





 

·
Average Android
Joined
·
486 Posts
For a complete step by step guide for this mod, see here: http://rootzwiki.com/topic/30278-how-to-step-by-step-guide-to-add-menu-and-search-soft-keys/

Guide to DIY SoftKey Order:

Note: This guide assumes you can already decompile and compile apks. There are plenty of guides and tools on here, xda, and the rest of the internet to get you setup for this. I personally use APKManager with the newest JellyBean SDK components.

Adding the Menu and/or Search softkey has two main parts - modifying xml to add them to the nav bar, and modifying smali code to actually make them do something. The smali edits are a bit advanced so I will not be covering them here, however you don't need to worry about that because its already done in the apk's above.

1. Download one of the zips above (closest to the order you want) and decompile SystemUI.apk from within it. (If you also want the circle battery, grab one with the battery mod)

2. Open res/layout/navigation_bar.xml. You will see four main LinearLayout sections. The first specifies the key layout in portrait from left to right, and the second specifies the same thing but in lights out mode (camera, gallery, etc). The third specifies the key layout in landscape from top to bottom, and the fourth again the same lights out layout.

3. Here is a the XML of the first section for Back - Recent - Home - Search - Menu:
Code:
<br />
<br />
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true"><br />
	<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" /><br />
	<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" /><br />
	<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" /><br />
	<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" /><br />
	<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" /><br />
	<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" /><br />
	<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" /><br />
	<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/search" android:layout_width="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_search" android:layout_weight="0.0" android:contentDescription="@string/accessibility_search" systemui:keyCode="84" systemui:glowBackground="@drawable/ic_sysbar_highlight" /><br />
	<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" /><br />
	<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:layout_width="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" /><br />
	<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" /><br />
</LinearLayout><br />
<br />
The lines that start with "<View..." are the spacers between the keys, and the lines that start with "<com.android.systemui...." are the actual keys (with the id and keycode properties specifying which key they are).

4. To reorder the keys, all you need to do is switch the order of the xml lines. So, if you wanted to switch the above to Back - Menu - Home - Search - Recent, you would put the line with [email protected]/menu where the line with [email protected]/recent_apps is, and vice versa.

5. Do this same thing in the third section so your landscape layout is also changed.

6. If you want to remove a key, do not just delete the line! Instead, set the width and height properties to "0.0dip". I suggest moving it to the bottom of the list as well, just to get it out of the way.
Example:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/search" android:layout_width="0.0dip" android:layout_height="0.0dip" android:src="@drawable/ic_sysbar_search" android:layout_weight="0.0" android:contentDescription="@string/accessibility_search" systemui:keyCode="84" systemui:glowBackground="@drawable/ic_sysbar_highlight" /><br />
Make sure you also update the lights-out section. However here you can just delete the line instead of making it 0 width/height.

7. If you want long-press on that soft key (home and search), add the property systemui:keyRepeat="true" to that button. Set it to false if you want to disable long-press.

8. Save your XML edits, compile the apk, and install it in system/app using the method of your choice (adb, file manager, zip).

9. Enjoy
 

·
Themer
Joined
·
1,007 Posts
Bro nice work on this I'm not on jb for now but you are great with layouts!!! Great work

Sent from my Galaxy Nexus using RootzWiki
 

·
Themer
Joined
·
600 Posts
Hate to keep asking but is there a way to swap the menu and the search so the menu is on the extreme right? So it would be from left to right back,home,search, menu? If it is too much of a cosmetic issue dont worry about it thank you!
 

·
Average Android
Joined
·
710 Posts
Hate to keep asking but is there a way to swap the menu and the search so the menu is on the extreme right? So it would be from left to right back,home,search, menu? If it is too much of a cosmetic issue dont worry about it thank you!
+1. I was about to ask the same thing! I was actually looking for this on the one with both search and menu.

Sent from my Galaxy Nexus using Tapatalk 2
 

·
Android Enthusiast
Joined
·
777 Posts
Nice job man!

I used to like pumping out mods too, but I kind of got over it
Glad to see there's still people out there giving everyone options.

Sent from my Galaxy Nexus using RootzWiki
 

·
Android Beginner
Joined
·
29 Posts
Hate to keep asking but is there a way to swap the menu and the search so the menu is on the extreme right? So it would be from left to right back,home,search, menu? If it is too much of a cosmetic issue dont worry about it thank you!
Same here! would love to see this placement. Thanks for this mod.
 

·
Average Android
Joined
·
710 Posts
I would prefer stock order and add search and then menu on the far right. BTW, do these have the fast glow mod added too?
 

·
Android Lover
Joined
·
1,260 Posts
Stock layout, with left and right three dot menu buttons would be great. Hate having to reach across the phone when using it left handed.
 

·
Average Android
Joined
·
486 Posts
Ok OP has been updated with more options, hopefully I didn't mess up any of the links or zips. Let me know if there are any problems.

I'm done with variations for now, may do some more tomorrow. Or I might just post a small write up on how to do it so people can rearrange them on their own
 

·
Registered
Joined
·
568 Posts
Ok OP has been updated with more options, hopefully I didn't mess up any of the links or zips. Let me know if there are any problems.

I'm done with variations for now, may do some more tomorrow. Or I might just post a small write up on how to do it so people can rearrange them on their own
I flashed the back recent home menu search mod. Rebooted to no changes. Any ideas? I appreciate the time and effort put into this. Thanks!

Sent from my Galaxy Nexus using Xparent Green Tapatalk 2
 

·
Average Android
Joined
·
486 Posts
Discussion Starter · #19 ·
I flashed the back recent home menu search mod. Rebooted to no changes. Any ideas? I appreciate the time and effort put into this. Thanks!

Sent from my Galaxy Nexus using Xparent Green Tapatalk 2
Just tried it and had no issues. Was this with or without the battery?
 

·
Themer
Joined
·
600 Posts
They look amazing thank you! And for those having a problem with some zip theme mods,,,some JB roms require you to mount the system in CWM then flash the zip. Something to do with the system not mounting by itself when flashing a zip themer mod.
 
1 - 20 of 160 Posts
Top