[Miscellaneous Android Development] Mohitash:
Hi Samsung Galaxy S Duos GT-S7562 users :)

Many of you asked me questions/helps for regarding transparency in our device.

So, i decided to make a help thread for everyone for GT-S7562 ;) [This is what i did to make transparency in my GT-S7562 :)]

This guide will tell you to how to enable transparency and modding transparency levels in your device.

You will need:

1. 7zip

2. Notepad++

3. ApkToolv3 Donwload here (Not any other ApkTool) [For this ApkTool, Credit goes to Kryten2k35]

Now the steps

:

1. Extract apktoolv3

2 There will be a 'READ_ME.txt file, with the help of this decompile your SystemUI.apk

3. Now open WORKING folder and go to- SystemUI\smali\com\android\systemui\statusbar

4. Open StatusBar.smali with notepad++ and search for this:

Landroid/view/WindowManager$LayoutParams;->(IIIII)V

Go to the line above it and change the last value to -0x3

Save it and close

This will enable the transparency for StatusBar

Now for StatusBar Expanded/Notification Background

1. Go to- SystemUI\smali\com\android\systemui\statusbar\phone

2. Open PhoneStatusBar.smali with notepad++ and search for this:

const v4, 0x4800068

replace the 2 lines underneath with this:

const/4 v5, -0x3

move v2, v1

Now search for this:

Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPixelFormat:I

Go to the line above it and change the last value to -0x3

Save it and close.

This will enable transparency in your device ;)

Now for making transparency

1. In WORKING folder go to- SystemUI\res\values

2. Open drawables.xml using notepad++ and in this line:

<item type="drawable" name="status_bar_background">#[COLOR="Red"]xxxxxxxx[/COLOR]</item>

where 'xxxxxxxx' is some value.

Change xxxxxxxx to as per your need of transparency level:

00000000 - 100% transparency

3F000000 - 75% transparency

7F000000 - 50% transparency

BF000000 - 25% transparency

FF000000 - 0% transparent (No transparency)

Save it and close

3. And do the same with:

(a) SystemUI\res\values-sw600dp\drawables.xml

<item type="drawable" name="status_bar_background">#[COLOR="red"]xxxxxxxx[/COLOR]</item>

Save it and close

(b) SystemUI\res\values-sw800dp\drawables.xml

<item type="drawable" name="status_bar_background">#[COLOR="red"]xxxxxxxx[/COLOR]</item>

Save it and close

This will make your StatusBar transparent as per your values.

Now for making StatusBar Expanded/Notification Background transparent.

1. In WORKING folder go to- SystemUI\res\values

2 Open drawables.xml using notepad++ and in this line:

<item type="drawable" name="notification_tracking_bg">#[COLOR="red"]xxxxxxxx[/COLOR]</item>

Change xxxxxxxx to as per your need of transparency level.

Save it and close

3. And do the same with:

(a) SystemUI\res\layout\tw_status_bar_tracking.xml

<FrameLayout android:background="#[COLOR="red"]xxxxxxxx[/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />

Save it and close

(b) SystemUI\res\layout\tw_status_bar_tracking_dual.xml

<LinearLayout android:gravity="bottom" android:orientation="vertical" android:background="#[COLOR="red"]xxxxxxxx[/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />

Save it and close.

This will make your StatusBar Expanded/Notification Background transparent as per your values.

Now recompile and sign SystemUI.apk with the help of that READ_ME.txt file. :)

--------------------------------------------------------------------------------------------------------------------------------------------

Enjoy! :good: ;)

And Dont Forget To Press Thanks :good: Button :D ;)

IF YOU LIKE MY WORK, PLEASE CONSIDER ANY DONATION FOR CONTINUE DEVELOPMENT

;)