[GUIDE][MOD] Make Status Bar & Navigation Bar transparent in 4.4 Home/Lockscreen

Search This thread

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,425
7,689
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
Most people will be thinking "it's transparent by default isn't it?" by now
In some cases, no.
So here's a guide to make it so it is, using apktool

1.) Pull your current framework-res.apk using ADB to your folder where apktool is
2.) Run this command:
Code:
java -jar apktool.jar d framework-res.apk
3.) When it's done, open the "bools.xml" file in framework-res/res/values
4.) Edit the following lines:
To make the homescreen bars transparent:
Code:
    <bool name="config_enableTranslucentDecor">true</bool>
To make lockscreen bars transparent:
Code:
    <bool name="config_enableLockScreenTranslucentDecor">true</bool>

BONUS:
To make lockscreen rotate:
Code:
    <bool name="config_enableLockScreenRotation">true</bool>
To enable all rotation orientations:
Code:
    <bool name="config_allowAllRotations">true</bool>

These are fairly easy edits, there might be some more that you want to do, have a look, but be careful (and "Dianne" is this Dianne if you're wondering)

5.) Go back to your command prompt and run
Code:
java -jar apktool.jar b framework-res

6.) Run this:
Code:
adb push framework-res/dist/framework-res.apk /sdcard/

7.) On the device, download ZipSigner and open it

8.) Choose /sdcard/framework-res.apk and the "platform" key, and then sign

9.) Go back to your command prompt and run the following commands:
Code:
adb root
adb shell mount -o rw,remount /system
adb shell cp /system/framework/framework-res.apk /system/framework/framework-res.bak
adb shell cp /sdcard/framework-res-signed.apk /system/framework/framework-res.apk
adb shell chmod 644 /system/framework/framework-res.apk
adb reboot

NOTE: If you are on a low end device, you must add or change the build.prop to have this:
Code:
ro.config.low_ram=false
Thanks to lagloose for the heads up!

10.) Your device will reboot with the new framework installed. If it's bootlooping, use these commands:
Code:
adb root
adb shell mount -o rw,remount /system
adb shell cp /system/framework/framework-res.bak /system/framework/framework-res.apk
adb reboot
This will revert to the one before you installed
 
Last edited:

rubikqj

Member
Nov 28, 2012
48
18
0
Does it look exactly like kit kat? Any screenshots?

Sent from my LG-E610 using Tapatalk

What does this mean? You have to have KitKat! Here is for example a screen of my lockscreen. As you can see the bars are translucent and there are only black shadows. Prior to making this change to framework-res I had two horrible and ugly black bars.
 

Attachments

  • Del.jpg
    Del.jpg
    50.5 KB · Views: 5,321
  • Like
Reactions: Quinny899

genkralyz

Senior Member
Feb 27, 2012
512
196
0
Manila
100% working!

I pulled the framework-res.apk from my current rom in system/framework,
Followed steps 2-5, I downloaded your flashable zip and replace the framework-res.apk with my compiled one (w/c is just enabling the transparent nav/status bar), flash through cwm and it worked! :D
 
P

Psykic

Guest
What does this mean? You have to have KitKat! Here is for example a screen of my lockscreen. As you can see the bars are translucent and there are only black shadows. Prior to making this change to framework-res I had two horrible and ugly black bars.

Okay ...sorry...I misread.
I thought it was a mod for 4.3 devices to get a 4.4 look ..

Sent from my LG-E610 using Tapatalk
 

arifqur

Senior Member
Nov 12, 2005
3,603
1,036
243
I tried it with RasKat version and did all the steps. by the way I used notepad++ to edit and save the bools.xml file.
Put the framework-res.apk ih the flashable zip as mentioned in the above post but it did not change anything.
Any thoughts what might be wrong?
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,425
7,689
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
How can i flash this update but i will not the on screen buttons? I have flashed this and it works great but i cant turn off the on screen buttons...
Why would you want to turn the buttons off? That zip is for a Galaxy Nexus, it needs those buttons, unless you're using one of those PIE thingys
 
  • Like
Reactions: SeidMNE

swimdude1120

Senior Member
Jun 18, 2011
270
50
0
Lindenhurst
Post the error, it's likely a simple solution

Sent from my Galaxy Nexus using Tapatalk

still getting errors
C:\Users\Tom Hubert\Desktop\apktool (1)>java -jar apktool.jar b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/anim-sw720dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/drawable-sw600dp-nodpi
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/drawable-sw720dp-nodpi
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/layout-sw600dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/layout-sw720dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/layout-w600dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-h720dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw380dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw380dp-land
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw600dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw600dp-land
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw600dp-port
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw600dp-w960dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw720dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw720dp-land
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw720dp-port
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw720dp-w1280dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w360dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w480dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w500dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w600dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\TOMHUB~1\AppData\Local\Tem
p\APKTOOL6552461562442458300.tmp, -x, -S, C:\Users\Tom Hubert\Desktop\apktool (1
)\framework-res\res, -M, C:\Users\Tom Hubert\Desktop\apktool (1)\framework-res\A
ndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\TOMHUB~1\AppData\Local\Temp\APKTOOL6552461562 442458300.tmp, -x, -S, C:\User
s\Tom Hubert\Desktop\apktool (1)\framework-res\res, -M, C:\Users\Tom Hubert\Desk
top\apktool (1)\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more

Anyway to fix that?
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,425
7,689
253
23
Salford, Greater Manchester, UK
quinny898.co.uk
still getting errors
C:\Users\Tom Hubert\Desktop\apktool (1)>java -jar apktool.jar b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/anim-sw720dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/drawable-sw600dp-nodpi
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/drawable-sw720dp-nodpi
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/layout-sw600dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/layout-sw720dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/layout-w600dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-h720dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw380dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw380dp-land
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw600dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw600dp-land
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw600dp-port
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw600dp-w960dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw720dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw720dp-land
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw720dp-port
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-sw720dp-w1280dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w360dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w480dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w500dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w600dp
invalid resource directory name: C:\Users\Tom Hubert\Desktop\apktool (1)\framewo
rk-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\TOMHUB~1\AppData\Local\Tem
p\APKTOOL6552461562442458300.tmp, -x, -S, C:\Users\Tom Hubert\Desktop\apktool (1
)\framework-res\res, -M, C:\Users\Tom Hubert\Desktop\apktool (1)\framework-res\A
ndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\TOMHUB~1\AppData\Local\Temp\APKTOOL6552461562 442458300.tmp, -x, -S, C:\User
s\Tom Hubert\Desktop\apktool (1)\framework-res\res, -M, C:\Users\Tom Hubert\Desk
top\apktool (1)\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more

Anyway to fix that?
When did you last update your Apktool?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    Most people will be thinking "it's transparent by default isn't it?" by now
    In some cases, no.
    So here's a guide to make it so it is, using apktool

    1.) Pull your current framework-res.apk using ADB to your folder where apktool is
    2.) Run this command:
    Code:
    java -jar apktool.jar d framework-res.apk
    3.) When it's done, open the "bools.xml" file in framework-res/res/values
    4.) Edit the following lines:
    To make the homescreen bars transparent:
    Code:
        <bool name="config_enableTranslucentDecor">true</bool>
    To make lockscreen bars transparent:
    Code:
        <bool name="config_enableLockScreenTranslucentDecor">true</bool>

    BONUS:
    To make lockscreen rotate:
    Code:
        <bool name="config_enableLockScreenRotation">true</bool>
    To enable all rotation orientations:
    Code:
        <bool name="config_allowAllRotations">true</bool>

    These are fairly easy edits, there might be some more that you want to do, have a look, but be careful (and "Dianne" is this Dianne if you're wondering)

    5.) Go back to your command prompt and run
    Code:
    java -jar apktool.jar b framework-res

    6.) Run this:
    Code:
    adb push framework-res/dist/framework-res.apk /sdcard/

    7.) On the device, download ZipSigner and open it

    8.) Choose /sdcard/framework-res.apk and the "platform" key, and then sign

    9.) Go back to your command prompt and run the following commands:
    Code:
    adb root
    adb shell mount -o rw,remount /system
    adb shell cp /system/framework/framework-res.apk /system/framework/framework-res.bak
    adb shell cp /sdcard/framework-res-signed.apk /system/framework/framework-res.apk
    adb shell chmod 644 /system/framework/framework-res.apk
    adb reboot

    NOTE: If you are on a low end device, you must add or change the build.prop to have this:
    Code:
    ro.config.low_ram=false
    Thanks to lagloose for the heads up!

    10.) Your device will reboot with the new framework installed. If it's bootlooping, use these commands:
    Code:
    adb root
    adb shell mount -o rw,remount /system
    adb shell cp /system/framework/framework-res.bak /system/framework/framework-res.apk
    adb reboot
    This will revert to the one before you installed
    5
    Post your error then we can help

    Sent from my Galaxy Nexus using Tapatalk

    I finally compiled these files on my friend's laptop. Perhaps there's something wrong with mine.
    Anyway Thank you very much for the guide!

    BTW I've made the file for Google Nexus 4. Flash Trans.zip to get transparent bars in lockscreen and flash original.zip to get the original framework-res back!
    I've tested these zip files and they are working fine on my phone.

    Hope this helps.:laugh:
    3
    Thanks for the guide! Also, can someone upload framework-res.apk from 4.4?
    Pull it from the zip here: http://forum.xda-developers.com/showpost.php?p=47081752&postcount=495
    2
    FYI:

    If you want to try this on 'low memory' devices, you have to set the property ro.config.low_ram=false in system/build.prop. Setting this to 'true' will disable translucency regardless of settings in framework-res.apk.
    1
    Hi Guys, thanks for simple guide...

    I modify build.prop

    Code:
    ro.config.low_ram=false

    and recompiled framework apk with this row

    Code:
     <bool name="config_enableLockScreenTranslucentDecor">true</bool>
     <bool name="config_enableTranslucentDecor">true</bool>

    on two different cm 11 based ROM..

    but sometimes have a semitranslucent statusbar... any idea ?

    I try different launcher

    Launcher3
    GEL
    Nova

    but sometimes same iusses

    to solve just tap the statusbar and everything works

    Many thanks.

    This is a bug in KitKat. Not the mod

    Sent from my Nexus 5 using Tapatalk
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone