[Galaxy Note GT-N7000 Themes and Apps] tkari4:
TW 4.1.2 Transparent status bar fix for the Lock screen

How to do a perfect transparent status bar on the Lock Screen.

Part 1

http://xdaforums.com/showthread.php?t=2384892

Perform the First modification from xperiacle.

For me with 0x10900 status bar was black, so used 0x100900 instead.

Part 2

Credits to Spaun_Studio

Backsmali android.policy.jar, then open com\android\internal\policy\impl\PhoneWindowManager.smali

find: .method goHome()Z

Delete red lines.

Add blue lines.

.line 4517
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemRight:I

iput v0, p1, Landroid/graphics/Rect;->right:I

.line 4518
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I

iput v0, p1, Landroid/graphics/Rect;->bottom:I

.line 4519
[COLOR="Red"] iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;

if-eqz v0, :cond_1b

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 4521
:goto_1a
return v0

.line 4520
:cond_1b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;

if-eqz v0, :cond_26

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_1a

.line 4521
:cond_26
const/4 v0, 0x0

goto :goto_1a[/COLOR]

[COLOR="Blue"] const/4 v0, 0x0

return v0[/COLOR]
.end method

[COLOR="Magenta"].method goHome()Z[/COLOR]
.registers 16

Smali the java classes.

Part 3

In Step 1 and Step 2 the reserved space was removed for the Status bar from the Lock Screen.

So, margin is recommended for some Lock Screen content.

Decompile framework-res.apk.

Open res\layout\keyguard_screen_password_landscape.xml

Add this to second line: android:layout_marginTop="27.0dip"

<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:orientation="vertical" android:id="@id/root" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="fill_parent" [COLOR="blue"]android:layout_marginTop="27.0dip"[/COLOR] android:rowCount="8" android:rowOrderPreserved="false"
xmlns:android="http://schemas.android.com/apk/res/android">

Save and close.

Open res\layout\keyguard_screen_password_portrait.xml

Add this to second line: android:layout_marginTop="27.0dip"

<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" [COLOR="Blue"]android:layout_marginTop="27.0dip"[/COLOR]
xmlns:android="http://schemas.android.com/apk/res/android">

Save and close.

Open res\layout\keyguard_screen_password_portrait_dual_sim.xml

Add this to second line: android:layout_marginTop="27.0dip"

<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" [COLOR="Blue"]android:layout_marginTop="27.0dip"[/COLOR]
xmlns:android="http://schemas.android.com/apk/res/android">

Save and close.

Open res\layout\keyguard_screen_unlock_landscape.xml

Add this to second line: android:layout_marginTop="27.0dip"

<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:orientation="vertical" android:id="@id/root" android:layout_width="fill_parent" android:layout_height="fill_parent" [COLOR="Blue"]android:layout_marginTop="27.0dip"[/COLOR] android:rowCount="7"
xmlns:android="http://schemas.android.com/apk/res/android">

Save and close.

Build the framework-res.apk.

Part 4

Decompile SystemUI.apk.

The first modification it's the start color change for the status bar.

The second modification can be performed with Xposed modules.

Open res\layout\tw_super_status_bar.xml

Change black ff000000 to transparent 00000000 in the second line.

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.StatusBarWindowView android:background="#[COLOR="blue"]00000000[/COLOR]" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"

Save and close.

Open res\values\drawables.xml

Change black ff000000 to transparent 00000000 in the second line.

<item type="drawable" name="status_bar_background">#[COLOR="Blue"]00000000[/COLOR]</item>

Save and close.

Build the SystemUI.apk.

Try them out. ;)