[Nexus 6  General] PakDe888:
This should be in the development section but I don't have the required amount of posts so I put it here, no worries...

Disclaimer

Your phone your responsability!!!

Please make sure you read everything, especially the "IMPORTANT" chapter, I won't reply to question(s) whose answer(s) is/are here!!!

I made a SystemUI navigation bar mod for me and I thought that some people may like it so I share it here with you guys.

It enables you to add extra keys (left/right/up/down arrows for text correction or navigation on pages, volume up/down, music panel) directly from the navbar tuner settings.

I have seen on XDA news that you can achieve the same result by editing the settings_secure file but it's not very practical because every time you have to reboot before the new key appears.:eek:

REQUIREMENTS

A Nexus 6 (obviously):cyclops:

TWRP

Android Nougat 7.0

IT WON'T WORK ON 7.1!!!

FOR 7.1 SEE BELOW.

IMPORTANT!!! DO NOT SKIP!!!

I made this mod for my ROM that I built from source based on Pure Nexus 7.0, so I can't guarantee that it'll work on a different ROM brand.

If you come from another ROM than Pure Nexus feel free to try and report here, I made a rescue zip to get you back to your original configuration in case it doesn't work so you don't need to worry.

But back up anyway, just in case.

Now we may a problem, that is application signature.

As said above I'm on a home built ROM, and I have signed it with my signature, signature that is unique to my ROM and that will prevent installations on a different ROM.

What I did to have it to work for you guys is that I signed the apps that I put here with the Pure Nexus 7.0 original signature, that should be OK if you are on Pure Nexus 7.0.

If you are on a different ROM, or if you are on Pure Nexus 7.0 but for some reasons it doesn't work, you'll have to do as follows:

- extract your SystemUI.apk in /system/priv-app and put it on your internal storage or computer,

- open it with 7zip or something similar,

- inside you'll see a META-INF folder and AndroidMAnifest.xml, extract them,

- open my modded SystemUI,

- delete the META-INF folder and AndroidMAnifest.xml inside of it and replace them with the ones you extracted from your SystemUI,

- close everything,

- zipalign my modded SystemUI (optional but better for optimization, zipaligning has been lost since the signature has been replaced),

- now my SystemUI has your signature so you can flash the zip.

If it still doesn't work then you're out of luck, to have it to work would mean to have your ROM's source and do the edits there but sorry, I won't do it because it's too much work (downloading 20 GBs of data for the source, compiling a whole ROM etc...).

In that case upload your SystemUI.apk and your framework-res.apk here and I'll try to do it, but no guarantees...

7.1

Why am I not on 7.1?

I tried it but there wasn't any interesting new features for me so there was no point to switch to it and go again through the lenghty process of downloading the source, compiling it, editing/theming/etc-ing all the apps, no, I sticked to my good old 7.0.

INSTALLATION

There are 3 zips.

1 - The green theme is the one I use on my phone but it may look weird on yours since the green theming needs other apps to be complete. Give it a try though, it looks nice to my opinion!

Tell me if you want the full green theme, I'll upload here the other files.

2 - The stock theme is the regular Nougat white theme.

3 - A rescue zip to get back to your original SystemUI in case something goes wrong.

Backup your ROM (probably not needed, but just in case)

Choose which flashable zip you want, put it on your phone, flash it in recovery, reboot.

You may have to resize the keys if you want to have many of them on the nav bar, as for me I have 9, check the below screenshot to see what's the ideal size to have all of them to fit.

OTHER KEYS

If you want to try other keys do as follows:

- find the key code number for key you want to add, here are some examples (not tested so not sure they all work):

CALL = 5

ENDCALL = 6

DPAD_CENTER = 23

CAMERA = 27

* Used to launch a browser application:

EXPLORER = 64

* Used to launch a mail application:

ENVELOPE = 65

NOTIFICATION = 83

SEARCH

MEDIA_REWIND = 89

MEDIA_FAST_FORWARD = 90

MUTE = 91

PAGE_UP = 92

PAGE_DOWN = 93

MEDIA_RECORD = 130

CONTACTS = 207

CALENDAR = 208

MUSIC = 209

CALCULATOR = 210

CUT = 277

COPY = 278

PASTE = 279

- open settings_secure (it's in /data/system/users/0),

- edit the sysui_nav_bar field, here's an example if you want to add a camera icon:

key(27:file:///storage/emulated/0/camera.png)

27 is the key code for the camera, camera.png is a camera icon that you'll have to put on your internal storage,

- reboot,

- please report here if it works or not.

The new keys can be used in conjunction with tasker (see XDA news for the related tutorials) to only appear when certain apps are opened but if you want I can add them to the list of available keys in the nav bar tuner, let me know.

TO DO (NO ETA)

I'd like to add a custom key to launch the applications drawer but I didn't look into it yet and I don't know if I'll manage to do it anytime soon, I'm pretty busy at the moment.

That's all, enjoy!!!:good:

XDA:DevDB Information

Additional Keys on Nav Bar, Device Specific App for the Nexus 6

Contributors

PakDe888

Version Information

Status: Testing

Created 2017-04-25

Last Updated 2017-04-25