Transparent notification bar for any rom and ANY CM7 theme (new cm-7.1.0-11 stable)

Search This thread

krd_medico

Member
Jun 7, 2011
25
22
It is expected that those following this guide should have prior knowledge of
1)How to use adb and/or terminal emulator to edit system files.
2)How to fix permissions using root explorer.
3)What to do if system process crashes or the phone hangs after replacing system files- pull battery and power on.
4)If you are an advanced user you can also first modify the systemui.apk first.Replace it in the cm7_update.zip file.Sign the new zip file so generated and install it.Then no need to go through many of the following steps


This is by far the simplest method to get a transparent notification bar. Some parts of this thread have been taken from the following source:http://www.lazytrap.com/?tag=systemui-apk
What you would think is simple though, isn’t quite. You would THINK that just updating the PNG files would be enough. It’s not. I tried it a million times while trying all those other bad ideas. After the PNG files are modified, you also need to edit the file, classes.dex, which is in the root of SystemUI.apk. Turns out, .dex is yet another format only native to the Android platform. You can decompile and recompile them using smali/baksmali. Once you have decompiled the .dex file, you’ll be left with a bunch of files. For transparency on the statusbar to work, we need to edit two entries in StatusBarService.smali. After the 2 entries are changed, we save the file then recompile classes.dex, update the SystemUI.apk, then put it on our android device. That’s it. So while it’s not as simple as just editing the PNG files and updating the SystemUI.apk archive, it’s still a hell of a lot simpler than all these forum posts lead on. Actual instructions below.
Instructions:
• Copy /system/app/SystemUI.apk to your sdcard and then to your computer where you can edit it(use root explorer or adb to pull it to your computer)
• Install 7-Zip if you do not already have it. 7-Zip can browse into .apk files and let you update them easily.
• Open SystemUI.apk in 7-Zip, do not extract it, just open it.
• Browse to the folder res/drawable-hdpi/, then find all the png files that start with “status_bar” & "statusbar_background.9". Drag them into a folder on your desktop.
• Open the PNG files in Paint.Net, Gimp, Photoshop, or whatever your favorite editor is capable of png transparency.
• Delete the background. It’s now transparent. If you want semi-transparency, do that instead.
• Select all of your modified PNG files and drag them back into same spot you got them from in the SystemUI.apk file
• Press Backspace a couple times in 7-Zip to go back up to the root folder in the .apk, you should see classes.dex sitting there.
• Drag classes.dex out to a folder
• Download smali and baksmali from here: http://code.google.com/p/smali/downloads/list, put them in the same dir you put classes.dex
• Open a CMD prompt and change to that directory
• Type the following (replace 1.2.6 with whatever version it was you dl’d):
• java -jar baksmali-1.2.6.jar -o classout/ classes.dex
• Back in the folder, go into the new classout directory that was created.
• Find the file named StatusBarService.smali, open it in a text editor.use notepad or notepad++(easier)
• Search for .line 1519, the line just under it should read: const/4 v5, -0×3. If it does not, but instead reads const/4 v5, 0×1 or const/4 v5, 0×2, change it.
• Search for invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V; a line above you should see const/4 v5, 0×2. Change it to const/4 v5, -0×3 also.
• Save the file and exit.
• Go back to your CMD prompt and enter this command (this recompiles the .dex file with your changes):
• java -jar smali-1.2.6.jar classout -o classes.dex
• Add classes.dex back to where you got it from in SystemUI.apk.
• Take your updated SystemUI.apk file and place it on your SD card. If you took it out, put the SD card back in your Android device. (instead of using a SD card you could use something else to move the files around, like dropbox).
• Open up Terminal on your Android device, change to the directory you put the update SystemUI.apk file. ex: cd /sdcard/myupdate/
• Type the following commands:
• mount -o remount,rw /system/
• cp -f SystemUI.apk /system/app
The above command probably just crashed Launcher. Press Force Close . Now, go to root explorer and fix permission for systemui.apk to rw-r--r-- and Reboot your device.
After making the update, make sure to turn off Wallpaper Hack. It’s under Settings->ADW Launcher->System Preferences->Wallpaper Hack – Not doing so will result in the transparency only working with Live Wallpapers and not others
That’s it. You should now have a transparent status bar.
Now, you can use only such themes that come with a transparent notification bar or glass effect as well as the 3 default themes included with cm7 theme chooser. But you won’t be able to use other themes i.e. they will continue to show a black notification bar and not a transparent one

