[HOW-TO][MOD][JB] Transparent Statusbar & NavBar [upd:10.05.2013]

Search This thread

whalesplaho

Senior Member
Feb 1, 2012
10,694
2,670
Treasure Island
No, it is included in the framework. Therefore, if before that it was not, and never will.

I made all the changes and compiled.

Holy cow!!! exhausted my thanks.. i owe yhu brov!!!

thanks... i try to enable it from framework-res.apk but after decompiling, modding den recompiled, i flash but got stuck on a blank screen after bootamination!!!! am uisng Xperia P JB 4.1.2!!!

thanks once again brov.
 

olahoma

Member
Jan 24, 2011
46
38
HCM
Samsung Galaxy S21 Ultra
No, it is included in the framework. Therefore, if before that it was not, and never will.

Can not download. On the other file storage, please.

Wait, now let me do.

I made all the changes and compiled.

I reuploaded System UI of Xperia TX. Please make transparent status bar (50 or 70%) and nav bar on my phone :good:
Thanks Spaun_Studio. Best wishes for you! :victory:

http://www.mediafire.com/?c22za8wp86da8qo
 
Last edited:

whalesplaho

Senior Member
Feb 1, 2012
10,694
2,670
Treasure Island
OP please can yhu give transparent codes please like say 10%,20%,30%...,100% transparent??? please.............

& need help on enabling nav bar.
 

Spaun_Studio

Senior Member
Nov 21, 2011
70
585
OP please can yhu give transparent codes please like say 10%,20%,30%...,100% transparent??? please.............
& need help on enabling nav bar.
1. Transparent
2. In framework-res\res\values\bools.xml string show nav bar. On stock "false", renamed to "true". OR open your build.prop and add lane "qemu.hw.mainkeys=0"

olahoma

I can not decompile your status bar, sorry

ikarus_0209
Your status bar has been changed? Try it, I made a 100% transparency. But smali code has been modified to SystemUI.apk. And who then modified the wrong picture, so I can not compile. No need to replace the use Winrar *.9.png
Download decomp. folder

Manual is written for developers ... Ask those who have changed the stock status bar to do it on my instructions:angel:
 

Attachments

  • ikarus_0209.zip
    2.6 MB · Views: 93

whalesplaho

Senior Member
Feb 1, 2012
10,694
2,670
Treasure Island
1. Transparent
2. In framework-res\res\values\bools.xml string show nav bar. On stock "false", renamed to "true". OR open your build.prop and add lane "qemu.hw.mainkeys=0"

olahoma

I can not decompile your status bar, sorry

ikarus_0209
Your status bar has been changed? Try it, I made a 100% transparency. But smali code has been modified to SystemUI.apk. And who then modified the wrong picture, so I can not compile. No need to replace the use Winrar *.9.png
Download decomp. folder

Manual is written for developers ... Ask those who have changed the stock status bar to do it on my instructions:angel:

i try tha build.prop method on ICS but tha nav bars re too big for my screen....... i dont really understand tha calculation!!!

2,55 х (100-20%)=204

20/100= 0.2
100-0.2= 99.8
2.55x99.8= 254.49

Thanks brov...
 

Drockk_Xm

Senior Member
Feb 21, 2012
497
308
Dhaka
1. Transparent
2. In framework-res\res\values\bools.xml string show nav bar. On stock "false", renamed to "true". OR open your build.prop and add lane "qemu.hw.mainkeys=0"

olahoma

I can not decompile your status bar, sorry

ikarus_0209
Your status bar has been changed? Try it, I made a 100% transparency. But smali code has been modified to SystemUI.apk. And who then modified the wrong picture, so I can not compile. No need to replace the use Winrar *.9.png
Download decomp. folder

Manual is written for developers ... Ask those who have changed the stock status bar to do it on my instructions:angel:

