[MOD][COMPLETE GUIDE][NOOB-FRIENDLY] CM10 Transparent Statusbar and other mod

Status
Not open for further replies.

Diaz1999

Senior Member
Oct 13, 2012
691
581
0
HEX 5375726162617961
Hi All... This is my first theming guide
This guide is for set Transparent Statusbar, Transparent Notification Drawer and Change Clock Colour
NOTE ONLY FOR CM10
Having a problem? You can ask me in this thread :good:

Things you will need
  • PC or Laptop
  • apktool, zipalign and others
  • WinRAR or WinZip
  • Notepad++
  • Patience!
So, lets begin..

INSTALLING APKTOOL AND OTHER TOOLS

STEP 1
You must install apktool to your PC from HERE and other tools HERE
Extract it to a same directory same as the screenshot below
Then, copy cmd from Windows/System32 Directory (ex. C:\Windows\System32) and move it your apktool directory​

STEP 2
Download zipalign from HERE, move it to Windows Directory (ex. C:\Windows)​
 

Attachments

Last edited:

Diaz1999

Senior Member
Oct 13, 2012
691
581
0
HEX 5375726162617961
GUIDE FOR TRANSPARENT NOTIFICATION DRAWER


STEP 1
Copy your framework-res.apk from system/framework and SystemUI.apk from /system/app/ then place it in your apktool directory​

STEP 2
Open cmd in your apktool directory, type
Code:
apktool if framework-res.apk
and
Code:
apktool if SystemUI.apk
then
Code:
apktool d SystemUI.apk

STEP 3
Go to SystemUI\smali\com\android\system ui\statusbar\phone
Open PhoneStatusBar$FastColorDrawable.smali with Notepad++
Go to this and edit
Code:
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
    .locals 2
    .parameter "canvas"

    .prologue
    .line 2856
    [COLOR="Red"]iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$FastColorDrawable;->mColor:I[/COLOR]

    sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V

    .line 2857
    return-void
.end method
to this
Code:
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
    .locals 2
    .parameter "canvas"

    .prologue
    .line 2856
    [COLOR="Red"]const v0, (your transparency values; look at [URL="http://forum.xda-developers.com/showpost.php?p=40251761&postcount=4"]post #4[/URL])[/COLOR]

    sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V

    .line 2857
    return-void
.end method
and save​

STEP 4
Open cmd in your apktool directory, type
Code:
apktool b SystemUI al.apk
then open al.apk and SystemUI.apk with WinRAR, drag META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk same as the screenshot below, when it ask to compress click OK​

STEP 5
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk SystemUImod.apk

STEP 6
Move your SystemUImod.apk to your phone, rename to SystemUI.apk, move it to /system/app/ and change permission to rw-r--r--
Then reboot​
 

Attachments

Last edited:

Diaz1999

Senior Member
Oct 13, 2012
691
581
0
HEX 5375726162617961
GUIDE FOR STATUSBAR COLOR W/ TRANSPARENCY


STEP 1
Copy your android.policy.jar from /system/framework/ and place it in your apktool directory
Download phonewindowmanager.zip in the attachment below and extract it to your apktool directory​

STEP 2
Open cmd in your apktool directory, type
Code:
apktool d android.policy.jar

STEP 3
Go to android.policy.jar.out\smali\com\android\internal\policy\impl
Replace your PhoneWindowManager.smali with my PhoneWindowManager.smali​

STEP 4
Open cmd in your apktool directory, type
Code:
apktool b android.policy.jar.out
Go to android.policy.jar.out\dist, move android.policy.jar to your phone, move to /system/framework/ and set permission rw-r--r--
Then reboot​

STEP 5
Download xposed framework here, install, open it and tap install/update, then reboot
Download tweakbox here, install, Open xposed installer, tap on modules and enable tweakbox, then reboot
Open tweakbox, tap on statusbar, enable background color and change color/transparency whatever you want
Then reboot​
 

Attachments

Last edited:

Diaz1999

Senior Member
Oct 13, 2012
691
581
0
HEX 5375726162617961
TRANSPARENCY VALUES

  • 0x00000000 (100%)
  • 0x88000000 (75%)
  • 0x7f000000 (50%)
  • 0xd8000000 (25%)
  • 0xee000000 (15%)
OFF TOPIC

CREDITS TO
powerpoint45 for his compiling guide HERE
reaper61616 for his transparent notification drawer guide HERE
Adi_ai****eru for his android.policy.jar transparent statusbar guide HERE
galaxynote2 for his transparent statusbar guide HERE
 
Last edited:

Dilesh Perera

Senior Member
May 26, 2012
1,794
941
143
Colombo
hey friend thanks a lot for the post. today i have learned lot and managed to get my status bar with transparent.

but TRANSPARENT NOTIFICATION DRAWER didnt work from this part

apktool b SystemUI al.apk.

i couldnt find SystemUI al.apk. also pls tell when we change the value to const v0, (your transparency values; look at post #4) will it looks like
this if i want 100% transparent?

const v0, 0x00000000

and how to make status bar 100% transparent? which value should we change?
keep up the good work :)
 
Last edited:

Diaz1999

Senior Member
Oct 13, 2012
691
581
0
HEX 5375726162617961
hey friend thanks a lot for the post. today i have learned lot and managed to get my status bar with transparent.

but TRANSPARENT NOTIFICATION DRAWER didnt work from this part

apktool b SystemUI al.apk.

i couldnt find SystemUI al.apk. also pls tell when we change the value to const v0, (your transparency values; look at post #4) will it looks like
this if i want 100% transparent?

const v0, 0x00000000

and how to make status bar 100% transparent? which value should we change?
keep up the good work :)
After you type
Code:
apktool b SystemUI al.apk
There's al.apk (not SystemUI al.apk) and the original SystemUI.apk
Open original SystemUI.apk with WinRAR, click META-INF folder and AndroidManifest.xml inside original SystemUI.apk, copy META-INF folder and AndroidManifest.xml, and open al.apk using WinRAR, paste it, when ask to compress click yes/OK

Yes, if you want 100% transparency it will look like this
Code:
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
    .locals 2
    .parameter "canvas"

    .prologue
    .line 2856
    [COLOR="Red"]const v0, 0x00000000[/COLOR]

    sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V

    .line 2857
    return-void
.end method
via XDA for Timescape™
 
Last edited:

Dilesh Perera

Senior Member
May 26, 2012
1,794
941
143
Colombo
After you type
Code:
apktool b SystemUI al.apk
There's al.apk (not SystemUI al.apk) and the original SystemUI.apk
Open original SystemUI.apk with WinRAR, click META-INF folder and AndroidManifest.xml inside original SystemUI.apk, copy META-INF folder and AndroidManifest.xml, and open al.apk using WinRAR, paste it, when ask to compress click yes/OK

Yes, if you want 100% transparency it will look like this
Code:
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
    .locals 2
    .parameter "canvas"

    .prologue
    .line 2856
    [COLOR="Red"]const v0, 0x00000000[/COLOR]

    sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V

    .line 2857
    return-void
.end method
via XDA for Timescape™
thanks. but seems i can do De compile without any issue. but re compile not works. see the atachment

any idea whats wrong ??
 

Attachments

Last edited:

Diaz1999

Senior Member
Oct 13, 2012
691
581
0
HEX 5375726162617961
thanks. but seems i can do De compile without any issue. but re compile not works. see the atachment

any idea whats wrong ??
That's because apktool.yml not exist in your SystemUI decompiled folder
Try to decompiled SystemUI.apk again and find the apktool.yml in the decompiled folder
Look at the attachment
 

Attachments

  • Like
Reactions: Dilesh Perera

Dilesh Perera

Senior Member
May 26, 2012
1,794
941
143
Colombo
That's because apktool.yml not exist in your SystemUI decompiled folder
Try to decompiled SystemUI.apk again and find the apktool.yml in the decompiled folder
Look at the attachment
i tried many apks. but i never gets apktool.yml. have read many in xda. decompile not getting correctly it seems. i dont know how to fix it.
i followed all ur steps. :(
 
Status
Not open for further replies.