WORKAROUND: But we can get transparent notification bar with ANY theme. Here’s how:
1)download the theme’s apk to your computer
2)open it with 7zip as an archive (Don’t extract it)
3)Go to res/drawable-hdpi and drag the following files to any folder:
com_android_systemui_statusbar_background.9.png; com_android_systemui_status_bar_background.9.png; com_android_systemui_status_bar_close_on.9.png
4) Open the PNG files in Paint.Net, Gimp, Photoshop, or whatever your favorite editor is capable of png transparency.
• Delete the background. It’s now transparent. If you want semi-transparency, do that instead.
Select all of your modified PNG files and drag them back into same spot you got them from in the Theme.apk file in 7zip and close 7zip
5)This will give you your new apk for the theme with a transparent statusbar .But you will need to sign it to be able to use it
6)use drag2sign_apk to sign your new apk file.
7)Transfer it to your phone and install apk using any file explorer. (If you did not sign the new apk then installation will FAIL)
8) Go to theme chooser and apply your New theme. That’s it you will now have a Transparent notification bar

This method can be used to get a transparent notification bar with ANY theme

Here I'm attaching the SystemUI.apk of cm7_rc1.5 which I'm currently using with transparent statusbar.I recommend using adb to push it.
In command prompt first change directory to the one containing the patched SystemUI.apk
Use this command: adb remount (to allow editing the system files)
next command: adb push SystemUI.apk /system/app/SystemUI.apk
Then fix permission using root explorer.
Reboot.
Don't forget to uncheck wallpaper hack in ADW settings

THOSE WHO FIND THIS THREAD USEFUL DON'T FORGET TO HIT THANKS


I had to update my system and hence had to create a new systemui.apk. This one is of cm-7.1.0-11 stable release. Here I'm uploading it for your convenience
 

Attachments

  • SystemUI.apk
    367.6 KB · Views: 472
Last edited:

matchung

Senior Member
Aug 12, 2010
254
62
thx for the instruction.

but anyhow, i cannot make it work on my latest nightly builds. status bar was dismissed after modification file pushed to system.

screenshot-1315964874483.png.scaled500.png
 
Last edited:

krd_medico

Member
Jun 7, 2011
25
22
thx for the instruction.

but anyhow, i cannot make it work on my latest nightly builds. status bar was dismissed after modification file pushed to system.

screenshot-1315964874483.png.scaled500.png

Did you fix permissions after pushing the systemui.apk and reboot ?
Also did you uncheck the wallpaper hack in ADW setting?
Are you using any different launcher ?this method works for adw
Did you apply a theme with transparent statusbar or not ?
 

hanu_blr

Senior Member
Jul 14, 2011
162
13
bangalore
request: flashable systemUI with only transparent status enabled !

Ok, i tried it, but my status bar is always black :(
I tried others methods, which are posted here, CM7 Theme Patcher v1.6, Transparent glass Theme CM7 RC1.5+Tutorial, still no luck.

Can some plz do this for me.
I just need the transparent status bar only, nothing else
am on cm7.1 rc1.5 defy.
just post me SystemUI.apk file which i can flash in recovery.

thanks for your time and help

-hanu
 

tegezan

Senior Member
Jan 25, 2010
682
281
Yogyakarta
Ok, i tried it, but my status bar is always black :(
I tried others methods, which are posted here, CM7 Theme Patcher v1.6, Transparent glass Theme CM7 RC1.5+Tutorial, still no luck.

Can some plz do this for me.
I just need the transparent status bar only, nothing else
am on cm7.1 rc1.5 defy.
just post me SystemUI.apk file which i can flash in recovery.

thanks for your time and help

-hanu

Hi.. try these patch.. You must apply the patch twice..
 

Attachments

  • statusbar_patch.zip
    420 KB · Views: 350
  • statusbar_undo.zip
    411.2 KB · Views: 217

krd_medico

Member
Jun 7, 2011
25
22
Ok, i tried it, but my status bar is always black :(
I tried others methods, which are posted here, CM7 Theme Patcher v1.6, Transparent glass Theme CM7 RC1.5+Tutorial, still no luck.

Can some plz do this for me.
I just need the transparent status bar only, nothing else
am on cm7.1 rc1.5 defy.
just post me SystemUI.apk file which i can flash in recovery.

thanks for your time and help

-hanu

check the first post I've attached the SystemUI.apk
 

hanu_blr

Senior Member
Jul 14, 2011
162
13
bangalore
@tegezan, thanks for your help, it wrked, i was able to see the transparency when i set live wallpaper, and am using this theme GingerBlur-trans.apk
http://forum.xda-developers.com/showthread.php?t=1021507

And am using go launcher ex.

if i dont want to use live wallpaper, then i shd use wall-paper with transparency ?, where to get this ?

@krd_medico, thanks, may be patch and undo recover files will be easier. anyways tegezan has attached it already :)

Edit:
Also in screen lock mode, i see more transparency, but on home screen its less transparent, is this ok ?
 
Last edited:

tegezan

Senior Member
Jan 25, 2010
682
281
Yogyakarta
@hanu_blr

note from zdunex25 theme..

Wallpaper & transparency:
As you should know not each launchers supports
transparent statusbar, but if we will use
MiltiPicture Live Wallpaper we can get
transparent statusbar using any launcher :)

btw, I am used go launcher ex.. no need to use live wallpaper, just uncheck wallpaper hacks..
 

hanu_blr

Senior Member
Jul 14, 2011
162
13
bangalore
@tegezan,

in go launcher ex, where is the wallpaper hack settings, i coudnt find it :(
but its available in AWD, i hv disabled it, but am not using awd.
 

matchung

Senior Member
Aug 12, 2010
254
62
@tegezan,

in go launcher ex, where is the wallpaper hack settings, i coudnt find it :(
but its available in AWD, i hv disabled it, but am not using awd.

nothing to change in Go Ex, let it as is.
i dont know whats wrong with my modified theme file, it can be done by using other stock themes. here is theme Zdunex25 applied.
 

Attachments

  • 1316058934844.jpg
    1316058934844.jpg
    9.6 KB · Views: 458

hanu_blr

Senior Member
Jul 14, 2011
162
13
bangalore
@krd_medico, i think u ment theame.apk, not SystemUI.apk.. in the WORKAROUND section. am i rt ?

"Select all of your modified PNG files and drag them back into same spot you got them from in the SystemUI.apk file in 7zip and close 7zip"
 

hanu_blr

Senior Member
Jul 14, 2011
162
13
bangalore
Am hving issues with go launcher ex, with this i dont see transparency in home screen, its rather 10% or semi-transparency with black color, in lock screen its clear transparent.
At times i saw full transparency in home screen, but lock/unlock made it to go back to 10% trans with black color.

If i change to AWD, even in home screen i see full transparency :(. Dont know wats going on :confused:
 

matchung

Senior Member
Aug 12, 2010
254
62
finally,, i can make it work. i did the modification by using apk_manager b4, but seems not.

ic.png.scaled500.png


running CM7, on Go Launcher Ex, with modified Zdunex25's Meizu theme
 
  • Like
Reactions: riskihajar

Cocolopes

Senior Member
Sep 29, 2010
2,346
1,581
37
Rosario
Is there any chance to make this?

forum.xda-developers.com/showthread.php?p=17582887#post17582887



Sent from my MB525 using xda premium
 

hanu_blr

Senior Member
Jul 14, 2011
162
13
bangalore
@matchung,

can u try installing the gingerblur-trans.apk form http://forum.xda-developers.com/showthread.php?t=1021507, and see if u see full transparent in GO lauhcher ex ?.

I guess gingerblur-trans.apk, is semi trans with black. If u see semi trans black, can u make it full trans for this gingerblur-trans.apk ?.

I did try to make gingerblur-trans.apk full trans with paint.net.
I took all statusbar* pngs from the gingerblur-trans.apk file, then opened it in paint.net, under layer window, layer properties, opacity was set 255, made it 0, this changed the image with small white_gray square pattern image, guess this is transparent image, save it as png, with bit depth auto-detect, then replaced all those statusbar* file in the original gingerblur-trans.apk, then resigned it. After installing it, still i see black bar in home screen, and full trans in lock screen, if i use live wallpapers, both home/screen lock is transparent, this is with go launcher ex,

if i use AWD, both home and lock screen is full trans :(. I dont like AWD much. Can u try and if it wrks fine on go laucnher ex, can u post the modified gingerblur-trans.apk file here plz ?

thanks for u time

NOTE: i didnt xtract gingerblur-trans.apk, just opened in winrar, tookout the png files, edited it and pushed back to gingerblur-trans.apk.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    It is expected that those following this guide should have prior knowledge of
    1)How to use adb and/or terminal emulator to edit system files.
    2)How to fix permissions using root explorer.
    3)What to do if system process crashes or the phone hangs after replacing system files- pull battery and power on.
    4)If you are an advanced user you can also first modify the systemui.apk first.Replace it in the cm7_update.zip file.Sign the new zip file so generated and install it.Then no need to go through many of the following steps


    This is by far the simplest method to get a transparent notification bar. Some parts of this thread have been taken from the following source:http://www.lazytrap.com/?tag=systemui-apk
    What you would think is simple though, isn’t quite. You would THINK that just updating the PNG files would be enough. It’s not. I tried it a million times while trying all those other bad ideas. After the PNG files are modified, you also need to edit the file, classes.dex, which is in the root of SystemUI.apk. Turns out, .dex is yet another format only native to the Android platform. You can decompile and recompile them using smali/baksmali. Once you have decompiled the .dex file, you’ll be left with a bunch of files. For transparency on the statusbar to work, we need to edit two entries in StatusBarService.smali. After the 2 entries are changed, we save the file then recompile classes.dex, update the SystemUI.apk, then put it on our android device. That’s it. So while it’s not as simple as just editing the PNG files and updating the SystemUI.apk archive, it’s still a hell of a lot simpler than all these forum posts lead on. Actual instructions below.
    Instructions:
    • Copy /system/app/SystemUI.apk to your sdcard and then to your computer where you can edit it(use root explorer or adb to pull it to your computer)
    • Install 7-Zip if you do not already have it. 7-Zip can browse into .apk files and let you update them easily.
    • Open SystemUI.apk in 7-Zip, do not extract it, just open it.
    • Browse to the folder res/drawable-hdpi/, then find all the png files that start with “status_bar” & "statusbar_background.9". Drag them into a folder on your desktop.
    • Open the PNG files in Paint.Net, Gimp, Photoshop, or whatever your favorite editor is capable of png transparency.
    • Delete the background. It’s now transparent. If you want semi-transparency, do that instead.
    • Select all of your modified PNG files and drag them back into same spot you got them from in the SystemUI.apk file
    • Press Backspace a couple times in 7-Zip to go back up to the root folder in the .apk, you should see classes.dex sitting there.
    • Drag classes.dex out to a folder
    • Download smali and baksmali from here: http://code.google.com/p/smali/downloads/list, put them in the same dir you put classes.dex
    • Open a CMD prompt and change to that directory
    • Type the following (replace 1.2.6 with whatever version it was you dl’d):
    • java -jar baksmali-1.2.6.jar -o classout/ classes.dex
    • Back in the folder, go into the new classout directory that was created.
    • Find the file named StatusBarService.smali, open it in a text editor.use notepad or notepad++(easier)
    • Search for .line 1519, the line just under it should read: const/4 v5, -0×3. If it does not, but instead reads const/4 v5, 0×1 or const/4 v5, 0×2, change it.
    • Search for invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V; a line above you should see const/4 v5, 0×2. Change it to const/4 v5, -0×3 also.
    • Save the file and exit.
    • Go back to your CMD prompt and enter this command (this recompiles the .dex file with your changes):
    • java -jar smali-1.2.6.jar classout -o classes.dex
    • Add classes.dex back to where you got it from in SystemUI.apk.
    • Take your updated SystemUI.apk file and place it on your SD card. If you took it out, put the SD card back in your Android device. (instead of using a SD card you could use something else to move the files around, like dropbox).
    • Open up Terminal on your Android device, change to the directory you put the update SystemUI.apk file. ex: cd /sdcard/myupdate/
    • Type the following commands:
    • mount -o remount,rw /system/
    • cp -f SystemUI.apk /system/app
    The above command probably just crashed Launcher. Press Force Close . Now, go to root explorer and fix permission for systemui.apk to rw-r--r-- and Reboot your device.
    After making the update, make sure to turn off Wallpaper Hack. It’s under Settings->ADW Launcher->System Preferences->Wallpaper Hack – Not doing so will result in the transparency only working with Live Wallpapers and not others
    That’s it. You should now have a transparent status bar.
    Now, you can use only such themes that come with a transparent notification bar or glass effect as well as the 3 default themes included with cm7 theme chooser. But you won’t be able to use other themes i.e. they will continue to show a black notification bar and not a transparent one

    WORKAROUND: But we can get transparent notification bar with ANY theme. Here’s how:
    1)download the theme’s apk to your computer
    2)open it with 7zip as an archive (Don’t extract it)
    3)Go to res/drawable-hdpi and drag the following files to any folder:
    com_android_systemui_statusbar_background.9.png; com_android_systemui_status_bar_background.9.png; com_android_systemui_status_bar_close_on.9.png
    4) Open the PNG files in Paint.Net, Gimp, Photoshop, or whatever your favorite editor is capable of png transparency.
    • Delete the background. It’s now transparent. If you want semi-transparency, do that instead.
    Select all of your modified PNG files and drag them back into same spot you got them from in the Theme.apk file in 7zip and close 7zip
    5)This will give you your new apk for the theme with a transparent statusbar .But you will need to sign it to be able to use it
    6)use drag2sign_apk to sign your new apk file.
    7)Transfer it to your phone and install apk using any file explorer. (If you did not sign the new apk then installation will FAIL)
    8) Go to theme chooser and apply your New theme. That’s it you will now have a Transparent notification bar

    This method can be used to get a transparent notification bar with ANY theme

    Here I'm attaching the SystemUI.apk of cm7_rc1.5 which I'm currently using with transparent statusbar.I recommend using adb to push it.
    In command prompt first change directory to the one containing the patched SystemUI.apk
    Use this command: adb remount (to allow editing the system files)
    next command: adb push SystemUI.apk /system/app/SystemUI.apk
    Then fix permission using root explorer.
    Reboot.
    Don't forget to uncheck wallpaper hack in ADW settings

    THOSE WHO FIND THIS THREAD USEFUL DON'T FORGET TO HIT THANKS


    I had to update my system and hence had to create a new systemui.apk. This one is of cm-7.1.0-11 stable release. Here I'm uploading it for your convenience
    1
    You can go to this website http://uot.dakra.lt/kitchen/ and upload your framework-res and systemui and do all kinds of stuff to it including transparencies. check it out its pretty easy. You can also upload a theme.apk and modify that also. Here is a thread for asking questions and getting help for that site http://forum.xda-developers.com/showthread.php?t=990829
    1
    finally,, i can make it work. i did the modification by using apk_manager b4, but seems not.

    ic.png.scaled500.png


    running CM7, on Go Launcher Ex, with modified Zdunex25's Meizu theme
    1
    I Can't be 100% sure because I haven't tried it myself on rooted froyo
    (I am using cm7) but I guess IT SHOULD WORK!

    You will have to take a risk. Make sure you have 2ndinit recovery installed and do a nandroid back-up before you try. If anything goes wrong: Pull battery,put it back on,restart, enter 2ndinit recovery by pressing volume down button as soon as the led turns blue and restore your nandroid backup.

    Kindly post your result: success or failure if you decide to try. So that others may know. Good luck.