Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,310 Members 45,501 Now Online
XDA Developers Android and Mobile Development Forum

[TUT]MTK 65xx Theming Guide

Tip us?
 
Dhogaivannan
Old
(Last edited by Dhogaivannan; 19th March 2014 at 05:20 PM.)
#1  
Dhogaivannan's Avatar
Senior Member - OP
Thanks Meter 305
Posts: 247
Join Date: Mar 2013
Location: Erode

 
DONATE TO ME
Arrow [TUT]MTK 65xx Theming Guide




This Guide can be Preferred by MTK6589

Tools Needed:
Notepad++
Decompiling and Recompiling Tool
Brain Please
A MTK65xx Device


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


Quote:
Transparent StatusBar

Steps:

1)De-compile your android.policy.jar from /framework (For .jar decompile and recompile)(Click here

2)Open this .smali from \com\android\internal\policy\impl\PhoneWindowManag er.smali

Find These Lines:

Code:
.method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
Delete The Red Code

Replace With Code Below
Code:
.method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
    .registers 3
    .parameter "systemRect"

    .prologue
    .line 3057
    iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemLeft:I

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

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

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

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

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

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

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

    .line 3061
    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 3063
    :goto_1a
    return v0

    .line 3062
    :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 3063
    :cond_26
    const/4 v0, 0x0

    goto :goto_1a
.end method
Replace With:

Code:
const/4 v0, 0x0

     return v0
.end method
Then,Recompile

Next,Go to SystemUI /res/values/drawables.xml

Code:
Code:
<item type="drawable" name="notification_number_text_color">#ff000000</item>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<item type="drawable" name="status_bar_background">#00000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="intruder_bg_pressed">#ff33b5e5</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="system_bar_background">#88000000</item>
<item type="drawable" name="notification_icon_area_smoke">#88000000</item>
100% Tranapency

Code:
#00000000
Translucent

Code:
#88000000
Recompile

Credits:-@Adi Aisiteru Reborn
- Senior Member @evilisto
- Recognized themer @rodman01
- @mulbyungjahri
- @bond1987
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Having Your Banner In Settings

1)Decompile your Settings.apk From /system/app/

2)Download The SettingsSource.zip From Here

3) Extract contents of SettingsSource.zip to respective folders in Settings.apk

4)Open /res/xml/device_info_settings.xml From Decompiled Settings.apk

5) From The Top,Locate This Tag. l <Preference android:title.

Add These Code
Code:
<PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah" android:title="" />
Add The Blue Code

In:
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah" android:title="" />
    <Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
Save The File.

Now Go To /Res/Drawable-XHDPI(If your Device is xhdpi(OR)Locate your device dpi0
Now,Paste The File Whichever you want (Make sure the files is in *.png Format)

For Changing The Resolution Of The Pic:
Go to /res/layout/areebisawesome.xml

Delete The RED code,And Add Your Pic Size There

Code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<ImageView android:layout_gravity="center" android:paddingBottom="6.0dip" android:layout_width="320.0px" android:layout_height="200.0px" android:src="@drawable/cosmic" android:scaleType="fitXY"
  xmlns:android="http://schemas.android.com/apk/res/android" />
Credits:@iamareebjamal

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Changing The Icons OF The Battery,Signal,Statusbar Expanded Etc

Change Icons Of The Battery

1)De-Compile your SystemUI.apk from /system/app

2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)

3)Search For stat_sys_battery_x.png with your Own

4)Search For stat_sys_battery_charge_animxx.png For Battery Animation with Your Own

5)Replace and Recompile

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

For Changing Battery Symbol in StatusBar Expanded

1)De-Compile your SystemUI.apk from /system/app

2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)

3)Search For ic_qs_battery_xx.png with your own

4)Search for ic_qs_battery_charge_xx.png for Battery Charging Animation

---------------------------------------------------------------------------------------
Changing Signal In Signal Icon(If You Have Dual-Sim Device)

1)De-Compile your SystemUI.apk from /system/app

2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)

3) Search For stat_sys_gemini_signal_1_xxxx.png(With Your Color) And Replace With Your Own

--------------------------------------------------------------------------------------
Changing Wi-Fi Icon

1)De-Compile your SystemUI.apk from /system/app

2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)

3) Search For stat_sys_wifi_signal_x_fully.png and replace with Your Own

4)For Wi-fi Without Transfer File Icon, stat_sys_wifi_signal_x.png and replace with your own

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

For Changing Icons In Status Bar Expanded

1)De-Compile your SystemUI.apk from /system/app

2)From /res/drawable-xhdpi(change xxxdpi Acoording To Your Device)

For Flight Mode/Aeroplane Mode:

3) Search for ic_qs_flight_mode_on.png and ic_qs_flight_mode_off.png and Replace with Your Own

For Data Connection:

3) Search for ic_qs_mobile_enable.png and ic_qs_mobile_disable.png and replace with your own

For Bluetooth:

3)Search For ic_qs_bluetooth_enable.png.ic_qs_bluetooth_disable .png and ic_qs_bluetooth_off.png and replace with your own

For Gps/Location:

3)Search for ic_qs_gps_enable.png and ic_qs_gps_disable.png and replace with your own

For Wi-Fi:

3)Search for ic_qs_wifi_enable.png and ic_qs_wifi_disable.png and replace with your own

4)For animation: Search For ic_qs_wifi_full_x.png and replace with your own

5)For No Data Animation: Search for ic_qs_wifi_x.png and replace with your own

(If It Doesnt Work,ic_qs_stat_sys_wifi_switch_animx,png. Delete these .png)

For Brightness:

3) Search For ic_qs_brightness_auto_on and ic_qs_brightness_auto_off and Replace With Your Own

For Auto-Rotation/Orientation

3) Search For ic_qs_auto_rotation_enable and ic_qs_auto_rotation_disable and replace with your own

For Timeout:

3) Search For ic_qs_timeout_disable,ic_qs_timeout_off and ic_qs_timeout_on and replace with your own

For Default User:

3) Search For ic_qs_default_user.png and replace with your own

For User Profiles

3) Search For ic_qs_general_on/off,ic_qs_meeting_on/off,ic_qs_outdoor_on/off and ic_qs_mute_on/off and Replace with your own


HAPPY THEMING


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

More Guides Coming SOON
If You Want Cool Signature,Click On My Signature

If you like my work please consider buying me a beer PayPal
[B]


WD Signature
 
My Mini-Guides & Works:
The Following 10 Users Say Thank You to Dhogaivannan For This Useful Post: [ Click to Expand ]
 
RTz_GauRaV
Old
(Last edited by RTz_GauRaV; 20th March 2014 at 05:37 AM.)
#2  
Senior Member
Thanks Meter 25
Posts: 104
Join Date: May 2013
Location: Udaipur
Great guide!!!
 
Darklord96
Old
#3  
Darklord96's Avatar
Senior Member
Thanks Meter 676
Posts: 423
Join Date: Feb 2014
Location: Chandigarh
Excellent guide for noobs like me
lol
Keep it up bro

 
Dhogaivannan
Old
#4  
Dhogaivannan's Avatar
Senior Member - OP
Thanks Meter 305
Posts: 247
Join Date: Mar 2013
Location: Erode

 
DONATE TO ME
Press "Thanks" Button you like it

Sent from my Micromax A116 using xda app-developers app
If You Want Cool Signature,Click On My Signature

If you like my work please consider buying me a beer PayPal
[B]


WD Signature
 
My Mini-Guides & Works:
The Following 2 Users Say Thank You to Dhogaivannan For This Useful Post: [ Click to Expand ]
 
Sharique244777
Old
#5  
Senior Member
Thanks Meter 55
Posts: 110
Join Date: Dec 2013
Location: Chhatarpur
Default Help needed Bro !!

What code i can use for 25 % and 75 %
plz give me the codes !!!
Hit The Thanks button For my little Contribution !!
 
blesal
Old
#6  
blesal's Avatar
Member
Thanks Meter 0
Posts: 30
Join Date: Oct 2011
Location: Madrid
Thanks for the guidance of the transparent status bar, served me very helpful in my mtk6589, just a question of how it should do so in the lockscreen status bar to 25% transparency appears not 100%? THX...
If you like House music, visit my blog:
http://blesalweb.blogspot.com
 
joehanh88
Old
#7  
joehanh88's Avatar
Recognized Themer
Thanks Meter 1406
Posts: 699
Join Date: Jan 2013
Location: Kuala Lumpur

 
DONATE TO ME
thanks for the guide. really useful. will try it when i got some time to spend.
:thumbsup:
The Following User Says Thank You to joehanh88 For This Useful Post: [ Click to Expand ]
 
Dhogaivannan
Old
#8  
Dhogaivannan's Avatar
Senior Member - OP
Thanks Meter 305
Posts: 247
Join Date: Mar 2013
Location: Erode

 
DONATE TO ME
@besal22 @Sharique244777

Code:

Code:
80% Transparency
#88000000
If You Want Cool Signature,Click On My Signature

If you like my work please consider buying me a beer PayPal
[B]


WD Signature
 
My Mini-Guides & Works:
 
Sharique244777
Old
#9  
Senior Member
Thanks Meter 55
Posts: 110
Join Date: Dec 2013
Location: Chhatarpur
Quote:
Originally Posted by Dhogaivannan View Post
@besal22 @Sharique244777

Code:

Code:
80% Transparency
#88000000
ok thnx !where is my signature ?
Hit The Thanks button For my little Contribution !!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Run, Jump, and Shoot in Tales of Ciaxia

There are certain types of games that have become paramount of the portable gaming world. As we have … more

Samsung Gear Live Stock Firmware Image Pulled, Temp Root

Just yesterday,XDA Recognized Developer and TV ProducerAdamOutlertore apart … more

Draw a Line and Let Your Device Do the Rest with LineitApp

Over the years, since evenbefore Android entered the scene, we have striven to … more

[APK] Chrome Beta 37 Brings First Traces of Material Design

With Android L on the horizon, it’s no surprise that Google’s … more