im using this mod on my Tx but very buggy :crying:
sometime working,sometime black & sometime buggy :(
I hope OP will help me
my TX file http://www.mediafire.com/?m3dpo26f28azvd2


screenshot2013050512341.png
 
Last edited:

AnubisNefer

Senior Member
May 2, 2012
246
71
Is it possible to do this with full transparency for a stock. 434 odexed rom?

- Can I upload some files and would you be so kind to do this for me?
- Or is it possible to make a flashable zip for flashing in recovery?
 

ikarus_0209

Senior Member
Sep 18, 2011
69
14
Thua Thien hue
1. Transparent
2. In framework-res\res\values\bools.xml string show nav bar. On stock "false", renamed to "true". OR open your build.prop and add lane "qemu.hw.mainkeys=0"

olahoma

I can not decompile your status bar, sorry

ikarus_0209
Your status bar has been changed? Try it, I made a 100% transparency. But smali code has been modified to SystemUI.apk. And who then modified the wrong picture, so I can not compile. No need to replace the use Winrar *.9.png
Download decomp. folder

Manual is written for developers ... Ask those who have changed the stock status bar to do it on my instructions:angel:
yes, my status bar has been changed, i've use DoCoMo status bar mod. i like the transparent status bar but i need more toggle than stock status bar.
Have you other way to make this modded status bar transparent?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 112
    So..My friends asked me to write a manual how to make a transparent virtual buttons and status bar on JB. Ready? :angel:

    Screenshots from my Sola JB :)eek:):
    attachment.php
    attachment.php

    1. Decompile android.policy.jar and open android.policy\smali\com\android\internal\policy\impl\PhoneWindowManager.smali

    Blue- and to find through search
    Red - Remove
    Green- Add
    Code:
     .line 2552
        iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemTop:I
    
        iput v0, p1, Landroid/graphics/Rect;->[color="blue"]top:I[/color]
    
        .line 2553
        iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemRight:I
    
        iput v0, p1, Landroid/graphics/Rect;->[color="blue"]right:I[/color]
    
       .line 2554
        iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I
    
        iput v0, p1, Landroid/graphics/Rect;->[color="blue"]bottom:I[/color]
    
        [color="red"] .line 2555
        iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
    
        if-eqz v0, :cond_0
    
        iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
    
        invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
    
        move-result v0
    
        .line 2557
        :goto_0
        return v0
    
        .line 2556
        :cond_0
        iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
    
        if-eqz v0, :cond_1
    
        iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
    
        invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
    
        move-result v0
    
        goto :goto_0
    
        .line 2557
        :cond_1
        const/4 v0, 0x0
    
        goto :goto_0[/color]
        [COLOR="SeaGreen"][B]const/4 v0, 0x0
    
        return v0[/B][/COLOR]
    .end method
    Compile android.policy.jar

    2. Decompile SystemUI.apk and...
    Open \SystemUI\res\values\drawables.xml
    Code:
    <item type="drawable" name="status_bar_background">#[B]5a[/B]000000</item>
    5A - Transparency.

    Open \SystemUI\res\layout\navigation_bar.xml and correct the same
    Code:
    <item type="drawable" name="status_bar_background">#[B]5a[/B]000000</item>

    3. Open SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali and find "IIIII", near the code should be.
    Green- Add, Red- Remove:
    Code:
    const/16 v3, 0x7e3
    
     const v4, 0x4800068
    
    [B][COLOR="Green"] const/4 v5, -0x3[/COLOR][/B]
    
     move v2, v1
    
    [COLOR="Red"] move v5, v1[/COLOR]
    
     invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>([COLOR="Blue"]IIIII[/COLOR])V

    Find "showNav" (second result in Notepad++) or "mPixelFormat:I", this code. Green- Add:
    Code:
    .line 417
     .end local v3 #[COLOR="Blue"]showNav[/COLOR]:Z
     :cond_1
     :goto_2
    [COLOR="Green"] const/4 v5, -0x3[/COLOR] [B][I](or [COLOR="Green"]const/4 v9, -0x3[/COLOR] for Z)[/I][/B]
    
     iput v13, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->[COLOR="Blue"]mPixelFormat:I[/COLOR]
    Compile SystemUI.apk.

    upd: 10.05.2013

    For the transparency of the open status bar (where the switches and notification)
    Step 1:
    Open PhoneStatusBar.smali (from SystemUI.apk) and find "PhoneStatusBar$FastColorDrawable". Immediately after that string is different, with "setBackground". Remove it. This line can appear twice.


    Step 2:
    We will adjust the transparency in the folder SystemUI\res\layout.Open-head status bar- status_bar_expanded_header.xml
    Code:
    android:background="@drawable/notification_header_bg"
    change to
    Code:
    android:background="#[B]5A[/B]000000"
    It is found in the file twice. Do everywhere.

    The file status_bar_expanded.xml do by analogy, replace the reference to the background image on the color code. In this file, the background transparency notifications.


    Bugs:​
    - Transparency navibar only on the desktop \ status bar everywhere
    - Works on stock launcher \ Apex, but the others were not checked​
    Do not say thanks, press thanks:angel:
    23
    Download and Test
    Backup and install via Recovery​

    knnam, Xperia V LT25i_4.1.2_9.1.A.1.140 (Deodex)

    Do not say thanks, press thanks:angel:
    7
    What value would you use to achieve around 10-20% transparency?

    Use this:
    attachment.php


    2,55 х (100-20%)=204
    Find 204 in image= CC
    This 20% transparency:angel:
    6
    How make it completly transparent?
    5A=>00

    Can you just post modded android.policy.jar and systemui.apk? I'm having troubles with decompiling :(

    I'm not sure that these files from my smartphone you fit. (Sola)
    But ...
    Archive for CWM. Do not forget to backup! :)
    3
    (LT30P) Xperia T

    (LT30P) Xperia T & XperimenT 2.5 Rom

    For the beginning I tried to do it myself and this is Result.


    2%20(1).png


    2%20(2).png


    2%20(3).png



    :laugh: Amazing

    1.Download this >> http://xdaforums.com/showpost.php?p=41027597&postcount=22 and install via Recovery.

    2.Enjoy

    :fingers-crossed: I wish you luck.

    Thank you for all