[Android Themes] jsmccabe78:
======================================

Transparent StatusBar for CM7

======================================​

Note: This is a reposting of ZduneX25's work found HERE and from his MIUI thread HERE.

All credit goes to him and the other developers.

Please take a second to thank him!

ZduneX25 has a quick and easy app on his website to do all the below. I couldn't get it to work (all my fault) so I did each step by hand. This is what I did (Zdune's instructions with a little extra by me!) It worked for me, but as with everything no guarantees for anyone else!

======================================

Transparent StatusBar for CM7 Repository

======================================​

DO A NANDBACKUP BEFORE DOING ANYTHING!!!!

These are CWM flashable zips that have been tested and work for their specific rom. They only work for there intended rom and device; they will not likely work across devices/roms. By flashing this you are having fun, and know that you may have to restore things if something goes wrong (or flash the undo file.)

1- HD2 - TyphooN Rom

TyphooN 3.5.6

TyphooN 3.5.6 UNDO

======================================

Before We Begin

======================================​

DO A NANDBACKUP BEFORE DOING ANYTHING!!!!

1- My launcher (ADW Launcher - standard in CM7) did not work with this transparency modification. I needed to use MultiPicture Live Wallpaper found DOWNLOAD HERE.

2- Install APKTool - http://code.google.com/p/android-apktool/

If you are having troubles with installing APKTool read the following thread: http://www.miui-au.com/add-ons/apktool/

3- Download and have ready APKManager: http://xdaforums.com/showthread.php?t=695701

4- Install Notepad++: http://notepad-plus-plus.org/

======================================

STEP 1: Editing SystemUI.apk for Transparency

======================================​

DO A NANDBACKUP BEFORE DOING ANYTHING!!!! YOU HAVE BEEN WARNRED

1- Download framework-res.apk and systemui.apk from your rom (just pull them out of the zip)

2- Copy to your APKTool folder (/Windows)

3- Open CMD Window (Shift + Right Click) and type:

apktool if framework-res.apk

then

apktool d -f SystemUI.apk

4- Open the new SystemUI folder (from this original post) and browse to the folder smali/com/android/systemui/statusbar/ and open the file StatusBarService.smali in Notepad++

5- Search for:

invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V

directly above it you will find

const/4 v5, 0x2

replace it with

const/4 v5, -0x3

6- Now go to /res/layout/status_bar.xml, open it in Notepad++ and search for:

com.android.systemui.statusbar.DateView

Replace the entire line with:

<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center|center" android:id="@id/date" android:background="@drawable/statusbar_background2" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />

7- Download the follwing zip, extract the "statusbar_background2.9.png" and place in /WINDOWS/SystemUI/res/drawable-hdpi (yes you can edit this; mine is 100% black): DOWNLOAD statusbar_background2.9.png.zip

8- Open CMD window and type:

apktool b -f SystemUI SystemUInew.apk

9- Find SystemUInew.apk, rename to SystemUI.apk and place in folder "place-apk-here-for-signing" in APKManager

10- Run APKManager and sign (option 16)

11- If you don't want to use APKManager, you can use drag2sign

12- Install to internal memory (/system/app). I did this by making a flashable CWM zip though there are lost of ways to do this (again, this works for me, do as you see fit!)

13- Steps 6 and 7 are optional. In my opinion they make the drop down menu look better (otherwise it is half transparent). From ZduneX25, not my own creation. You can always make it both ways and give it a look.

======================================

STEP 2: Making a CWM Flashable Zip

======================================​

1- Download, extract the META-INF and system folders to a new location: Download BLANK CMW Flashable zip

2- Place your (new and edited) apk just as it appears in your rom. For SystemUI.apk, place it in /system/app

2a- NOTE: YOU CAN DO THIS TO MAKE A BACKUP TOO!!! Simply use the original (non-edited) SystemUI.apk!

3- Edit META-INF\com\google\android\updater-script in Notepad++ - you can change the ui_print to fit your theme

4- Zip up META-INF and system folder (highlight both folders, right click and add to zip). Transfer to your phone.

5- Enter CWM and flash

======================================

OPTIONAL STEP 1: THE FOLLOWING IS FOR NON-ANASTASDROID USERS - MAKING YOUR THEME TRANSPARENT

======================================​

The above changes to SystemUI.apk do the set up for transparency. Now you need to make your theme transparent too (this is done in Anastasdroid fo your - so if you install Anastasdroid, you can ignore the following steps.)

The native file is black, so your statusbar background will be black unless you change it!

1- Simply put you need to edit the com_android_systemui_statusbar_background.9.png per regular ways

2- What I did - substituted com_android_systemui_statusbar_background.9.png for com_android_systemui_statusbar_background.png that is 480x38px. (The xml redirecting in your theme is the same for both files as the ".9.png" is ommitted.)

3- My file: com_android_systemui_statusbar.png.zip