FORUMS
Remove All Ads from XDA

[MOD][XPOSED][2018/3/20 6.3]Android NavBar Buttons

2,372 posts
Thanks Meter: 1,353
 
By itandy, Senior Member on 17th April 2014, 05:23 AM
Post Reply Email Thread
This Xposed module allows you to change the NavBar buttons on your Xperia/AOSP devices. On stock ROM, there're only three buttons on the NavBar (Back, Home and Recent Apps). Now you can have complete control of the buttons and how they look like.

Features
  1. Show or hide Recent Apps, Menu and Search buttons
  2. Re-order buttons
  3. 18 themes with different colors
  4. Use your own images for buttons http://forum.xda-developers.com/show...&postcount=136
  5. Restart SystemUI to see changes immediately without rebooting (Busybox required)
  6. Activate changes on the fly without root (Nougat only)
  7. Define left and right margin
  8. Define navbar height
  9. Define search button action

Requirements
  1. Your phone must be rooted
  2. Xposed framework must be installed first http://forum.xda-developers.com/show....php?t=1574401
  3. Xposed library 2.2 is required

Instructions
  1. Install the module
  2. Run Xposed Installer and enable the module Android NavBar Buttons
  3. Reboot the phone
  4. If you want to use your own button images, check out this link.

Permissions
  • WRITE_EXTERNAL_STORAGE - store stock button images for preview
  • READ_EXTERNAL_STORAGE - read stock button images for preview
  • GET_TASKS - used by Switch to Last App function
  • REORDER_TASKS - used by Switch to Last App function

Limitations & supported devices
I developed this module based on AOSP source code and tested only on my Xperia devices. I expect it to work also on AOSP devices such as Google Nexus. You can try it on other devices but I don't expect it to work universally, especially HTC and Samsung devices because their framework is heavily modified.

If you enable this module and Tinted Status Bar together, the color for the Home/Menu/Recent/Back buttons will be controlled by Tinted Status Bar while the Search button color will be controlled by this module.

If you're also using GravityBox, you must disable Navigation Bar Tweaks. Otherwise, this module won't work.

Currently the following devices are supported: (to be updated)
  • Sony Xperia ZR stock 4.3 ROM
  • Sony Xperia V stock 4.3 ROM
  • Sony Xperia ZL stock based custom ROM/eXistenZ
  • Sony Xperia SP ExistenZ 3.3.0
  • Sony Xperia T
  • Sony Xperia M dual stock 4.2.2 ROM
  • Sony Xperia Z1 4.4 ihackers 4.1
  • Sony Xperia Z1 Compact stock KK ROM
  • Sony Xperia Z stock 4.3 ROM
  • Nexus 5 stock 4.4.2
  • Nexus 7 (2013) stock 4.4.2
  • MUCH i5s
  • Moto G stock 4.4.2 ROM
  • Moto X stock 4.4.2 ROM
  • Samsung Galaxy Lollipop or older devices (you need to set qemu.hw.mainkeys=0 in build.prop to enable Navbar)
  • Samsung Galaxy Marshmallow or higher devices
  • Sony Xperia X series devices Marshmallow ROM

Credits
I used this guide to help me develop this module. This document is outdated but the concept is still the same.

Huge thanks to atticus182 for his great work of Softkey collection
http://forum.xda-developers.com/gala...ction-t1413582

Thanks to C3C076 for his wonderful GravityBox! This module uses some of his codes for search button actions.

Supports & troubleshooting
If you're using Android 6 and are unable to see folders when importing image files for user define theme, you need to grant Storage permission in App settings.

If you find that this module doesn't work on your device and see FC repeatedly and both notification and navigation bar disappeared, don't panic! Just run Xposed Installer, disable this module and reboot.

If you want me to add support for your device, please send me the following:
  1. Xposed log file
  2. Your device model
  3. Android and ROM version
  4. Deodexed /system/app/SystemUI.apk or you can send me a link for the ROM
** I can only work on Xperia/AOSP devices at the moment, please don't send requests on other devices **
** CM ROM is not supported because it has its own implementation of NavBar **

Source code
You can find source code for this module from GitHub here.

Download
Xposed Module Repository | Play Store
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-03-19-56-33.jpg
Views:	40102
Size:	75.3 KB
ID:	2723224   Click image for larger version

Name:	Screenshot_2014-04-21-22-15-50.jpg
Views:	36889
Size:	33.4 KB
ID:	2723225   Click image for larger version

Name:	Screenshot_2014-05-03-19-59-20.jpg
Views:	36823
Size:	71.8 KB
ID:	2723226  
The Following 50 Users Say Thank You to itandy For This Useful Post: [ View ] Gift itandy Ad-Free
 
 
17th April 2014, 05:23 AM |#2  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Change Log
Code:
6.3
- Fix the issue that customized navbar is not activated after a reboot for Nougat and higher devices

6.2
- On Nougat and later, customzied navbar will be applied much earlier after a system reboot

6.1
- Add support for Android 8 (Oreo)
- Fix the issue that settings are not applied after system reboot for Nougat and higher

6.0
- Add support for Nougat
- Rename application as Android NavBar Buttons
- Settings can be activated on the fly without root in Nougat (except navbar height and width)

5.3
- Fix issue with Sony Xperia latest X series devices

5.2
- Automatically enable navbar on Samsung devices on Android 6

5.1
- Fix button size issue when orientation is changed on tablet

