[Nexus 5 Themes and Apps] kabauterman:
Hey folks,

I'm running OmniROM on my Nexus 5 and was very much missing the option to change the NavBar height from AOKP on my Nexus 4.

I did a feature request for OmniROM but until it will be implented in the future I'm helping my self and wrote a little How-To on my Android 4.4 experiences.

Use at your own risk!

I'm not responsible for what you do on your phone.

If you don't even know how to flash a ZIP stop reading here this goes far more into detail. :confused:

Download for omni-4.4.2-20140224-hammerhead-NIGHTLY

(it can work with newer or older versions too, It changes the framework-res.apk and SystemUI.apk, if they are changed on later nightlies I't will not work)

:cool:

Screenshot with original 48 DPI NavBar

If you want to make a smaller NavBar by yourself I have made a little 20 Step How-To for you, based on this Guide by APatte111 and using this great Tool by Flextrick

you need AndroidMultitool, Java, Notepad++ and 7-Zip on your PC (this How-To is made for Windows).

(don't forget to add "C:\Program Files (x86)\Java\jre7\bin" (for your Java Runtime) to the PATH Var. in your Windows System Settings)

Here is the How-To:

Folder structure of the AndroidMultitool

GUI of the AndroidMultitool

1. Extract SystemUI.apk (system\priv-app) and framework-res.apk (system\framework) from ROM-ZIP

2. put both original files into a Recovery flashable ZIP, "framework-res.apk" under (system\framework) and "SystemUI.apk" under (system\priv-app) for restoring.

3. Copy both files to the "Files" folder of AndroidMultitool

4. Install Framework in AndroidMultitool

5. Decompile framework-res.apk

6. Go to "decompiled_apk" into "res\values" and open "dimens.xml" with Notepad++

7. Look for the "navigation_bar_height", "navigation_bar_height_landscape" (only matters for tablets) and "navigation_bar_width" entry

8. Change the DPI values to your preferences, for example 36.0dip/36.0dip/32.0dip and Save

9. Take a look into "decompiled_apk\framework-res\res" for folders like "values-mcc310-mnc-1" and delete the "-" in front of the last number it have to be "values-mcc310-mnc1" for compiling without errors.

10. Under compiling choose the folder of the decompiled framework-res "decompiled_apk\framework-res" and click compile

11. Open the new framework-res.apk under "Compiled_apk\framework-res" with 7-Zip and extract the "resources.arsc" file (thats the only one wich includes our changes)

12. Open the Original "framework-res.apk" with 7-Zip and put the resources.arsc into it, apply the overwriting and close 7-Zip

13. Decompile SystemUI.apk

14. Go to "decompiled_apk" into "SystemUI\res\layout" and open "navigation_bar.xml" with Notepad++

15. Search for "@drawable/ic_sysbar_back" and "@drawable/ic_sysbar_back_land" and delete the line " android:scaleType="center" " after it and save.

16. Under compiling choose the folder of the decompiled SystemUI "decompiled_apk\SystemUI" and click compile.

17. Open the original extracted "SystemUI.apk" with 7-Zip and extract the "META-INF" folder and "AndroidManifest.xml"

18. Open the new SystemUI.apk under "Compiled_apk\SystemUI" and insert the "META-INF" folder and "AndroidManifest.xml" file from the original "SystemUI" in it, apply the overwriting and close 7-Zip

19. Put both changed files into a Recovery flashable ZIP, "framework-res.apk" under (system\framework) and "SystemUI.apk" under (system\priv-app)

20. flash the ZIP in recovery and see your changes (if it failes, install your Restore-Zip from 2. and try the steps again)

Have fun with your new NavBar guys :highfive: :victory:

Changelog:

- version updated for OmniROM 4.4.2 20140224 (2014-02-24)

- version updated for OmniROM 4.4.2 20140206 (2014-02-07)

- version updated for OmniROM 4.4.2 20140203 (2014-02-03)

- version updated for OmniROM 4.4.2 20140128 (2014-01-28)

- version updated for OmniROM 4.4.2 20140123 (2014-01-23)

- version updated for OmniROM 4.4.2 20140117 (2014-01-17)

- version updated for OmniROM 4.4.2 20140115 (2014-01-15)

- version updated for OmniROM 4.4.2 20140105 (2014-01-05)

- version updated for OmniROM 4.4.2 20131227 (2013-12-27)

- version updated for OmniROM 4.4.2 20131217 (2013-12-17)

- version updated for OmniROM 4.4.2 20131212 (2013-12-12)

- version updated for OmniROM 4.4.1 20131208 (2013-12-09)

- 20131201 Version works flawless on Nightly 20131204, name changed (2013-12-04)

- version updated for OmniROM 20131201 (2013-12-02)

​