[MOD][ICS - LP*/CM9] Translucent status bar

Hi

Here's how to make a translucent status bar For DEODEX ICS ROM (LP*/CM9)
successfully tested on
- WanamLite 9.0 (http://forum.xda-developers.com/show....php?t=1436817)
- REMIX ICS 9.4 (http://forum.xda-developers.com/show....php?t=1436854)
- CM9 (http://forum.xda-developers.com/show...php?t=1410400)
- My ROM


Patches for some ROM

for Criskelo V5 (Link ) (Thanks jeanluc1701) 100% Translucent : http://forum.xda-developers.com/atta...0&d=1332084829

for Turkbey LPQ (Link) (Thanks shadowofdarkness) : 100% Translucent : http://www.mediafire.com/?bbq2h9ofdc9d4hn

for WanamLite 9.1 (Link) : 100% Translucent : http://www.mediafire.com/?kr80pkdxk7kbis1

for WanaLite 9.4 (Link) : - 100% Translucent : http://www.mediafire.com/?9maj0fu2zmsw318

for WanamLite 9.6 (Link) : 100% Translucent : http://www.mediafire.com/?16yv3a8mmkcqkbk

for WanamLite 9.8 (Link) : 100% Translucent : http://www.mediafire.com/?rmv21bkgj5pqge7

for WananLite 9.9 (Link) : 100% Translucent : http://dl.dropbox.com/u/26340739/Sys...lucent_100.zip

for WananLite 10 (Link) : 100% Translucent :http://www.mediafire.com/?bbgmc3quckm4m5u


for LPQ Stock DEODEX (Link) : 50% Translucent : http://www.mediafire.com/?f1hc4ky6kn711if

for LPQ Stock DEODEX (Link) : 100% Translucent : http://www.mediafire.com/?hvd317q867aoi8t

for Pure ICS 7.1 (Link) : 100% Translucent with round battery icons (Mardanpet's Status bar) : http://www.mediafire.com/?ovv5fr3crxezmj6



Patch Installation
-1- put zip file on your sd card
-2- reboot in recovery
-3- make a backup
-4- wipe cache
-5- wipe dalvik cache
-6- flash zip file
-7- reboot


To do yourself

**** Make a backup first ****

Use ADB for pull and push SystemUI.apk

I use Linux , not Windows


For Windows , try Wanam's ApkManager : http://forum.xda-developers.com/show...0&postcount=14
(Thanks Wanam)

For Linux
first download apktool , aapt and sign tool :
apktool + aapt for Linux : http://www.mediafire.com/?wg7cgaoerq4ab3n
sign tools for Linux : http://dl.dropbox.com/u/26340739/sig..._for_Linux.zip

alternative apktool : http://www.mediafire.com/?gs45ase17lb21ag

create a directory for example : works
create a directory for signtools : signtools
create a directory for apk signed : signed

mkdir ~/works
mkdir ~/works/signtools
mkdir ~/works/signed

put apktool.jar , aapt in this ~/works
put sign tools in ~/works/signtools

change permission for aapt :
cd ~/works
chmod 755 aapt
export PATH=$PATH:.

-1- get SystemUI.apk, framework-res.apk , twframework-res.apk from your phone :
adb pull /system/app/SystemUI.apk ~/works/SystemUI.apk
adb pull /system/framework/framework-res.apk ~/works/framework-res.apk
adb pull /system/framework/twframework-res.apk ~/works/twframework-res.apk

-2- cd ~/works
-3- java -jar apktool.jar if framework-res.apk
-4- java -jar apktool.jar if twframework-res.apk
-5- Decompile your SystemUI.apk : java -jar apktool.jar d -f SystemUI.apk
-6- Navigate to your decompiled folder and go to ~/works/SystemUI/smali/com/android/systemui/statusbar/StatusBar.smali
-7-Search this line :


Code:
invoke-direct/range {v11 .. v16}, Landroid/view/WindowManager$LayoutParams;->(IIIII)V
-8- Above this line, change :

Code:
const/16 v16, 0x4
TO


Code:
const/16 v16, -0x3
-9- Save the file
-10- Navigate to your decompiled folder and go to ~/works/SystemUI/res/values/drawables.xml
-11- Search this line :

Code:
#ff000000
Change the value of status_bar_background
example for completely translucent or 50% translucent

Completely translucent

Code:
#00FFFFFF
50% translucent

Code:
#7f000000
-12- Save the file
-13- Recompile SystemUI.apk : java -jar apktool.jar b -f SystemUI signtools/SystemUI.apk
-14- cd ~/work/signtools
-15- sign the new apk : java -Xmx64m -jar signapk.jar -w testkey.x509.pem testkey.pk8 SystemUI.apk ../signed/SystemUI.apk
-16- push the new SystemUI.apk to your phone

Code:
adb push ~/works/signed/SystemUI.apk /system/app/SystemUI.apk
adb reboot
-17- Enjoy

screenshot with completely translucent status bar




Readme
Raigel said : "Seems like this mod works with GO Launcher EX only if you select "High quality drawing" from settings."

KyleForge said : "I've finally managed to get it to work. Seems it was a problem with signing the SystemUI. What I did was do the modification, build the apk with apktools then copy all the files except the AndroidManifest.xml to the original SystemUI.apk, pushed it, rebooted and viola!"

0 comments:

Post a Comment

Open Panel

Blogroll

counter