5.0
- Fix issue with Asus Zenpad when using user define theme

4.9
- Fix theme issue with Xperia device on Android 5.0 and higher

4.8
- New separator which can be used to split buttons into 2 groups to mimic tablet mode in Android 6.0.1

4.7
- Fix missing buttons on Huawei devices when theme is applied

4.6
- Add support for Android 6.0

4.5
- Fix theme not working for Home/Menu/Recent/Back buttons on HTC devices

4.4
- Fix button image size and navbar height issue in KK

4.3
- Fix button image size issue in Android 5.1
- Fix search button crash in ICS 

4.2
- New search button actions (Launch shortcut, Kill foreground app)

4.1
- Add Russian translation

4.0
- Add support for Lollipop (Android 5.0)

3.8
- Bug fix that setting UI crashes on some devices

3.7
- New option to customize search button actions

3.6
- Bug fix an issue that navbar height adjustment doesn't work on some devices

3.5
- Maximum margin is now automatically set to 75% of screen width
- NavBar height adjustment
- Added Lollipop buttons to theme

3.4
- Fix issue during orientation change when recent button is disabled
- Larger margin values

3.3
- Define left and right margin

3.2
- Fix button alignment issue for Samsung Tab

3.1
- Add translation for Chinese (Thanks to surwscl)

3.0
- User define button images http://forum.xda-developers.com/show...&postcount=136

2.3
- Fix preview stock buttons not displayed correctly if a theme is currently in effect

2.2
- Fix preview stock button size on some devices

2.1
- Fix missing buttons in landscape mode in Nexus 7
- Fix stock button size on some devices

2.0
- New option to choose themes (17 themes with different colors)
- Bug fixes

1.2
- New option to show or hide Recent Apps button

1.1
- Add support for MUCH i5S

1.0
- New option to re-order buttons

0.7 alpha
- New option to select Menu and/or Search button to show
- Restart SystemUI process to apply changes immediately

0.5 alpha
- Initial version
The Following 6 Users Say Thank You to itandy For This Useful Post: [ View ] Gift itandy Ad-Free
17th April 2014, 02:59 PM |#3  
TheC92's Avatar
Member
Flag Seoul
Thanks Meter: 81
 
More
.
install failed
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-04-17-22-54-15.jpg
Views:	5191
Size:	150.9 KB
ID:	2691992  
17th April 2014, 03:52 PM |#4  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Quote:
Originally Posted by TheC92

install failed

Re-uploaded and fixed MD5 issue. Please refresh and try again. Thanks for letting me know.
17th April 2014, 04:32 PM |#5  
cikoxda's Avatar
Senior Member
Flag Bari
Thanks Meter: 90
 
More
Hi Dev good job, works fine on my Xperia ZL with stock based custom rom... It would be better if I can change the position of the elements or choose which elements add to nav bar...do u think it is possible in future? Many thanks

Sent from my C6503 using XDA Premium 4 mobile app
17th April 2014, 05:16 PM |#6  
iRhyiku's Avatar
Senior Member
Thanks Meter: 301
 
More
Is this how its supposed to look?

Sent from my MUCH i5s using xda app-developers app
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1397751369394.jpg
Views:	3480
Size:	61.3 KB
ID:	2692187  
17th April 2014, 05:44 PM |#7  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Quote:
Originally Posted by cikoxda

Hi Dev good job, works fine on my Xperia ZL with stock based custom rom... It would be better if I can change the position of the elements or choose which elements add to nav bar...do u think it is possible in future? Many thanks

Sent from my C6503 using XDA Premium 4 mobile app

Yes, I'm planning more in the future. Go see post #2.
The Following User Says Thank You to itandy For This Useful Post: [ View ] Gift itandy Ad-Free
17th April 2014, 05:46 PM |#8  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,353
 
More
Quote:
Originally Posted by iRhyiku

Is this how its supposed to look?

Sent from my MUCH i5s using xda app-developers app

The recent apps button is missing which is supposed to be in the middle. You can see a sample in the OP. Can you post your Xposed log here?
17th April 2014, 07:55 PM |#9  
kassiss-x's Avatar
Junior Member
Flag Cherbourg
Thanks Meter: 1
 
More
Thumbs up Xperia SP
Works great in Xperia SP ExistenZ 3.3.0
17th April 2014, 09:12 PM |#10  
cikoxda's Avatar
Senior Member
Flag Bari
Thanks Meter: 90
 
More
Quote:
Originally Posted by itandy

Yes, I'm planning more in the future. Go see post #2.

OMG I had not seen it...thank you
The Following User Says Thank You to cikoxda For This Useful Post: [ View ] Gift cikoxda Ad-Free
17th April 2014, 10:17 PM |#11  
iRhyiku's Avatar
Senior Member
Thanks Meter: 301
 
More
Quote:
Originally Posted by itandy

The recent apps button is missing which is supposed to be in the middle. You can see a sample in the OP. Can you post your Xposed log here?

Oh that makes sence actually. For some reason my ROM (Stock-which is a slightly modified AOSP on my MUCH i5s) disabled and hid the Recents button from the navbar leaving a gap on the right, I was hoping this would solve that issue. Well thanks anyway, I will keep this modual enabled as I do like the looks of the navbar now rather than just two buttons
But if there was a way to enable it or have something in it's place to do the same thing, i would love to know.
Thank you!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes