[Sony Xperia T, TL, TX, V] DaRk-L0rD:
GUIDE HOW TO REDUCE/INCREASE NAVIGATION BAR dpi​

THIS TUTORIAL PROBABLY WILL WORK FOR ALL ANDROID DEVICES RUNNING JB​

TOOLS

1. Android Multitool v2.1 from HERE (I use this one which works great and don't need everytime to type the commands)

2. Notepad++ from HERE

3. Winrar or Winzip

WHAT YOU NEED

1. Root permissions

2. Deoxeded rom

3. Framework-res.apk and the SystemUI.apk (extract them from your ROM)

4. Patience and no panic!

Procedure​

1. Extract Android Multitool v2.1 from the downloaded zip file and place it in Computer-> Local Disk (C: ). Now you will see a folder named AndroidMultitool.

2. Put your Framework-res.apk and SystemUI.apk in the folder Files (The one you find on AndroidMultitool).

3. Now open the AndroidMultitool.exe

4. You will see Installing Framework. Now click the ... and go to the file you had previously place framework-res.apk and click install (you have to do this procedure only for the framework-res.apk file and not the SystemUI.apk file).

5. Now you will see that a file named apktool will be created under Start->your computer's name.

6. The next thing to do is open the AndroidApktool.exe and click the ... under the Decompiling option and go to the file you had previously place framework-res.apk and click decompile.

7. Now starts the party. From AndroidApktool file, go to Decompiled_apk and you will find a folder named framework-res. Open it.

8. Go framework-res.apk -> res -> values -> dimens.xml. Now open dimens.xml using Notepad++

9.Now you will see these lines :

<dimen name="navigation_bar_height">48.0dip</dimen>

[*]

[*] <dimen name="navigation_bar_height_landscape">48.0dip</dimen>

[*]

[*] <dimen name="navigation_bar_width">42.0dip</dimen>

10. Now change the dpi values to the one you want. I personally use 36.0dip, but you can use other values if you wish :)

11. After setting the values you want, on the Notepad++ option, go to:

a)Edit-> EOL Conversion and check the UNIX/OSX Format.

b)Encoding and check "Encode in ANSI".

12. Now save your edited file.

13. Open AndroidMultitool and Under Compiling menu click the ... and navigate to AndroidMultitool-> Decompiled_apk-> framework-res and select the whole folder. Now Click on compile and wait.

14. The next step is to add META-INF and AndroidManifest.xml in your modified apk. To do this, go to decompiled_apk and open framework-res.apk with winrar.

15. Now go to Files and open the original framework-res.apk. Drag n' drop the META-INF folder and the AndroidManifest.xml from the original apk to the modified one.

So now you have edited succesfully your framework-res.apk :)

Next thing to do is Decompile the SystemUI.apk (Most of custom UI don't have to be edited since they don't have these lines; Correct me if i am wrong)​

1. Go to Decompiling menu and click the ... and find the SystemUI.apk

2. Click Decompile and wait some seconds.

3. After decompiling finished, go to Decompiled_apk -> SystemUI

4. SystemUI -> res -> layout -> navigation_bar.xml and open it with Notepad++.

5. Inside the navigation_bar.xml file find the following two lines:

"@drawable/ic_sysbar_back" android:scaleType="center"

"@drawable/ic_sysbar_back_land" android:scaleType="center"

Now, delete the android:scaleType="center" from both lines.

6. Now, as you did for the framework-res.apk, go to:

a)Edit-> EOL Conversion and check the UNIX/OSX Format

b)Encoding and check "Encode in ANSI"

7. Save your file.

8. The next thing to do is Open AndroidMultitool and under Compiling menu click the ... and navigate to AndroidMultitool-> Decompiled_apk-> SystemUI and select the whole folder. Now Click on compile and wait.

9. The next step is to add META-INF and AndroidManifest.xml in your modifies apk. To do this, go to decompiled_apk and open SystemUI.apk with winrar.

10. Now go to Files and open the original SystemUI.apk. Drag n' drop the META-INF folder and the AndroidManifest.xml from the original apk to the modified one.

Now, tranfer the 2 files in your phone. Copy them and go to /system and paste them here.

Now set permissions for both files to rw-r-r.

Cut SystemUI.apk and paste it to /system/app.

Cut framework-res.apk and paste it in system/framework.

Reboot now and enjoy your own resized navbar!