[GUIDE] Modifying Statusbar Clock, Expanded Date, and Many More ! [OPTIMA-TEAM] - Optimus L3, L5, L7 Themes and Apps

So, here we go...
Hi all !
So, I'm doing a small mod, the mod is changing statusbar clock color. If you're intrested how to apply this mod, here's the guide.
Note : The guide doesn't apply to custom ROM user that have customizable statusbar clock color (it's useless :silly: )
Let's start !
Preparations & Requirements :
1. APKTool
2. A mod-able SystemUI (not odexed)
3. Working brain and eyes
The Guide :
1. Decompile the SystemUI
2. Navigate to /res/values/
3. Open styles.xml with your desired text editor
4. Search for this value :
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/status_bar_clock_color</item>
</style>
5. Edit the red value :
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">[COLOR="Red"]@color/status_bar_clock_color[/COLOR]</item>
</style>
6. You can change it into any color, freely. The format of the color must be Hex. Example :
Code:
#ffffffff : White
#000000 : Black
#00ff00 : Green
7. The value would look like this (I pick white color for example) :
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
8. Recompile, and Enjoy theming !
Tip : Search Google for Hex Color Picker, so you can easily find the hex value of your desired color.

How to change DateView and ClockView colors
Another guide, how to change expanded DateView and ClockView colors.
Preparations & Requirements is same like post above
The guide :
1. Decompile SystemUI
2. Navigate to /res/values/
3. Open styles.xml with your desired text editor
4. Find these two values :
Code:
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:textAllCaps">true</item>
</style>
5. Edit the red value :
Code:
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
[COLOR="Red"]<item name="android:textColor">#ffffffff</item>[/COLOR]
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
[COLOR="Red"]<item name="android:textColor">#ffcccccc</item>[/COLOR]
<item name="android:textAllCaps">true</item>
</style>
6. You can edit the color freely !
7. Recompile, and Enjoy !
Note : The Expanded.Clock is the clock that appears when you pulldown statusbar, while the Expanded.Date is the date beside Expanded.Clock

Changing Statusbar Clock Style
Another guide (eh, too much guide today ), this one how to change statusbar clock style (to bold, italic, condensed, etc)
Requirements are same like above guide.
The Guide :
1. Decompile SystemUI
2. Navigate to /res/values/
3. Edit styles.xml
4. Find this value :
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/status_bar_clock_color</item>
</style>
5. Edit the red value :
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
[COLOR="Red"] <item name="android:textStyle">normal</item>[/COLOR]
<item name="android:textColor">@color/status_bar_clock_color</item>
</style>
6. You can change it to :
Note : Bolded style requires KitKat ROM or later.
Code:
normal : Normal, regular style
bold : Bold style
italic : Italic style, may not work with ICS ROMs
[B]condensed : Condensed, like in KitKat launcher drawers[/B]
[B]light : Light, thinner than normal style[/B]
[B]thin : Thin, thinner than light[/B]
7. Recompile, and Enjoy Theming !

Decapitalizing DateView
Another one, if you may.
We know that, date view (Expanded.Date if you didn't understand) have capitalized text. I found it annoying, so I decided to edit it.
Requirements are same like guide above.
The Guide :
1. Decompile SystemUI.apk
2. Navigate to /res/values/
3. Edit styles.xml
4. Find this line :
Code:
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:textAllCaps">true</item>
</style>
5. Edit the red value :
Code:
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
[COLOR="Red"] <item name="android:textAllCaps">true</item>[/COLOR]
</style>
6. Change it to false
7. Recompile, and Enjoy !

Decapitalizing QuickTiles / QuickSettings
So, another one (might add more :silly: ). How to decapitalize QuickSettings / QuickTiles.
Requirements are same like above guide.
The Guide :
1. Decompile SystemUI.apk
2. Navigate to /res/values/
3. Edit styles.xml
4. Find this line :
Code:
<style name="TextAppearance.QuickSettings.TileView" parent="@style/TextAppearance.QuickSettings">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:textAllCaps">true</item>
<item name="android:paddingStart">6.0dip</item>
<item name="android:paddingEnd">6.0dip</item>
</style>
5. Edit the red line :
Code:
<style name="TextAppearance.QuickSettings.TileView" parent="@style/TextAppearance.QuickSettings">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
[COLOR="Red"] <item name="android:textAllCaps">true</item>[/COLOR]
<item name="android:paddingStart">6.0dip</item>
<item name="android:paddingEnd">6.0dip</item>
</style>
6. Change it to false
7. Recompile, and enjoy !

Woah!!! You should add one for transparency too! It would complete this super guide
Sent from my Moto G XT1033 using Tapatalk

skyinfo said:
Woah!!! You should add one for transparency too! It would complete this super guide
Sent from my Moto G XT1033 using Tapatalk
Click to expand...
Click to collapse
Thanks, will try to add it.

Transparent Statusbar [4.1 - 4.3.1 Only]
So, as based on request. I'll add how to make transparencies to statusbar.
Here we go !
The guide is based on Adi Aisiteru Reborn's guide. So thank him too !
The Guide :
1. Decompile android.policy.jar
2. Navigate to /com/android/internal/policy/impl
3. Edit PhoneWindowManager.smali
4. Find this line :
Code:
.method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
5. Replace the red line :
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
[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 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[/COLOR]
with this line :
Code:
const/4 v0, 0x0
return v0
.end method
6. Recompile android.policy.jar
7. Decompile SystemUI.apk
8. Navigate to /res/values/
9. Edit drawables.xml
10. Modify the red lines with your desired transparency value (value at bottom of this post) :
Code:
<item type="drawable" name="notification_number_text_color">#ff000000</item>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
[COLOR="Red"]<item type="drawable" name="status_bar_background">#00000000</item>[/COLOR]
<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>
[COLOR="Red"]<item type="drawable" name="system_bar_background">#88000000</item>
<item type="drawable" name="notification_icon_area_smoke">#88000000</item>[/COLOR]
Code:
Transparency values
#00000000 : 100% Transparent
#88000000 : 80% Transparent
#88000000 : 75% Transparent
#7f000000 : 50% Transparent
#d8000000 : 25 % Transparent
#ff000000 : Solid Black
11. Recompile and enjoy !

cool,another awesome mod with guide from our team,thanx.
TEAM OPTIMA STANDS FOR "CUSTOM"!!!!!!!STAY THEMED AND MODDED

-CALIBAN666- said:
cool,another awesome mod with guide from our team,thanx.
TEAM OPTIMA STANDS FOR "CUSTOM"!!!!!!!STAY THEMED AND MODDED
Click to expand...
Click to collapse
You're welcome !

amazing work dude! could you add some screenshots for the mods?

deleted

Thanks .
Sent from my LG-E610 using XDA Premium 4 mobile app

https://lh4.googleusercontent.com/-...n1B-0Usk/w239-h319-no/2014-05-02-18-18-17.jpg
Could you tell me how to fix this ?
I mean the slash sign, and this "break" where is the brightness slider.

Daniolki said:
https://lh4.googleusercontent.com/-...n1B-0Usk/w239-h319-no/2014-05-02-18-18-17.jpg
Could you tell me how to fix this ?
I mean the slash sign, and this "break" where is the brightness slider.
Click to expand...
Click to collapse
That's related to framework-res somehow.

great guide thanks for sharing!!!

Thanks!
Hey dude, thanks! :laugh:

can u show me how to add brightness slider and setting shortcut to status bar?. the rom is stock 2.3.6 - lg l3. thanks

F4uzan said:
So, as based on request. I'll add how to make transparencies to statusbar.
Here we go !
The guide is based on Adi Aisiteru Reborn's guide. So thank him too !
The Guide :
1. Decompile android.policy.jar
2. Navigate to /com/android/internal/policy/impl
3. Edit PhoneWindowManager.smali
4. Find this line :
Code:
.method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
5. Replace the red line :
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
[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 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[/COLOR]
with this line :
Code:
const/4 v0, 0x0
return v0
.end method
6. Recompile android.policy.jar
7. Decompile SystemUI.apk
8. Navigate to /res/values/
9. Edit drawables.xml
10. Modify the red lines with your desired transparency value (value at bottom of this post) :
Code:
<item type="drawable" name="notification_number_text_color">#ff000000</item>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
[COLOR="Red"]<item type="drawable" name="status_bar_background">#00000000</item>[/COLOR]
<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>
[COLOR="Red"]<item type="drawable" name="system_bar_background">#88000000</item>
<item type="drawable" name="notification_icon_area_smoke">#88000000</item>[/COLOR]
Code:
Transparency values
#00000000 : 100% Transparent
#88000000 : 80% Transparent
#88000000 : 75% Transparent
#7f000000 : 50% Transparent
#d8000000 : 25 % Transparent
#ff000000 : Solid Black
11. Recompile and enjoy !
Click to expand...
Click to collapse
Sorry, I know this thread is for L3-L7, but you write that works on JB 4.1, so please describe (if you know) what i must change to work with my L7 II P710. I decompile/change egzactly lines you describe/recompile, and result is-no transparency/any visual changes...
Sory for my english, and please help.

maxx_hr said:
Sorry, I know this thread is for L3-L7, but you write that works on JB 4.1, so please describe (if you know) what i must change to work with my L7 II P710. I decompile/change egzactly lines you describe/recompile, and result is-no transparency/any visual changes...
Sory for my english, and please help.
Click to expand...
Click to collapse
On stock it won't work. Somehow stock uses different value and pointer than AOSP.
I'll try to investigate this.

Related

[Discontinued] Complete Your KitKat look [Discontinued]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
We need
Apktool - apktool Guidehttp://forum.xda-developers.com/showpost.php?p=50181967&postcount=57
Download here: http://forum.xda-developers.com/showpost.php?p=50205159&postcount=90
or
GUI program​
Notepad++
Resources for all resolutions (PNGs & .9.PNGs)
View attachment resources_follow_KK_last.zip​
Fixed Text Fields Resources for all res (use if You have visual artifacts with )
View attachment fixed_textfield_resources_all_resolutions.zip
Fixed TAB Resources for mdpi (use if You have visual artifacts with )
View attachment fix_tab_mdpi.rar
Alternative resources for mdpi devices by @Diaz1999
http://forum.xda-developers.com/showpost.php?p=50830840&postcount=379
Thanks rush25 for support and kroz for his great work!
​
Click to expand...
Click to collapse
+ = Add or Replace
- = Remove or to be Replaced
1) Settings.apk
FIRST: ADD THE DRAWABLE-NODPI RESOURCE AND ALL OTHERS RESOURCES, ACCORDING TO YOUR RESOLUTION, INSIDE RESPECTIVE FOLDERS. CHECK ALSO OTHER FOLDERS (e.g. drawable-hdpi, drawable-xhpi TO SEE IF THERE ARE OTHER HOLO RESOURCES TO OVERWRITE!!!
\Settings\smali\com\android\settings\applications\LinearColorBar.smali
Search for (row 67 on Stock ROM)
Code:
.prologue
[B]-[/B] const v0, -0x[COLOR="red"][B]ff6634[/B][/COLOR]
Code:
.prologue
[B]+[/B] const v0, -0x[COLOR="SeaGreen"][B]333334[/B][/COLOR]
\Settings\smali\com\android\settings\applications\ManageApplications.smali
Code:
.line 914
.local v4, tabs:Landroid/support/v4/view/PagerTabStrip;
[B]-[/B] const v5, [COLOR="Red"][B]0x1060012[/B][/COLOR]
Code:
.line 914
.local v4, tabs:Landroid/support/v4/view/PagerTabStrip;
[B]+[/B] const v5, [B][COLOR="SeaGreen"]0x106000b[/COLOR][/B]
\Settings\smali\com\android\settings\applications\AppOpsSummary.smali
Code:
.line 107
.local v2, tabs:Landroid/support/v4/view/PagerTabStrip;
[B]-[/B] const v3, 0x[COLOR="Red"][B]1060012[/B][/COLOR]
Code:
.line 107
.local v2, tabs:Landroid/support/v4/view/PagerTabStrip;
[B]+[/B] const v3, 0x[COLOR="SeaGreen"][B]106000b[/B][/COLOR]
\Settings\res\drawable\data_usage_bar.xml
Code:
<item android:id="@*android:id/secondaryProgress">
<clip>
<shape>
[B]-[/B] <solid android:color="#[COLOR="Red"][B]c050ade5[/B][/COLOR]" />
Code:
<item android:id="@*android:id/secondaryProgress">
<clip>
<shape>
[B]+[/B] <solid android:color="#[COLOR="SeaGreen"][B]c0ffffff[/B][/COLOR]" />
Code:
<item android:id="@*android:id/progress">
<clip>
<shape>
[B]-[/B] <solid android:color="#[COLOR="Red"][B]c050ade5[/B][/COLOR]" />
Code:
<item android:id="@*android:id/progress">
<clip>
<shape>
[B]+[/B] <solid android:color="#[COLOR="SeaGreen"][B]c0ffffff[/B][/COLOR]" />
\Settings\res\layout\data_usage_chart.xml
Code:
[B]-[/B] <com.android.settings.widget.ChartGridView android:layout_gravity="start|bottom|center" android:id="@id/grid" android:layout_width="fill_parent" android:layout_height="fill_parent" settings:labelColor="@*android:color/[COLOR="Red"][B]holo_blue_light[/B][/COLOR]" settings:primaryDrawable="@drawable/data_grid_primary" settings:secondaryDrawable="@drawable/data_grid_secondary" settings:borderDrawable="@drawable/data_grid_border" />
[B]-[/B] <com.android.settings.widget.ChartNetworkSeriesView android:layout_gravity="start|bottom|center" android:id="@id/series" android:layout_width="fill_parent" android:layout_height="fill_parent" settings:strokeColor="@*android:color/[COLOR="Red"][B]holo_blue_light[/B][/COLOR]" settings:fillColor="#c0[COLOR="Red"][B]33b5e5[/B][/COLOR]" settings:fillColorSecondary="#66[COLOR="Red"][B]33b5e5[/B][/COLOR]" />
Code:
[B]+[/B] <com.android.settings.widget.ChartGridView android:layout_gravity="start|bottom|center" android:id="@id/grid" android:layout_width="fill_parent" android:layout_height="fill_parent" settings:labelColor="@*android:color/[COLOR="SeaGreen"][B]white[/B][/COLOR]" settings:primaryDrawable="@drawable/data_grid_primary" settings:secondaryDrawable="@drawable/data_grid_secondary" settings:borderDrawable="@drawable/data_grid_border" />
[B]+[/B] <com.android.settings.widget.ChartNetworkSeriesView android:layout_gravity="start|bottom|center" android:id="@id/series" android:layout_width="fill_parent" android:layout_height="fill_parent" settings:strokeColor="@*android:color/[COLOR="SeaGreen"][B]white[/B][/COLOR]" settings:fillColor="#c0[COLOR="SeaGreen"][B]ffffff[/B][/COLOR]" settings:fillColorSecondary="#66[COLOR="SeaGreen"][B]ffffff[/B][/COLOR]" />
\Settings\res\values\colors.xml
ADD THIS AT THE END OF THE .XML:
Code:
[B]+[/B] [COLOR="SeaGreen"][B]<item type="color" name="tab_indicator">@*android:color/white</item>[/B][/COLOR]
2) framework-res.apk
FIRST: ADD THE DRAWABLE-NODPI RESOURCE AND ALL OTHERS RESOURCES, ACCORDING TO YOUR RESOLUTION, INSIDE RESPECTIVE FOLDERS. CHECK ALSO OTHER FOLDERS (e.g. drawable-hdpi, drawable-xhpi TO SEE IF THERE ARE OTHER HOLO RESOURCES TO OVERWRITE!!!
framework-res\res\layout\alert_dialog_holo.xml
Code:
[B]-[/B] <View android:id="@id/titleDividerTop" android:background="@color/[COLOR="Red"][B]holo_blue_light[/B][/COLOR]" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="2.0dip" />
Code:
[B]+[/B] <View android:id="@id/titleDividerTop" android:background="@color/[COLOR="SeaGreen"][B]default_dialog_divider_holo_light[/B][/COLOR]" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="2.0dip" />
Code:
[B]-[/B] <View android:id="@id/titleDivider" android:background="@color/[COLOR="red"][B]holo_blue_light[/B][/COLOR]" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="2.0dip" />
Code:
[B]+[/B] <View android:id="@id/titleDivider" android:background="@color/[COLOR="SeaGreen"][B]default_dialog_divider_holo_light[/B][/COLOR]" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="2.0dip" />
framework-res\res\layout\immersive_mode_cling.xml
Code:
<TextView android:textSize="16.0sp" android:textColor="#80[COLOR="Red"][B]000000[/B][/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/immersive_mode_confirmation" />
Code:
<TextView android:textSize="16.0sp" android:textColor="#80[COLOR="SeaGreen"][B]ffffff[/B][/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/immersive_mode_confirmation" />
framework-res\res\values\colors.xml
ADD THIS AT THE END OF THE XML:
Code:
[B]+[/B] [COLOR="SeaGreen"][B]<color name="default_dialog_text_holo_dark">@android:color/background_holo_light</color>[/B][/COLOR]
[B]+[/B] [COLOR="SeaGreen"][B]<color name="default_dialog_text_holo_light">@android:color/background_holo_dark</color>[/B][/COLOR]
[B]+[/B] [COLOR="SeaGreen"][B]<color name="default_dialog_divider_holo_dark">@android:color/background_holo_light</color>[/B][/COLOR]
[B]+[/B] [COLOR="SeaGreen"][B]<color name="default_dialog_divider_holo_light">#ffacacac</color>[/B][/COLOR]
Code:
- <color name="holo_blue_light">#ff[COLOR="Red"][B]33b5e5[/B][/COLOR]</color>
Code:
+ <color name="holo_blue_light">#ff[B][COLOR="SeaGreen"]bdbdbd[/COLOR][/B]</color>
Code:
- <color name="highlighted_text_holo_dark">#66[COLOR="Red"][B]33b5e5[/B][/COLOR]</color>
- <color name="highlighted_text_holo_light">#66[B][COLOR="Red"]33b5e5[/COLOR][/B]</color>
Code:
+ <color name="highlighted_text_holo_dark">#66[COLOR="SeaGreen"][B]ffffff[/B][/COLOR]</color>
+ <color name="highlighted_text_holo_light">#66[COLOR="SeaGreen"][B]000000[/B][/COLOR]</color>
framework-res\res\values\styles.xml
Code:
<style name="TextAppearance.Holo.DialogWindowTitle" parent="@style/TextAppearance.Holo">
<item name="textSize">22.0sp</item>
[B]-[/B] <item name="textColor">@color/[COLOR="red"][B]holo_blue_light[/B][/COLOR]</item>
</style>
Code:
<style name="TextAppearance.Holo.DialogWindowTitle" parent="@style/TextAppearance.Holo">
<item name="textSize">22.0sp</item>
[B]+[/B] <item name="textColor">@color/[COLOR="SeaGreen"][B]default_dialog_text_holo_dark[/B][/COLOR]</item>
</style>
Code:
<style name="TextAppearance.Holo.Light.DialogWindowTitle" parent="@style/TextAppearance.Holo.Light">
<item name="textSize">22.0sp</item>
[B]-[/B] <item name="textColor">@color/[COLOR="Red"][B]holo_blue_light[/B][/COLOR]</item>
</style>
Code:
<style name="TextAppearance.Holo.Light.DialogWindowTitle" parent="@style/TextAppearance.Holo.Light">
<item name="textSize">22.0sp</item>
[B]+[/B] <item name="textColor">@color/[COLOR="SeaGreen"][B]default_dialog_text_holo_light[/B][/COLOR]</item>
</style>
Code:
- <style name="Widget.Holo.Light.ProgressBar.Horizontal" parent="@style/Widget[COLOR="Red"][B].Holo[/B][/COLOR].ProgressBar.Horizontal">
<item name="progressDrawable">@drawable/progress_horizontal_holo_light</item>
</style>
Code:
<style name="Widget.Holo.Light.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar.Horizontal">
[B]+[/B] [COLOR="SeaGreen"][B]<item name="maxHeight">16.0dip</item>[/B][/COLOR]
[B]+[/B] [COLOR="SeaGreen"][B]<item name="indeterminateDrawable">@drawable/progress_indeterminate_horizontal_holo_light</item>[/B][/COLOR]
<item name="progressDrawable">@drawable/progress_horizontal_holo_light</item>
[B]+[/B][COLOR="SeaGreen"][B] <item name="minHeight">16.0dip</item>[/B][/COLOR]
</style>
Code:
<style name="Widget.Holo.Light.SeekBar" parent="@style/Widget.Holo.SeekBar">
<item name="indeterminateDrawable">@drawable/scrubber_progress_horizontal_holo_light</item>
<item name="progressDrawable">@drawable/scrubber_progress_horizontal_holo_light</item>
[B]+[/B] [COLOR="SeaGreen"][B] <item name="android:thumb">@android:drawable/scrubber_control_selector_holo_light</item>[/B][/COLOR]
</style>
<! ---Fixes for tab Indicators on light layouts (see screenshots) (thanks @Diaz1999 --- !>
Follow this:
v1 - http://forum.xda-developers.com/showpost.php?p=51444245&postcount=475
Then This:
v2 - http://forum.xda-developers.com/showpost.php?p=52502121&postcount=593
framework-res\res\values\drawables.xml
Code:
[B]-[/B] <item type="drawable" name="notification_template_icon_bg">#[COLOR="Red"][B]3333b5e5[/B][/COLOR]</item>
Code:
[B]+[/B] <item type="drawable" name="notification_template_icon_bg">#[COLOR="SeaGreen"][B]00000000[/B][/COLOR]</item>
framework-res\res\drawable\scrubber_progress_horizontal_holo_light.xml
Code:
<item android:id="@id/secondaryProgress">
[B]-[/B] <scale android:drawable="@drawable/[COLOR="Red"][B]scrubber_secondary_holo[/B][/COLOR]" android:scaleWidth="100%" />
</item>
<item android:id="@id/progress">
[B]-[/B] <scale android:drawable="@drawable/[COLOR="Red"][B]scrubber_primary_holo[/B][/COLOR]" android:scaleWidth="100%" />
Code:
<item android:id="@id/secondaryProgress">
[B]+[/B] <scale android:drawable="@drawable/[COLOR="SeaGreen"][B]scrubber_secondary_holo_light[/B][/COLOR]" android:scaleWidth="100%" />
</item>
<item android:id="@id/progress">
[B]+[/B] <scale android:drawable="@drawable/[COLOR="SeaGreen"][B]scrubber_primary_holo_light[/B][/COLOR]" android:scaleWidth="100%" />
3) SystemUI
SystemUI\res\layout\status_bar_no_recent_apps.xml
Code:
[B]-[/B] <TextView android:textSize="20.0dip" android:textColor="@*android:color/[COLOR="Red"][B]holo_blue_light[/B][/COLOR]" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
Code:
[B]+[/B] <TextView android:textSize="20.0dip" android:textColor="@*android:color/[COLOR="SeaGreen"][B]white[/B][/COLOR]" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
4) GoogleDialer
GoogleDialer/res/values/colors.xml
Code:
[B]-[/B] <color name="incall_call_banner_background">#a0[COLOR="Red"][B]000000[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="incall_call_banner_background">#a0[COLOR="SeaGreen"][B]e5e5e5[/B][/COLOR]</color>
Alternative, for Aosp Roms, to Slim Commit:
@fritzhy
http://forum.xda-developers.com/showpost.php?p=51042091&postcount=412
@rush25
http://forum.xda-developers.com/showpost.php?p=51047209&postcount=414
http://forum.xda-developers.com/showpost.php?p=51049946&postcount=418
Code:
[B]-[/B] <color name="dialpad_background">#ff[COLOR="Red"][B]000000[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="dialpad_background">#ff[COLOR="SeaGreen"][B]e5e5e5[/B][/COLOR]</color>
Code:
[B]-[/B] <color name="incall_secondary_info_background">#80[COLOR="Red"][B]33b5e5[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="incall_secondary_info_background">#80[COLOR="SeaGreen"][B]e5e5e5[/B][/COLOR]</color>
Code:
[B]-[/B] <color name="incall_call_banner_text_color">#ff[COLOR="Red"][B]ffffff[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="incall_call_banner_text_color">#ff[COLOR="SeaGreen"][B]404040[/B][/COLOR]</color>
Code:
[B]-[/B] <color name="dtmf_dialer_display_text">#ff[COLOR="Red"][B]ffffff[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="dtmf_dialer_display_text">#ff[COLOR="SeaGreen"][B]404040[/B][/COLOR]</color>
Code:
[B]-[/B] <color name="dialtacts_primary_text_color">#ff[COLOR="Red"][B]000000[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="dialtacts_primary_text_color">#ff[COLOR="SeaGreen"][B]111111[/B][/COLOR]</color>
Code:
[B]-[/B] <color name="dialpad_text_color">#ff[COLOR="Red"][B]ffffff[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="dialpad_text_color">#ff[COLOR="SeaGreen"][B]404040[/B][/COLOR]</color>
Code:
[B]-[/B] <color name="call_log_voicemail_highlight_color">#ff[COLOR="Red"][B]33b5e5[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="call_log_voicemail_highlight_color">#ff[COLOR="SeaGreen"][B]404040[/B][/COLOR]</color>
Code:
[B]-[/B] <color name="background_dialer_list_items">#ff[COLOR="Red"][B]eeeeee[/B][/COLOR]</color>
[B]-[/B] <color name="background_dialpad">#[COLOR="red"][B]f2020709[/B][/COLOR]</color>
[B]-[/B] <color name="dialpad_primary_text_color">#ff[COLOR="red"][B]33b5e5[/B][/COLOR]</color>
<color name="dialpad_secondary_text_color">#ffaaaaaa</color>
[B]-[/B] <color name="actionbar_background_color">#ff[COLOR="Red"][B]ffffff[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="background_dialer_list_items">#ff[COLOR="SeaGreen"][B]f5f5f5[/B][/COLOR]</color>
[B]+[/B] <color name="background_dialpad">#[COLOR="SeaGreen"][B]ffe5e5e5[/B][/COLOR]</color>
[B]+[/B] <color name="dialpad_primary_text_color">#ff[COLOR="SeaGreen"][B]404040[/B][/COLOR]</color>
<color name="dialpad_secondary_text_color">#ffaaaaaa</color>
[B]+[/B] <color name="actionbar_background_color">#ff[COLOR="SeaGreen"][B]e6e6e6[/B][/COLOR]</color>
Code:
[B]-[/B] <color name="secondary_text_color">#ff[COLOR="Red"][B]888888[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="secondary_text_color">#ff[COLOR="SeaGreen"][B]777777[/B][/COLOR]</color>
GoogleDialer/res/values/drawables.xml
Code:
[B]-[/B] <item type="drawable" name="grayBg">#ff[COLOR="Red"][B]333333[/B][/COLOR]</item>
Code:
[B]+[/B] <item type="drawable" name="grayBg">#ff[COLOR="SeaGreen"][B]e5e5e5[/B][/COLOR]</item>
If, during recompilation, You get some errors like this
Solution:
Just open the FOLDER and search for the STRING that gives the error and put formatted="false", like this:
Code:
[B]-[/B] <string name="throttle_time_frame_subtext">"%1$d % des Zyklus sind verstrichen. [U]<!-- line n°193 -->[/U]
Der nächste Zeitraum beginnt in %2$d Tagen (%3$s)."</string> [U]<!-- line n°194 -->[/U]
Code:
[B]+[/B] <string [COLOR="SeaGreen"][B]formatted="false"[/B][/COLOR] name="throttle_time_frame_subtext">"%1$d % des Zyklus sind verstrichen. [U]<!-- line n°193 -->[/U]
Der nächste Zeitraum beginnt in %2$d Tagen (%3$s)."</string> [U]<!-- line n°194 -->[/U]
5) TeleService (Emergency Dialer)
JUST ADD THE RESOURCES PROVIDED YOU WILL HAVE THE SAME COMPILATION ERRORS AS FOR GoogleDialer!
7) DeskClockGoogle
JUST ADD THE RESOURCES PROVIDED
8) Mms
FIRST: ADD THE RESOURCES PROVIDED
Mms\res\values\colors.xml
Code:
[B]-[/B] <color name="banner_item_pressed">#67[COLOR="Red"][B]33b5e5[/B][/COLOR]</color>
Code:
[B]+[/B] <color name="banner_item_pressed">#67[COLOR="SeaGreen"][B]404040[/B][/COLOR]</color>
10) (AOSP)browser
JUST ADD THE RESOURCES PROVIDED
<!--- You want more White (e.g. white settings ui)????? Then follow these guidelines by @donjamal ! ---!>
http://forum.xda-developers.com/nexus-4/themes-apps/guide-theming-stock-android-t2616963
[/CENTER]
Make the Contextual ActionBar background follow the ActionBar background
framework-res.apk/res/values/styles.xml
Code:
<style name="Theme.Holo" parent="@style/Theme">
=˄=
- <item name="actionBarStyle">@style/[COLOR="Red"]Widget.Holo.ActionBar[/COLOR]</item>
+ <item name="actionBarStyle">@style/[COLOR="green"]Widget.Holo.ActionBar.Solid[/COLOR]</item>
=˅=
</style>
Code:
<style name="Theme.Holo.Light.DarkActionBar" parent="@style/Theme.Holo.Light">
=˄=
- <item name="actionModeSplitBackground">@drawable/[COLOR="Red"]cab_background_bottom_holo_dark[/COLOR]</item>
+ <item name="actionModeSplitBackground">@drawable/[COLOR="Green"]cab_background_bottom_holo_inverse[/COLOR]</item>
=˅=
</style>
framework-res.apk/res/values/drawables.xml
Code:
=˄=
+ [COLOR="Green"]<item type="drawable" name="cab_background_top_holo_dark">@drawable/ab_solid_dark_holo</item>[/COLOR]
+ [COLOR="green"]<item type="drawable" name="cab_background_top_holo_light">@drawable/ab_solid_light_holo</item>[/COLOR]
+ [COLOR="green"]<item type="drawable" name="cab_background_bottom_holo_dark">@drawable/ab_bottom_solid_dark_holo</item>[/COLOR]
+ [COLOR="green"]<item type="drawable" name="cab_background_bottom_holo_light">@drawable/ab_bottom_solid_light_holo</item>[/COLOR]
+ [COLOR="green"]<item type="drawable" name="cab_background_bottom_holo_inverse">@drawable/ab_bottom_solid_inverse_holo</item>[/COLOR]
=˅=
framework-res.apk/res/drawable-**dpi/
Code:
=˄=
button_onoff_indicator_on.png
- [COLOR="red"]cab_background_bottom_holo_dark.9.png[/COLOR]
- [COLOR="red"]cab_background_bottom_holo_light.9.png[/COLOR]
- [COLOR="Red"]cab_background_top_holo_dark.9.png[/COLOR]
- [COLOR="red"]cab_background_top_holo_light.9.png[/COLOR]
call_contact.png
=˅=
Alternate style for Switch
Screenshot at post #678
framework-res.apk/res/values/styles.xml
Code:
<style name="TextAppearance.Holo.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
- <item name="textColor">@color/[COLOR="Red"]secondary_text_holo_dark[/COLOR]</item>
+ <item name="textColor">@color/[COLOR="Green"]switch_text_holo_dark[/COLOR]</item>
</style>
Code:
<style name="TextAppearance.Holo.Light.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
- <item name="textColor">@color/[COLOR="Red"]primary_text_holo_dark[/COLOR]</item>
+ <item name="textColor">@color/[COLOR="Green"]switch_text_holo_light[/COLOR]</item>
</style>
And extract the switch_alternate resources below to the correct location
wow bro awesome guide thanks a lot
Sent from my Nexus 4 using XDA Premium 4 mobile app
Credits, Downloads and Screenshots
Once done just flash themed .apk via recovery using this template. Put the recompiled files inside:
Follow_KK_UI.zip\system\priv-app\Settings.apk
Follow_KK_UI.zip\system\priv-app\SystemUI.apk
Follow_KK_UI.zip\system\priv-app\GoogleDialer.apk
Follow_KK_UI.zip\system\priv-app\TeleService.apk
Follow_KK_UI.zip\system\priv-app\Mms.apk
Follow_KK_UI.zip\system\framework\framework-res.apk
Follow_KK_UI.zip\system\app\DeskClockGoogle.apk
View attachment 2572657
HOW TO THEME YOUR KITKAT LIKE A KITKAT!!!!
Credits:
- @ivn888
- @memnoc
- @iBotPeaches
- @kroz
- SlimRoms Team
- @rush25
- @BaNkS
- @snak3ater
- @Rodger_Rulez
http://forum.xda-developers.com/showpost.php?p=50237756&postcount=128
- @fritzhy
- @mrjaydee82 for support
- @Etihad
- AOKP.co Team
- Androguide.fr
- @moneyolo
- @fritzhy
- @engraver65
- @Gingerbread1611
- @logonaniket
- @Diaz1999
- @Koragg618
- @core720
- @Notonlyeyes
- @HaGii
- @rahil3108
- @Navneet Suresh for mirror
- @nemofbaby2010 for the gui apktool hint
- @RK
✪DONATORS✪
- @sirbanger
- a Guest member
CyanogenMod 11 Theme (HDPI , XHDPI & XXHDPI) by @rush25 & @hemantv
Please, thank them:
http://forum.xda-developers.com/showthread.php?t=2685553
http://forum.xda-developers.com/goo...heme-kitkat-ui-0-3-goodbye-holo-blue-t2718202​
Other Nexus Devices
N4 STOCK ROMs DEODEXED
http://forum.xda-developers.com/nexus-4/themes-apps/theme-stock-white-holo-theme-build-1-t2619037
(xhdpi) Separate N4 flashable DIALER by @ivn888 :
https://www.dropbox.com/s/maofxk9br9iygxy/Dialer_N4.zip
! Notes !
1. These mods are flashable via a recovery;
2. These mods are ONLY for KOT49H STOCK ROMs deodexed and Cataclysm ROM;
3. You can flash the MODs for STOCK ROM DEODEXED over all untouched stock Roms, also ODEX, just delete the .odex of Settings, GoogleDialer, Systemui, framework-res and TeleService .apks (Kangakat etc etc);
How to flash deodexed on odexed
4. "Can I flash over AOSPs?" Absolutely not!!!!!;
5. Can I flash an old mod on a newest Aosp Build (PA, CM etc) Roms: NOOOOOO;
6. "What Happens if I ignore Your warnings" Simple: Bootloop!;
7. "Can we use Your files in our ROM ?" Sure but give me mention/credits/link_to_this_thread if You use my guide to theme Your Rom or the files I provided. Please consider also to mention kroz and others for their hard work.;
SCREENSHOTS (Click to Show)
Good job enricocid
Very well written and I'm sure this will come in handy for many people!!
I have applied all the changes to a SGS2 ROM with JB 4.1.2 Touchwiz, and now is like Kit Kat.
Thanks for your work.
Would there be any chance for a tutorial (instructions) to change the settings etc from black to white? White settings etc would finish the design finaly!
Thanks!
tallo03 said:
Would there be any chance for a tutorial (instructions) to change the settings etc from black to white? White settings etc would finish the design finaly!
Thanks!
Click to expand...
Click to collapse
to change the settings background (from grey to white) You can follow this guide
http://forum.xda-developers.com/nexus-4/themes-apps/how-to-change-framework-background-t2464388
tallo03 said:
Would there be any chance for a tutorial (instructions) to change the settings etc from black to white? White settings etc would finish the design finaly!
Thanks!
Click to expand...
Click to collapse
you can also follow this guide
or you can flash my mods from here (white settings) and here (eXperiaNcre Red theme)
@enricocid What are the rom requirements, Android 4.0+?
guide was smooth No confusion what so ever for the first time editing smali!!!
My device is running touchwiz 4.1, but not all has changed like the screentshots above.
Might be because you are not running KitKat?!
Sent via GALAXY NOTE N7000 // KitKat
Aiko0923 said:
@enricocid What are the rom requirements, Android 4.0+?
Click to expand...
Click to collapse
i did this guide to complete the look on KitKat, but you can theme also Jellybean
enricocid said:
i did this guide to complete the look on KitKat, but you can theme also Jellybean
Click to expand...
Click to collapse
I done it on TW 4.1.2 and all is working like the screenshots.
Enviado desde mi GT-I9100 mediante Tapatalk
---------- Post added at 09:24 AM ---------- Previous post was at 08:59 AM ----------
Geddd said:
My device is running touchwiz 4.1, but not all has changed like the screentshots above.
Click to expand...
Click to collapse
First you have to follow this guide:http://forum.xda-developers.com/showthread.php?t=2531813 Then you can apply the changes of the OT.
- ADDED DIALER INSTRUCTIONS
- UPDATED RESOURCES WITH DIALER ONES
- UPDATED FOLLOW KK UI MOD FOR NEXUS 5!!
Added also a cataclysm theme for nexus 5 users in op!
enricocid said:
Added also a cataclysm theme for nexus 5 users in op!
Click to expand...
Click to collapse
Thank you so much
Sent from my Nexus 5 using XDA Premium 4 mobile app
Awesome work!
Sent from my Nexus 5 using Tapatalk
Added a separate package for Dialer

[TUT]MTK 65xx Theming Guide

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This Guide can be Preferred by MTK6589​
Tools Needed:
Notepad++
Decompiling and Recompiling Tool
Brain Please
A MTK65xx Device
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Transparent StatusBar
Click to expand...
Click to collapse
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\PhoneWindowManager.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
.[COLOR="Red"]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[/COLOR]
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">[COLOR="Red"]#00000000[/COLOR]</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">[COLOR="Red"]#88000000[/COLOR]</item>
<item type="drawable" name="notification_icon_area_smoke">[COLOR="Red"]#88000000[/COLOR]</item>
100% Tranapency
Code:
#00000000
Translucent
Code:
#88000000
Recompile
Credits:[email protected] 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">
[COLOR="Blue"] <PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah" android:title="" />[/COLOR]
<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="[COLOR="Red"]320.0px[/COLOR]" android:layout_height="[COLOR="Red"]200.0px[/COLOR]" android:src="@drawable/cosmic" android:scaleType="fitXY"
xmlns:android="http://schemas.android.com/apk/res/android" />
Creditsiamareebjamal
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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​:laugh::laugh::laugh:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
More Guides Coming SOON :highfive::highfive::highfive:
Great guide!!!
Excellent guide for noobs like me
lol
Keep it up bro :good:
Press "Thanks" Button you like it
Sent from my Micromax A116 using xda app-developers app
Help needed Bro !!
What code i can use for 25 % and 75 %
plz give me the codes !!!
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...
thanks for the guide. really useful. will try it when i got some time to spend.
:thumbsup:
@besal22 @Sharique244777
Code:
Code:
80% Transparency
#88000000
Dhogaivannan said:
@besal22 @Sharique244777
Code:
Code:
80% Transparency
#88000000
Click to expand...
Click to collapse
ok thnx !where is my signature ?
Thanks Bro
Hey, can u help me on how to change the holo background in kitkat, see SS, the background, i can't find bg_holo_dark anywhere in framework or settings app

How to Port Lidroid Toggles to JB 4.2 MTK / STOK BASE / NON CM / JB 4.2/ JB 4.3 / KK

HOW TO PORT JB 4.2 HORIZONTAL LIDROID TOGGLES
TO MTK / STOK BASE / NON CM / JB 4.2 /JB 4.3 / KK
Oke guys, I am back again here, I want to share how to port Lidroid toggle for Jelly Bean 4.2 up. : MTK / STOK BASE / NON CM / JB 4.2 / JB 4.3 / KK
do not try this on CM Base rom, or you will ended with SystemUI force closes :laugh::fingers-crossed:
Credit & Thank you very much , to
- lidroid, and Wanam for Guide [MOD][Android 4.1.2] Add Customizable 23 Statusbar Toggles To Samsung Jelly bean Roms,. and Thanks too to peetr_I learn some code from his thread [MOD][JB][ICS] Xperia T/TX/V port of Lidroid power widget,. and also thanks to
XDA.AGM I learn some code from his thread too [ JB ] [ A.0.400/1.100 ] [ XP-XU ]SystemUI with Lidroid Custom 18 Toggles [version 6], and you must thanks them too
- Recognized contributor @BOND1987
- Denny Mbol , Device Lenovo a316i MTK 6572
- CyanogenMod
- and also Thanks to Recognized Developer/themer @serajr for some toggles created by him
- [Unofficial Community] Galaxy Wonder CyanogenMod Indonesia
so we are going to port 21 Lidroid toggles :
( -Lock screen/screen-off action, -Reboot action, -Shutdown action, -Bluetoth, -GPS, -Flashlight, -Lockscreen, -MobileData, -Orientation, -ScreenTimeOut, -Sound, -Sync, -Wi-fi, -Wi-fi Hotspot, Battery info, USB Connection mode, USB Debugging, PlayPause, Next track, Previous track, Network mode 2G/3G )
ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- Know how to decompile/recompiling jar Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else[/B]
STEP - 1
Decompile your SystemUI.apk
- Download attached Merge_to_SystemUI.apk exstract it and merge to your decompiled systemUI.apk
- SystemUI.apk/res/layout/gemini_status_bar_expanded.xml
add the red line
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/handle" android:background="@drawable/status_bar_close" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" />
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/gemini_carrier_label" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap" android:animateLayoutChanges="false">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
[COLOR="Red"]<com.adi.systemui.powerwidget.PowerWidget android:id="@id/adi_widget" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/COLOR]
<FrameLayout android:id="@id/toolBarSwitchPanel" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="103.0dip">
<include layout="@layout/toolbar_view" />
<include layout="@layout/toolbar_indicator" />
<include layout="@layout/toolbar_divider" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</FrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.NotificationPanelView>
- SystemUI.apk/res/values/arrays.xml
add the red lines, to end of it before </resources>
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="navbar_search_targets">
<item>@null</item>
<item>@*android:drawable/ic_action_assist_generic</item>
<item>@null</item>
<item>@null</item>
</array>
<array name="navbar_search_target_descriptions">
<item>@null</item>
<item>@*android:string/description_target_search</item>
<item>@null</item>
<item>@null</item>
</array>
<array name="navbar_search_direction_descriptions">
<item>@null</item>
<item>@*android:string/description_direction_up</item>
<item>@null</item>
<item>@null</item>
</array>
[COLOR="Red"]<string-array name="shutdown_reboot_options">
<item>@string/reboot</item>
<item>@string/reboot_recovery</item>
<item>@string/reboot_download</item>
</string-array>
<string-array name="shutdown_reboot_actions">
<item></item>
<item>recovery</item>
<item>download</item>
</string-array>
<string-array name="usb_connection_mode_options">
<item>@string/usb_mpt_mode</item>
<item>@string/usb_msc_mode</item>
</string-array>
<string-array name="usb_connection_mode_actions">
<item>mtp</item>
<item>mass_storage</item>
</string-array>
<string-array name="battery_info_options">
<item>@string/battery_info_info</item>
<item>@string/battery_info_usage</item>
</string-array>
<string-array name="battery_info_actions">
<item>battery_info</item>
<item>battery_usage</item>
</string-array>[/COLOR]
</resources>
- SystemUI.apk/res/values/ids.xml
add the red lines, to end of it before </resources>
Code:
<item type="id" name="sim_name">false</item>
<item type="id" name="sim_switch">false</item>
<item type="id" name="tool_bar_view">false</item>
<item type="id" name="close">false</item>
<item type="id" name="title">false</item>
<item type="id" name="bottom">false</item>
<item type="id" name="notification_inspect_item">false</item>
<item type="id" name="recent_remove_item">false</item>
<item type="id" name="recent_inspect_item">false</item>
[COLOR="Red"]<item type="id" name="adi_widget">false</item>
<item type="id" name="power_widget_button_text">false</item>
<item type="id" name="power_widget_button_indic">false</item>
<item type="id" name="power_widget_button">false</item>
<item type="id" name="power_widget_button_image">false</item>[/COLOR]
</resources>
- SystemUI.apk/res/values/integers.xml
add the red lines, to end of it before </resources>
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="config_maxNotificationIcons">5</integer>
<integer name="config_show_search_delay">200</integer>
<integer name="config_vibration_duration">0</integer>
<integer name="config_search_panel_view_vibration_duration">20</integer>
<integer name="one_finger_pop_duration_ms">10</integer>
<integer name="status_bar_recents_bg_gradient_degrees">90</integer>
<integer name="navigation_bar_deadzone_hold">333</integer>
<integer name="navigation_bar_deadzone_decay">333</integer>
<integer name="config_recent_item_min_alpha">3</integer>
<integer name="quick_settings_num_columns">3</integer>
<integer name="quick_settings_user_time_settings_tile_span">1</integer>
<integer name="quick_settings_brightness_dialog_short_timeout">2000</integer>
<integer name="quick_settings_brightness_dialog_long_timeout">4000</integer>
<integer name="blinds_pop_duration_ms">10</integer>
<integer name="notification_panel_layout_gravity">0x37</integer>
<integer name="settings_panel_layout_gravity">0x37</integer>
[COLOR="Red"]<integer name="quickpanel_scroll_threshold_port">5</integer>
<integer name="quickpanel_scroll_threshold_land">8</integer>[/COLOR]
</resources>
- SystemUI.apk/res/values/strings.xml
add the red lines, to end of it before </resources>
Code:
<string name="status_bar_help_text">"Access them anytime by swiping down.
Swipe down again for system controls."</string>
<string name="shutdown_prompt_title">Shutdown</string>
<string name="shutdown_prompt_message">Low battery and then will be auto shutdown</string>
<string name="shutdown_prompt_message_before">Low battery ! Your phone will shutdown in</string>
<string name="shutdown_prompt_message_after">seconds</string>
[COLOR="Red"]<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_dc_text">Data</string>
<string name="quickpanel_network_mode_text">Network</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_sound_vibration_text">Ring.vibrate</string>
<string name="quickpanel_silent_text">Silent</string>
<string name="quickpanel_vibration_text">Vibration</string>
<string name="quickpanel_rotation_text">Rotation</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_autosync_text">Auto Sync</string>
<string name="quickpanel_brightness_text">Brightness</string>
<string name="quickpanel_screen_timeout_text">Timeout</string>
<string name="quickpanel_lockscreen_text">Lockscreen</string>
<string name="quickpanel_airplane_text">Flightmode</string>
<string name="quickpanel_flashlight_text">Flashlight</string>
<string name="quickpanel_reboot_text">Reboot</string>
<string name="quickpanel_shutdown_text">Shutdown</string>
<string name="airplane_mode">In Flight mode</string>
<string name="shutdown_confirm">Your phone will shut down.</string>
<string name="screen_timeout_seconds">Screen timeout set to: %d second(s)</string>
<string name="screen_timeout_minutes">Screen timeout set to: %d minute(s)</string>
<string name="screen_timeout_hours">Screen timeout set to: %d hour(s)</string>
<string name="hamster">Phone Options</string>
<string name="yes">OK</string>
<string name="no">Cancel</string>
<string name="reboot">Reboot</string>
<string name="reboot_recovery">Recovery</string>
<string name="reboot_download">Download</string>
<string name="quickpanel_nfc_text">NFC</string>
<string name="quickpanel_wifi_ap_text">Wifi AP</string>
<string name="quickpanel_lockscreen_action_text">Sleep</string>
<string name="quickpanel_androidbeam_text">Android Beam</string>
<string name="brightness_settings_automatic">AUTO</string>
<string name="brightness_settings_title" />
<string name="quickpanel_usb_debugging_text">Debugging</string>
<string name="quickpanel_usb_connection_mode_text">USB Mode</string>
<string name="quickpanel_usb_current_mtp_title">Current mode: MPT</string>
<string name="quickpanel_usb_current_msc_title">Current mode: MSC</string>
<string name="usb_mpt_mode">MPT - Media Transfer</string>
<string name="usb_msc_mode">MSC - Mass Storage</string>
<string name="quickpanel_stay_awake_plugged_text">Stay Awake</string>
<string name="quickpanel_battery_info_text">Battery</string>
<string name="battery_info_info">Battery Information</string>
<string name="battery_info_usage">Battery Power Usage</string>
<string name="quickpanel_playpause_text">Play-Pause</string>
<string name="quickpanel_next_text">Next</string>
<string name="quickpanel_previous_text">Previous</string>
<string name="quickpanel_screenshots_text">Screenshot</string>[/COLOR]
</resources>
- Done and recompile your systemUI.apk
NOTE :
if you are using Apk Tool 2.0 or newer, and gettings error recompiling in the smali file,. check this explanation by :
- Recognized Themer @lacoursiere18 , here http://forum.xda-developers.com/showpost.php?p=53798727&postcount=34
and by Recognized Themer @Ticklefish, here http://forum.xda-developers.com/showpost.php?p=53824313&postcount=37
Credits and Thanks to them
STEP - 2
- Decompile the newly Recompiled APK again
Next go to
res/values/public.xml
open it with Notepad++
leave it, but keep it open
- smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
add the red lines :
Code:
.field private mOldPlmn:Ljava/lang/String;
.field mPixelFormat:I
.field private mPlmnLabel:Landroid/widget/TextView;
.field mPositionTmp:[I
.field mPostCollapseCleanup:Ljava/lang/Runnable;
[COLOR="Red"].field mPowerWidget:Lcom/adi/systemui/powerwidget/PowerWidget;[/COLOR]
.field private mPreviousConfigFontScale:F
.field private mPrevioutConfigOrientation:I
.field mQS:Lcom/android/systemui/statusbar/phone/QuickSettings;
.field mQueueLock:Ljava/lang/Object;
.field private mRecentsClickListener:Landroid/view/View$OnClickListener;
Code:
.end local v6 #signal:Landroid/view/View;
.end local v7 #systemIcons:Landroid/view/View;
:cond_0
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mLightsOutAnimation:Landroid/animation/Animator;
invoke-virtual {v8}, Landroid/animation/Animator;->cancel()V
.line 2213
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mLightsOnAnimation:Landroid/animation/Animator;
invoke-virtual {v8}, Landroid/animation/Animator;->cancel()V
.line 2215
if-eqz p1, :cond_1
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mLightsOutAnimation:Landroid/animation/Animator;
.line 2216
.local v0, a:Landroid/animation/Animator;
:goto_0
invoke-virtual {v0}, Landroid/animation/Animator;->start()V
.line 2218
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setAreThereNotifications()V
.line 2219
return-void
.line 2215
.end local v0 #a:Landroid/animation/Animator;
:cond_1
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mLightsOnAnimation:Landroid/animation/Animator;
goto :goto_0
.end method
[COLOR="Red"].method private setupPowerWidget()V
.locals 2
.prologue
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
const v1, [COLOR="Blue"]0x7f08012a[/COLOR]
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/adi/systemui/powerwidget/PowerWidget;
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/adi/systemui/powerwidget/PowerWidget;
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/adi/systemui/powerwidget/PowerWidget;
invoke-virtual {v0}, Lcom/adi/systemui/powerwidget/PowerWidget;->setupWidget()V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/adi/systemui/powerwidget/PowerWidget;
invoke-virtual {v0}, Lcom/adi/systemui/powerwidget/PowerWidget;->updateWidget()V
return-void
.end method[/COLOR]
.method private showAlwaysAskOrInternetCall(J)V
.locals 3
.parameter "simId"
.prologue
const/4 v2, 0x0
.line 3231
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSimIndicatorIconShow:Z
.line 3232
const-wide/16 v0, -0x2
cmp-long v0, p1, v0
if-nez v0, :cond_0
.line 3233
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSimIndicatorIcon:Landroid/widget/ImageView;
const v1, 0x7f020137
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V
.line 3239
:goto_0
iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAirplaneMode:Z
if-nez v0, :cond_2
.line 3240
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSimIndicatorIcon:Landroid/widget/ImageView;
invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V
.line 3245
:goto_1
return-void
.line 3234
:cond_0
const-wide/16 v0, -0x3
cmp-long v0, p1, v0
if-nez v0, :cond_1
.line 3235
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSimIndicatorIcon:Landroid/widget/ImageView;
const v1, 0x7f020136
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V
goto :goto_0
.line 3237
:cond_1
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSimIndicatorIcon:Landroid/widget/ImageView;
const v1, 0x7f020135
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V
goto :goto_0
change this, 0x7f08012a according to the value you got in your own public.xml
Code:
<public type="id" name="adi_widget" id="0x7f??????" />
search this method
Code:
.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
scroll down in that method and add the red line
Code:
move-object/from16 v0, p0
iget-object v1, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBroadcastReceiver:Landroid/content/BroadcastReceiver;
invoke-virtual {v11, v1, v12}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
.line 772
invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->resetUserSetupObserver()V
[COLOR="Red"] invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupPowerWidget()V[/COLOR]
.line 774
new-instance v20, Landroid/content/IntentFilter;
invoke-direct/range {v20 .. v20}, Landroid/content/IntentFilter;-><init>()V
.line 775
.local v20, simInfoIntentFilter:Landroid/content/IntentFilter;
const-string v1, "android.intent.action.SIM_SETTING_INFO_CHANGED"
OR
you can put the line here
Code:
iget-object v1, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mMediaEjectBroadcastReceiver:Landroid/content/BroadcastReceiver;
invoke-virtual {v11, v1, v15}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
.line 800
move-object/from16 v0, p0
[COLOR="Red"] invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupPowerWidget()V[/COLOR]
iget-object v1, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
return-object v1
.line 440
.end local v12 #filter:Landroid/content/IntentFilter;
.end local v14 #indicator:Lcom/android/systemui/statusbar/toolbar/ToolBarIndicator;
.end local v15 #mediaEjectFilter:Landroid/content/IntentFilter;
.end local v19 #signalCluster:Lcom/android/systemui/statusbar/SignalClusterViewGemini;
.end local v20 #simInfoIntentFilter:Landroid/content/IntentFilter;
.end local v21 #tickerView:Lcom/android/systemui/statusbar/phone/TickerView;
:cond_d
const/4 v1, 0x0
goto/16 :goto_0
NOTE !! if your device / os
Code:
.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
doesn't have this line
Code:
move-object/from16 v0, p0
change this
Code:
invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupPowerWidget()V
to like this
Code:
invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupPowerWidget()V
STEP -3
Next : Download attached Powerwidget_public, and open it with Notepad++
so you have two public.xml now which is opened in the Notepad++
1. secondly decompiled public.xml
2. Powerwidget_public.xml
- go to , smali/com/adi/systemui/powerwidget/here...
there are a lot of smalis there
FIND ALL IDS in all that smalis THAT'S STARTED WITH
Code:
0x7fxxxxxx
EXAMPLE :
AutoRotateButton.smali
Code:
.method protected getText()I
.locals 1
const v0, [COLOR="Red"]0x7f0b00f9[/COLOR]
return v0
.end method
find this const v0, 0x7f0b00f9 in PowerWidget_public.xml what is calling for
and we find that is for
Code:
<public type="[COLOR="Red"]string[/COLOR]" name="[COLOR="Red"]quickpanel_rotation_text[/COLOR]" id="[COLOR="Blue"]0x7f0b00f9[/COLOR]" />
the IDS can be strings, ids, integer, arays, drawable, or layout, so you have to pay attention to this
next go to your own public.xml search for the value you got
Code:
<public type="[COLOR="Red"]string[/COLOR]" name="[COLOR="Red"]quickpanel_rotation_text[/COLOR]" id="[COLOR="Blue"]0x7f0??????[/COLOR]" />
and change the IDS in the smali with your own value
Code:
.method protected getText()I
.locals 1
const v0, [COLOR="Blue"]0x7f0??????[/COLOR]
return v0
.end method
Do it too, to all
Code:
0x7fxxxxxx
in all smalis in the Powerwidget folder.
STEP - 4
- Disable signature check
here : http://forum.xda-developers.com/showthread.php?t=1698352
or in here : http://forum.xda-developers.com/showpost.php?p=47592101&postcount=3
- AndroidManifest.xml
add the red line
Code:
<manifest [COLOR="Red"]android:sharedUserId="android.uid.system" android:process="system"[/COLOR] android:versionCode="17" android:versionName="4.2.2-eng.njdbuild03.1389868812" package="com.android.systemui" coreApp="true"
Code:
<uses-permission android:name="android.permission.ACCESS_ALL_DOWNLOADS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
[COLOR="Red"]<uses-permission android:name="android.permission.REBOOT" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />[/COLOR]
<application android:label="@string/app_label" android:icon="@*android:drawable/platlogo" android:allowClearUserData="false" android:persistent="true" android:allowBackup="false">
<service android:name="SystemUIService" android:exported="true" />
<service android:name=".screenshot.TakeScreenshotService" android:exported="false" android:process=":screenshot" />
Code:
<service android:label="@string/jelly_bean_dream_name" android:name=".BeanBagDream" android:enabled="false" android:exported="true">
<intent-filter>
<action android:name="android.service.dreams.DreamService" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<activity android:theme="@*android:style/Theme.Wallpaper.NoTitleBar" android:label="@string/start_dreams" android:icon="@mipmap/ic_launcher_dreams" android:name=".Somnambulator" android:exported="true" android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.DESK_DOCK" />
</intent-filter>
</activity>
[COLOR="Red"]<receiver android:name="com.adi.systemui.powerwidget.NetworkModeReceiver" android:process="com.android.phone">
<intent-filter>
<action android:name="com.serajr.powertoggles.POWERTOGGLES_CHANGE_NETWORK_MODE" />
<action android:name="com.serajr.powertoggles.POWERTOGGLES_NEW_NETWORK_MODE" />
</intent-filter>
</receiver>[/COLOR]
</application>
</manifest>
- Done and recompile it , don't forget to sign it,
I ussually use ApkMultitools to decompile/recompile/sign APK
so if you use ApkMultitools, you can use my signer keys
download attached file, exstract it and merge to your ApkMultitools / other / here
- Download Attached Powerwidget.apk and Torch.apk, push it to your system/app/reboot
- edit your build.prop , to make USB connection mode toggle working properly
Code:
ro.sys.usb.storage.type=mtp[COLOR="Red"],mass_storage[/COLOR]
Additional :
- if the Flashlight toggle force closes, try to use this Torch.apk by raffie_archildz http://d-h.st/n99
- But if still force closes try to use this guide
if the Flashlight toggle from the guide doesn't work, try to use this smali http://d-h.st/mgb
- and don't forget to match the IDS too,.
- AndroidManifest.xml
Code:
<uses-permission android:name="android.permission.ACCESS_ALL_DOWNLOADS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
[COLOR="Red"]<uses-permission android:name="android.permission.CAMERA" />[/COLOR]
[COLOR="Blue"]<uses-permission android:name="android.permission.REBOOT" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />[/COLOR]
<application android:label="@string/app_label" android:icon="@*android:drawable/platlogo" android:allowClearUserData="false" android:persistent="true" android:allowBackup="false">
<service android:name="SystemUIService" android:exported="true" />
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
fertamax om :victory: !!
Thread Updated !, please use New_PowerWidget.apk,.
cuz re-order prefrence doesn't work on the old PowerWidget.apk
:laugh:
Finally EPIC mod for Mediatek has come.
Thanx mastah!
Thanks a lot
Thanks a lot SIR for making a guide for MTK Devices ..Will try today .....
Great job!!
Another awesome write up!! Congrats bro!!
And you have used my network mode receiver too... great! :highfive:
thanx...
Thanks a ton !!! Great Guide
got working in 2nd try on my Mediatek mt6577 (LAVA IRIS 405) DEVICE with JB 4.2.2 ...
thanks a lot ....
But if i toggle to 3g mode then no network .
still i need to fix reboot and flashlight rest all working fine i've attached logcat of reboot fc pls have a look, i googled didn't find anything useful
Again thanks a lot for this mod :good:
pavan kr said:
got working in 2nd try on my Mediatek mt6577 (LAVA IRIS 405) DEVICE with JB 4.2.2 ...
thanks a lot ....
But if i toggle to 3g mode then no network .
still i need to fix reboot and flashlight rest all working fine i've attached logcat of reboot fc pls have a look, i googled didn't find anything useful
Again thanks a lot for this mod :good:
Click to expand...
Click to collapse
please check again all IDS in your smali got the correct value
ihiirrrrr love it ....work like a charm mastah...on imo raptor...:good:
wow
:good:work ...thx teacher
your awesome...another great guides from u... sungkem dulu ama guru... _/|\_
thanks...
Sent from my GT-I9152 using Tapatalk
It's touchwiz 4.2 :good::laugh:
budi78 said:
:good:work ...thx teacher
Click to expand...
Click to collapse
sitifire said:
your awesome...another great guides from u... sungkem dulu ama guru... _/|\_
thanks...View attachment 2791477
Sent from my GT-I9152 using Tapatalk
Click to expand...
Click to collapse
awesome guide suhu sangat sangat Thanks :good:
thanks lord adi...
Working in my MTK device..
Working in my MTK device.. But pls someone help me to understand the Steps .. Wrongs icons and names and icons merging with the toggle names

[Guide][How to get Fmd L Panel]

This is a guide by Fmd devs to get L panel in kitkat and jellybean devics...
It is time consuming and u need to be very patient.
It isn't for extreme noob but i shall try my best understand u in all possible ways
Take a backup of ur current systemUI.apk before following it
if this guide is already on xda, then let me know i'll close the thread
Let's start now
Things u need -
Apktool 1.5.2
SystemUI.apk
Notepad++
Brain.jar
Step 1:
- Decomile ur systemUI.apk (i m not gonna explain u how to decomile and recomile , there are already many guides for that )
Download systemuiFiles.zip from attachments, extract it merge the files to respective folders
- Go res/values
open ids.xml
Copy the codes below and paste them before </resources>
Code:
<item type="id" name="recents_clear">false</item>
<item type="id" name="LayE2">false</item>
<item type="id" name="owner">false</item>
<item type="id" name="photo_picker_cover">false</item>
<item type="id" name="owner_cover">false</item>
<item type="id" name="name_field_cover">false</item>
<item type="id" name="name_edit_cover">false</item>
<item type="id" name="image_cover">false</item>
<item type="id" name="photo_picker">false</item>
<item type="id" name="name_field">false</item>
<item type="id" name="name_edit">false</item>
<item type="id" name="colored_bar">false</item>
<item type="id" name="thumbnail_border">false</item>
Save the xml
- Open dimens.xml search for <dimen name="quick_settings_cell_height"> change its value to 90.0dip
Also search for <dimen name="quick_settings_cell_gap"> and replace its value with 0.0dip
Then save it
- Now open styles.xml
Find this -
Code:
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
Change it to make it like -
Code:
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">14.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:fontFamily">sans-serif-medium</item>
</style>
Now find -
Code:
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
Change it to become like -
Code:
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">14.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#b2ffffff</item>
</style>
Add the codes below at the bottom before </resources>
Code:
<style name="TextAppearance.QuickSettings.Toggle" parent="@style/TextAppearance.QuickSettings">
<item name="android:textSize">12.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#b3ffffff</item>
<item name="android:fontFamily">sans-serif-regular-systemui</item>
</style>
<style name="Theme.Lalalee" parent="@*android:style/Theme.Holo.Light.Dialog">
<item name="android:windowBackground">@*android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
</style>
Done Now save the xml
- Open arrays.xml
Add these codes at the bottom before</resources>
Code:
<integer-array name="batterymeter_color_levels">
<item>4</item>
<item>15</item>
<item>100</item>
</integer-array>
<array name="batterymeter_color_values">
<item>#ffff3300</item>
<item>#ffff3300</item>
<item>#ffffffff</item>
</array>
<integer-array name="batterymeter_bolt_points">
<item>73</item>
<item>0</item>
<item>392</item>
<item>0</item>
<item>201</item>
<item>259</item>
<item>442</item>
<item>259</item>
<item>4</item>
<item>703</item>
<item>157</item>
<item>334</item>
<item>0</item>
<item>334</item>
</integer-array>
Save arrays.xml
Search for them before adding, if these are already there, then skip this process...
- Open colors.xml
Copy the codes below and paste them before </resources>
Code:
<color name="qset_text_color_off">#b3ffffff</color>
<color name="qset_text_color_on">#b3ffffff</color>
<color name="qs_tile_normal">#ff263238</color>
<color name="batterymeter_charge_color">@android:color/white</color>
<color name="batterymeter_bolt_color">#b2000000</color>
Before doing this, search for them seperately , u must not add them twice.. If u find them, change the hex code only..
Save it...
- Open strings.xml
Add the codes below before </resources>
Code:
<string name="battery_meter_very_low_overlay_symbol">!</string>
Save the xml
Skip it if it is already there..
- Go back and open AndroidManifest.xml
Paste these codes below at the bottom before </application>
Code:
<activity android:theme="@style/Theme.Lalalee" android:name="com.android.settings.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
Save the xml
- Now go to smali/com/android/systemui
Open SystemUIService.smali
Copy the codes below and paste them after #virtual methods
Don't forget to add 1 gap after .end method
Code:
.method public FMDProfPic(Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 2431
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 2432
const-string v1, "com.android.systemui"
const-string v2, "com.android.settings.Profile"
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const/high16 v2, 0x1000
invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v0
.line 2433
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
const-string v1, "statusbar"
invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/StatusBarManager;
invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapsePanels()V
.line 1720
return-void
.end method
Done Step 1, u can recompile systemui apk
Wait Wait!!!
If u're a KitKat user, u may get compiling error "no resource found @id/header_settings_button" something like that.. Then follow step 2.. If u hve succefully recompiled then skip that step...
Step 2:
- Download For_KitKat.zip from attachments and copy the files to respective folders
- Navigate to res/values , open ids.xml add the code below before </resources>
Code:
<item type="id" name="header_settings_button">false</item>
Done, Recompile ur systemui...
now u can proceed to Step 3
Step 3:
This step is for Id replacement, u must hve heard about it
- Decompile newly compiled systemUI.apk
- Open LBatteryBar$1.smali in /smali/com/fmd/btn
Search
0x7f020145
replace with the value of
<public type="drawable" name="stat_sys_battery_charge" from your public.xml
Search
0x7f02013c
replace with the value of
<public type="drawable" name="stat_sys_battery" from your public.xml
- Open SlideBrightness.smali in /smali/in/jmkl/dcsms/statusbargreper
Search
0x7f020263
replace with the value of
<public type="drawable" name="progress_horizontal" from your public.xml
Search
0x7f020270
replace with the value of
<public type="drawable" name="thumb" from your public.xml
- Open Profile.smali in /smali/com/android/settings
search code and replace with your public.xml
0x7f04004d = <public type="layout" name="profile_cover"
0x7f08012b = <public type="id" name="photo_picker_cover"
0x7f08012c = <public type="id" name="owner_cover"
0x7f08012d = <public type="id" name="name_field_cover"
0x7f08012e = <public type="id" name="name_edit_cover"
0x7f08012f = <public type="id" name="image_cover"
0x7f020264 = <public type="drawable" name="fmd_me"
- Open ProfilePicture$1.smali in /smali/com/android/settings
search code and replace with your public.xml
0x7f020264 = <public type="drawable" name="fmd_me"
- Open ProfilePicture.smali
Search code and replace with your public.xml
0x7f08000b = <public type="id" name="image"
0x7f020264 = <public type="drawable" name="fmd_me"
Done!!
Now ur Systemui is of FMD panel but the wifi and bt toggles are two, one is that of fmd and 2nd one is of ur stock.... :angel:
So, follow next step...
Step 4:
Open Quicksettings.smali in smali/com/android/systemui/statusbar/phone
For Jellybean -
To remove bluetooth toggle find this-
Code:
bluetoothTile:Lcom/android/systemui/statusbar/phone/QuickSettingsTileView;
then scroll until you find
Code:
Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
delete all that including the invoke
(note: just scroll dont use search button so you won't
get confused)
For data connection toggle find-
Code:
dataconnectiontile:/Lcom/android/systemui/phone/Quicksettingstileview
then scroll until you find this
Code:
invoke-virtual {v0, v7}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
Delete it..
now just search for other tiles that you want to remove in the quicksettings..
For Kitkat-
Copy the line below search for it
Code:
.method private addAudioProfileTile(Landroid/view/ViewGroup;Landroid/view/LayoutInflater;)V
that is the tile of audio profile if you want to remove it from your panel then scroll find this in the method:
Code:
Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
delete that whole line including the .line at the top of it
also delete the gaps because there must be only 1 gap
if you want to delete wifi tile from your panel
then search:
Code:
.method private addWifiTile(Landroid/view/ViewGroup;Landroid/view/LayoutInflater;)V
that is the tile of wifi if you want to remove it from your panel then just find again the this line in the method
Code:
Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
delete that whole line including the .line at the top of it
Do it with all the toggles which u wanna remove
This step is slightly confusing, just skip it if u r not getting
Step 5:
Now What! Recompile ur systemui
Patch ur services.jar, yes! U have edited Androidmanifest.xml , so u gotta sign it with custom signature
Don't know how to patch services.jar.. Just search on XDA, there are many guides
Now make flashable zip of systemUI.apk and flash it.
SystemUi force closed , same as mine! Don't Worry Follow next step
Step 6:
Download fix.zip from attachments below.. Copy png to res/drawable-hdpi folder
Recompile ur systemui.apk and again decomile it
Open SignalToggle in /smali/com/fmd/qset
find 0x7f0201f3
replace with
<public type="drawable" name="stat_sys_signal_null"
from your public.xml
Ah! Done Now. Recompile ur systemui and flash it.. Enjoy
Credits-
Fmd Devs
Klark Luis Peralta
Jeff Rivera
Aljhun Bumaya
b16h22
Maaadr
i m not so cheap to take credit only for sharing it
Just Hit Thank you button if i helped u in anyway
Screenshots
Great work..
Thanks bhai for your grat work.....
Help Required...
I tried steps as in the tutorial but im not able to recompile after step 1... its says @style/TextAppearance.QuickSettings no resources found that matches the name. ... am i doing sumething wrong?? plz help.... thanx
Gokulb1 said:
I tried steps as in the tutorial but im not able to recompile after step 1... its says @style/TextAppearance.QuickSettings no resources found that matches the name. ... am i doing sumething wrong?? plz help.... thanx
Click to expand...
Click to collapse
have add that line on your style?
There is a guide similar to this on XDA already but it didn't work for some of the members. You can leave your guide so that others may try.I know I will. Thanks and keep up tew good work. :good:
Ran out of thanks will thank you tomorrow
nophyan said:
have add that line on your style?
Click to expand...
Click to collapse
Yes bro...in the first step its there... if i delete that i get many other errors...
Help
I tried but got too many errors and didn't know how to solve them. Can i make a request that you do it for me and send back please. Here are the files and recompiling log from Tickle my Android. SystemUI.apk
Note: This might help, I have an Alcatel device so that means i have a custpack partition. In the custpack partition there is an apk file where the resources (res folder) for the SystemUI.apk is. It is called SystemUI-res.apk. So when decompiling you have to add the AndroidManifest.xml inside the apk before decompiling and remove it after recompiling. The files I've attached I've already done that for you so it would be great if someone can made the Android L for me .
Samsung SystemUI Support?
Is this method support samsung SystemUI..???
nashj1975 said:
I tried but got too many errors and didn't know how to solve them. Can i make a request that you do it for me and send back please. Here are the files and recompiling log from Tickle my Android. SystemUI.apk
Note: This might help, I have an Alcatel device so that means i have a custpack partition. In the custpack partition there is an apk file where the resources (res folder) for the SystemUI.apk is. It is called SystemUI-res.apk. So when decompiling you have to add the AndroidManifest.xml inside the apk before decompiling and remove it after recompiling. The files I've attached I've already done that for you so it would be great if someone can made the Android L for me .
Click to expand...
Click to collapse
Same problem here, does anyone have a solution?
http://pastebin.com/n0bZM60N
edit: found a solution in post http://forum.xda-developers.com/showpost.php?p=61808403&postcount=18
QuBeX said:
Same problem here, does anyone have a solution?
http://pastebin.com/n0bZM60N
Click to expand...
Click to collapse
I googled one of your errors this one
Code:
Error for input '.parameter': Invalid directive
and i realized that you need to use apktool 1.5.2 and not 2.0. Sadly I couldn't find anything with the other error
nashj1975 said:
I googled one of your errors this one
Code:
Error for input '.parameter': Invalid directive
and i realized that you need to use apktool 1.5.2 and not 2.0. Sadly I couldn't find anything with the other error
Click to expand...
Click to collapse
Yeah i googled it also, .parameter lines are for debugging so you can delete them all, or use baksmali instead of apktool.
Then the no viable alternative at input 'dx' is a syntax error, in the code it is like this .local v1, dy:F but you need to put " " at the dx in this case: .local v1, "dy":F
Gokulb1 said:
Yes bro...in the first step its there... if i delete that i get many other errors...
Click to expand...
Click to collapse
Make sure you merged all the files from the res folder into your res folder in SystemUI.apk
---------- Post added at 02:43 PM ---------- Previous post was at 02:41 PM ----------
QuBeX said:
Yeah i googled it also, .parameter lines are for debugging so you can delete them all, or use baksmali instead of apktool.
Then the no viable alternative at input 'dx' is a syntax error, in the code it is like this .local v1, dy:F but you need to put " " at the dx in this case: .local v1, "dy":F
Click to expand...
Click to collapse
Seems like a lot and i don't know much, hardly anything about smali code. So I'm hoping someone can patch my SystemUI.apk :fingers-crossed:
BRoy_98 said:
Is this method support samsung SystemUI..???
Click to expand...
Click to collapse
I think so... Give a try
@itsraj011 Can you help me? Are you in the process of helping? If so then my bad.
itsraj011 said:
I think so... Give a try
Click to expand...
Click to collapse
Hi, I am getting some error... Log is in attachment. Please help me.
QuBeX said:
Yeah i googled it also, .parameter lines are for debugging so you can delete them all, or use baksmali instead of apktool.
Then the no viable alternative at input 'dx' is a syntax error, in the code it is like this .local v1, dy:F but you need to put " " at the dx in this case: .local v1, "dy":F
Click to expand...
Click to collapse
Hi bro, can you tell me how to use baksmali to recompile it..???
BRoy_98 said:
Hi bro, can you tell me how to use baksmali to recompile it..???
Click to expand...
Click to collapse
Ok, the problem is that the smali code in the systemuifiles.zip has an old syntax...
Here is what i did:
1.- Baksmali SystemUI.apk classes.dex with baksmali 1.4.2
2.- Merge smali files from systemuifiles.zip
3.- Smali the folder with smali 1.4.2 and get a new-classes.dex
4.- Baksmali the new-classes.dex with baksmali 2.06 into a folder called "new-smali"
5.- Decompile SystemUI.apk with latest apktool
6.- Delete smali folder from working folder and copy new-smali folder into apktool working folder (renaming it to smali)
7.- Make all the changes
8.- Recompile with latest apktool
That should work, anyway I couldn't get it to work, after patching services.jar and pushing both systemui and services to the device the status bar doesn't change... Don't know why
QuBeX said:
Ok, the problem is that the smali code in the systemuifiles.zip has an old syntax...
Here is what i did:
1.- Baksmali SystemUI.apk classes.dex with baksmali 1.4.2
2.- Merge smali files from systemuifiles.zip
3.- Smali the folder with smali 1.4.2 and get a new-classes.dex
4.- Baksmali the new-classes.dex with baksmali 2.06 into a folder called "new-smali"
5.- Decompile SystemUI.apk with latest apktool
6.- Delete smali folder from working folder and copy new-smali folder into apktool working folder (renaming it to smali)
7.- Make all the changes
8.- Recompile with latest apktool
That should work, anyway I couldn't get it to work, after patching services.jar and pushing both systemui and services to the device the status bar doesn't change... Don't know why
Click to expand...
Click to collapse
I asked what are the commands to use the baksmali.jar or smali.jar..? Did you seen my log..?? Can you tell me what should I do??
nashj1975 said:
@itsraj011 Can you help me? Are you in the process of helping? If so then my bad.
Click to expand...
Click to collapse
U r getting error in styles.xml if I m right.. Search for the lines before adding them. Only change their values if it is already there Or wait for some days, I'll do it for u when i shall get time

[MOD][GUIDE][SYSTEMUI] Header Machine

Hi all, this time I want to provide a "Header Machine Guide", this guide for change the background of Expanded Header.. Hopefully it works for all ..
This guide is based on the Asus Zenfone 4S (T00Q) Lollipop firmware.
Feature:
Header BG with option (Default, Color, BG Picker, Timer/Omni)
Header BG Timer/Omni style (Default, Modern, Poly)
Header BG alpha
Header BG animation
Enable/disable blur BG
Add options to set date for Idul Fitri, Idul Adha and birthday
Add Blur BG preview
Requirement:
- Understanding about APK compile/decompile
- APKTool
- Notepad++ (PC)
Step:
Part AsusSystemUI:
1. Decompile AsusSystemUI.apk
2. Copy smali and res folder from guide to your systemui.. Overwrite if exist..
3. Open AndroidManifest.xml
Find:
Code:
<activity android:excludeFromRecents="true" android:name="com.android.keyguard.KeyguardIntruderView" android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
Add this just below:
Code:
<activity android:theme="@android:style/Theme.Holo" android:label="Header Machine Preference" android:icon="@null" android:name="com.bamzzz.prefs.HeaderMachineActivity" android:excludeFromRecents="true" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
4. Open res/layout/asus_status_bar_expanded_header.xml (Asus) or status_bar_expanded_header.xml (Other phone)
Find:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.StatusBarHeaderView android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/header" android:background="@null" android:paddingBottom="@dimen/asus_quicksetting_panel_header_padding_bottom" android:focusable="true" android:clickable="true" android:layout_width="@dimen/notification_panel_width" android:layout_height="@dimen/asus_status_bar_header_height" android:baselineAligned="false" android:paddingStart="@dimen/notification_side_padding" android:paddingEnd="@dimen/notification_side_padding"
xmlns:android="http://schemas.android.com/apk/res/android">
Add this just below:
Code:
<com.bamzzz.HeaderMachine android:id="@id/header_machine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:scaleType="fitXY"
android:adjustViewBounds="true" />
For Asus Zenfone only:
Find:
Code:
<Button android:textSize="@dimen/asus_notification_clear_all_text_size" android:textColor="@color/asus_notification_clear_all_text_color" android:id="@id/clear_all_button" android:background="@drawable/ic_notify_clear" android:layout_width="wrap_content" android:layout_height="@dimen/asus_notification_clear_all_height" android:text="@string/status_bar_clear_all_button" android:layout_alignParentBottom="true" android:contentDescription="@string/accessibility_clear_all" android:fontFamily="sans-serif" android:layout_marginEnd="@dimen/asus_quicksetting_button_margin_right" android:layout_alignParentEnd="true" />
Add this after "<Button "
Code:
android:layout_marginBottom="@dimen/asus_quicksetting_panel_header_padding_bottom"
Looks like this:
Code:
<Button [COLOR="Blue"]android:layout_marginBottom="@dimen/asus_quicksetting_panel_header_padding_bottom"[/COLOR] android:textSize="@dimen/asus_notification_clear_all_text_size" android:textColor="@color/asus_notification_clear_all_text_color" android:id="@id/clear_all_button" android:background="@drawable/ic_notify_clear" android:layout_width="wrap_content" android:layout_height="@dimen/asus_notification_clear_all_height" android:text="@string/status_bar_clear_all_button" android:layout_alignParentBottom="true" android:contentDescription="@string/accessibility_clear_all" android:fontFamily="sans-serif" android:layout_marginEnd="@dimen/asus_quicksetting_button_margin_right" android:layout_alignParentEnd="true" />
5. Open res/values/ids.xml and add this:
Code:
<item type="id" name="header_machine">false</item>
<item type="id" name="header_machine_layout">false</item>
<item type="id" name="header_machine_time_title">false</item>
<item type="id" name="header_machine_idul_fitri_text">false</item>
<item type="id" name="header_machine_idul_fitri_button">false</item>
<item type="id" name="header_machine_idul_adha_text">false</item>
<item type="id" name="header_machine_idul_adha_button">false</item>
<item type="id" name="header_machine_birthday_text">false</item>
<item type="id" name="header_machine_birthday_button">false</item>
<item type="id" name="header_machine_background_title">false</item>
<item type="id" name="header_machine_background_content">false</item>
<item type="id" name="header_machine_checkBlur">false</item>
<item type="id" name="header_machine_background_button_pick">false</item>
<item type="id" name="header_machine_background_button_set">false</item>
<item type="id" name="header_machine_tip_text">false</item>
6. This step should not be applied !!! Especially for Asus Zenfone, is used to remove the default background or default theme:
Open /smali/com/android/systemui/statusbar/phone/StatusBarHeaderView.smali
Find:
Code:
# instance fields
Add this just below:
Code:
.field private mHeaderMachine:I
Find:
Code:
.method private setImageViewDrawable()V
Then find:
Code:
invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setBackground(Landroid/graphics/drawable/Drawable;)V
Add this just above:
Code:
iget v8, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mHeaderMachine:I
const/4 v9, 0x0
if-ne v8, v9, :cond_brut
const-string v8, "BamzzzHeaderMachine"
new-instance v9, Ljava/lang/StringBuilder;
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
const-string v10, "Header Machine disable -> "
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v9
iget v10, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mHeaderMachine:I
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v9
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v9
invoke-static {v8, v9}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
Find again:
Code:
invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setBackground(Landroid/graphics/drawable/Drawable;)V
Add this just below:
Code:
goto :goto_brutt
:cond_brut
const-string v8, "BamzzzHeaderMachine"
new-instance v9, Ljava/lang/StringBuilder;
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
const-string v10, "Header Machine enable -> "
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v9
iget v10, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mHeaderMachine:I
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v9
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v9
invoke-static {v8, v9}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
const/4 v8, 0x0
invoke-virtual {p0, v8}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setBackgroundResource(I)V
:goto_brutt
Find:
Code:
.line 199
.local v8, "paddingBottom":I
const/4 v12, 0x0
invoke-virtual {p0, v7, v12, v7, v8}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setPaddingRelative(IIII)V
.line 200
return-void
Above it add:
Code:
const/4 v8, 0x0
Find:
Code:
.method public updateEverything()V
Above return void add:
Code:
invoke-static {}, Lcom/bamzzz/HeaderMachine;->getVisibilities()I
move-result v0
iput v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mHeaderMachine:I
invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setImageViewDrawable()V
7. Recompile SystemUI, then push and reboot phone.
8. Done
Part Settings:
Goto post 2
Attention: Don't rename or modify path of smali from this guide without my permissions !!!
Header Machine demo video: https://youtu.be/TaFGTlTdrMI
Created by [email protected]
fb.me/bamz4ever
http://forum.xda-developers.com/member.php?u=4672359
ZenControl by [email protected] & [email protected]
http://forum.xda-developers.com/android/apps-games/app-rom-control-app-devs-t3146567
Idea from StatusBar Header Machine and some drawables and some methods from OmniROM Project
Thanks to SyahrulLail for idea of Date picker preference
Part Settings
Optional..!!! You can using ZenControl.apk (Lollipop only) or/and include preference into Settings.apk
Add Preference using ZenControl.apk :
1. Decompile ZenControl.apk
2. Open res/xml/dropdown_prefs.xml and add this:
Code:
<PreferenceScreen android:title="@string/header_machine_title" android:summary="@string/header_machine_summary">
<PreferenceCategory android:title="@string/header_machine_title" />
<com.wubydax.romcontrol.prefs.MyListPreference
android:entries="@array/header_machine_style_entries"
android:title="@string/header_machine_style_title"
android:key="header_machine_style"
android:defaultValue="3"
android:entryValues="@array/header_machine_style_values" />
<com.wubydax.romcontrol.prefs.MyListPreference
android:entries="@array/header_machine_bg_style_entries"
android:title="@string/header_machine_bg_style_title"
android:key="header_machine_bg_style"
android:defaultValue="1"
android:entryValues="@array/header_machine_bg_style_values" />
<com.wubydax.romcontrol.prefs.ColorPickerPreference
android:title="@string/header_machine_color_title"
android:key="header_machine_color"
android:defaultValue="\#00000000"
alphaSlider="true" />
<com.wubydax.romcontrol.prefs.SeekBarPreference
android:icon="@null"
android:max="255"
android:title="@string/header_machine_bg_alpha_title"
android:key="header_machine_bg_image_alpha"
android:defaultValue="100"
min="0"
unitsRight="" />
<CheckBoxPreference
android:defaultValue="false"
android:title="@string/header_machine_bg_animated_title"
android:key="header_machine_bg_animated"
android:summaryOn="@string/header_machine_enable"
android:summaryOff="@string/header_machine_disable" />
<CheckBoxPreference
android:defaultValue="false"
android:title="@string/header_machine_bg_image_blur_title"
android:key="header_machine_bg_image_blur"
android:summaryOn="@string/header_machine_enable"
android:summaryOff="@string/header_machine_disable" />
<PreferenceScreen
android:summary="@string/header_machine_preference_summary"
android:title="@string/header_machine_preference_title">
<intent
android:targetClass="com.bamzzz.prefs.HeaderMachineActivity"
android:targetPackage="com.android.systemui" />
</PreferenceScreen>
</PreferenceScreen>
3. Open res/values/strings.xml then add this:
Code:
<string name="header_machine_title">Header Machine</string>
<string name="header_machine_summary">Enable various bg options in expanded header</string>
<string name="header_machine_style_title">Header Machine Style</string>
<string name="header_machine_style_1_title">Default</string>
<string name="header_machine_style_2_title">Color</string>
<string name="header_machine_style_3_title">Custom Image</string>
<string name="header_machine_style_4_title">Timer (OMNI)</string>
<string name="header_machine_bg_style_title">Timer Background Style</string>
<string name="header_machine_bg_style_1_title">Default</string>
<string name="header_machine_bg_style_2_title">Modern</string>
<string name="header_machine_bg_style_3_title">Poly HD</string>
<string name="header_machine_color_title">Header Color</string>
<string name="header_machine_bg_alpha_title">Header BG Alpha</string>
<string name="header_machine_bg_animated_title">BG Animated</string>
<string name="header_machine_bg_image_blur_title">Blur BG</string>
<string name="header_machine_enable">Enable</string>
<string name="header_machine_disable">Disable</string>
<string name="header_machine_preference_title">Header Machine Preference</string>
<string name="header_machine_preference_summary">Set Header Machine Date and Custom Image Background</string>
4. Open res/values/arrays.xml and add this:
Code:
<string-array name="header_machine_bg_style_entries">
<item>@string/header_machine_bg_style_1_title</item>
<item>@string/header_machine_bg_style_2_title</item>
<item>@string/header_machine_bg_style_3_title</item>
</string-array>
<string-array name="header_machine_bg_style_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<string-array name="header_machine_style_entries">
<item>@string/header_machine_style_1_title</item>
<item>@string/header_machine_style_2_title</item>
<item>@string/header_machine_style_3_title</item>
<item>@string/header_machine_style_4_title</item>
</string-array>
<string-array name="header_machine_style_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
5. Recompile ZenControl..
6. Install ZenControl.apk
Add Preference include settings:
1. First apply my guide: http://forum.xda-developers.com/zenfone-4/themes-apps/guide-easy-preference-control-t3317849
2. Open res/xml/zen_prefs.xml and add this
Code:
<PreferenceScreen android:title="@string/header_machine_title" android:summary="@string/header_machine_summary">
<com.android.settings.bamzzz.prefs.MyListPreference
android:entries="@array/header_machine_style_entries"
android:title="@string/header_machine_style_title"
android:key="header_machine_style"
android:defaultValue="3"
android:entryValues="@array/header_machine_style_values" />
<com.android.settings.bamzzz.prefs.MyListPreference
android:entries="@array/header_machine_bg_style_entries"
android:title="@string/header_machine_bg_style_title"
android:key="header_machine_bg_style"
android:defaultValue="1"
android:entryValues="@array/header_machine_bg_style_values" />
<com.android.settings.bamzzz.prefs.ColorPickerPreference
android:title="@string/header_machine_color_title"
android:key="header_machine_color"
android:defaultValue="\#00000000"
alphaSlider="true" />
<com.android.settings.bamzzz.prefs.SeekBarPreference
android:icon="@null"
android:max="255"
android:title="@string/header_machine_bg_alpha_title"
android:key="header_machine_bg_image_alpha"
android:defaultValue="100"
min="0"
unitsRight="" />
<CheckBoxPreference
android:defaultValue="false"
android:title="@string/header_machine_bg_animated_title"
android:key="header_machine_bg_animated"
android:summaryOn="@string/header_machine_enable"
android:summaryOff="@string/header_machine_disable" />
<CheckBoxPreference
android:defaultValue="false"
android:title="@string/header_machine_bg_image_blur_title"
android:key="header_machine_bg_image_blur"
android:summaryOn="@string/header_machine_enable"
android:summaryOff="@string/header_machine_disable" />
<PreferenceScreen
android:summary="@string/header_machine_preference_summary"
android:title="@string/header_machine_preference_title">
<intent
android:targetClass="com.bamzzz.prefs.HeaderMachineActivity"
android:targetPackage="com.android.systemui" />
</PreferenceScreen>
</PreferenceScreen>
3. Open res/values/strings.xml and add this:
Code:
<string name="header_machine_title">Header Machine</string>
<string name="header_machine_summary">Enable various bg options in expanded header</string>
<string name="header_machine_style_title">Header Machine Style</string>
<string name="header_machine_style_1_title">Default</string>
<string name="header_machine_style_2_title">Color</string>
<string name="header_machine_style_3_title">Custom Image</string>
<string name="header_machine_style_4_title">Timer (OMNI)</string>
<string name="header_machine_bg_style_title">Timer Background Style</string>
<string name="header_machine_bg_style_1_title">Default</string>
<string name="header_machine_bg_style_2_title">Modern</string>
<string name="header_machine_bg_style_3_title">Poly HD</string>
<string name="header_machine_color_title">Header Color</string>
<string name="header_machine_bg_alpha_title">Header BG Alpha</string>
<string name="header_machine_bg_animated_title">BG Animated</string>
<string name="header_machine_bg_image_blur_title">Blur BG</string>
<string name="header_machine_enable">Enable</string>
<string name="header_machine_disable">Disable</string>
<string name="header_machine_preference_title">Header Machine Preference</string>
<string name="header_machine_preference_summary">Set Header Machine Date and Custom Image Background</string>
4. Open res/values/arrays.xml and add this:
Code:
<string-array name="header_machine_bg_style_entries">
<item>@string/header_machine_bg_style_1_title</item>
<item>@string/header_machine_bg_style_2_title</item>
<item>@string/header_machine_bg_style_3_title</item>
</string-array>
<string-array name="header_machine_bg_style_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<string-array name="header_machine_style_entries">
<item>@string/header_machine_style_1_title</item>
<item>@string/header_machine_style_2_title</item>
<item>@string/header_machine_style_3_title</item>
<item>@string/header_machine_style_4_title</item>
</string-array>
<string-array name="header_machine_style_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
5. Compile Settings. Done.
Attention: Don't rename or modify path of smali from this guide without my permissions !!!
Fix header machine on some devices
Fix header machine on some devices
Download attached file (smaliheader2.zip) and overwrite existing smali.. Then
Replace old script from statusbar_expanded_header.xml with this:
Code:
<com.bamzzz.HeaderMachine
android:id="@id/header_machine"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
Rebuild your SystemUI.. Done.
nicee niceee niceeeeeeeee :3
Yeay mas octo..
Why not for Asus ZenFone 400cg... and is there any way to change battery icon without xposed and disable headsup notification ( except calls ) with out xposed
....
Sent from my ASUS_T00I using XDA Free mobile app
Bro its affect on my notification bg ...my header is still black can you please help me
bamzzz said:
Hi all, this time I want to provide a "Header Machine Guide", this guide for change the background of Expanded Header.. Hopefully it works for all ..
This guide is based on the Asus Zenfone 4S (T00Q) Lollipop firmware.
Feature:
Header BG with option (Default, Color, BG Picker, Timer/Omni)
Header BG Timer/Omni style (Default, Modern, Poly)
Header BG alpha
Header BG animation
Enable/disable blur BG
Add options to set date for Idul Fitri, Idul Adha and birthday
Add Blur BG preview
Requirement:
- Understanding about APK compile/decompile
- APKTool
- Notepad++ (PC)
Step:
Part AsusSystemUI:
1. Decompile AsusSystemUI.apk
2. Copy smali and res folder from guide to your systemui.. Overwrite if exist..
3. Open AndroidManifest.xml
Find:
Code:
<activity android:excludeFromRecents="true" android:name="com.android.keyguard.KeyguardIntruderView" android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
Add this just below:
Code:
<activity android:theme="@android:style/Theme.Holo" android:label="Header Machine Preference" android:icon="@null" android:name="com.bamzzz.prefs.HeaderMachineActivity" android:excludeFromRecents="true" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
4. Open res/layout/asus_status_bar_expanded_header.xml (Asus) or status_bar_expanded_header.xml (Other phone)
Find:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.StatusBarHeaderView android:layout_gravity="@integer/notification_panel_layout_gravity" android:id="@id/header" android:background="@null" android:paddingBottom="@dimen/asus_quicksetting_panel_header_padding_bottom" android:focusable="true" android:clickable="true" android:layout_width="@dimen/notification_panel_width" android:layout_height="@dimen/asus_status_bar_header_height" android:baselineAligned="false" android:paddingStart="@dimen/notification_side_padding" android:paddingEnd="@dimen/notification_side_padding"
xmlns:android="http://schemas.android.com/apk/res/android">
Add this just below:
Code:
<com.bamzzz.HeaderMachine android:id="@id/header_machine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:scaleType="fitXY"
android:adjustViewBounds="true" />
For Asus Zenfone only:
Find:
Code:
<Button android:textSize="@dimen/asus_notification_clear_all_text_size" android:textColor="@color/asus_notification_clear_all_text_color" android:id="@id/clear_all_button" android:background="@drawable/ic_notify_clear" android:layout_width="wrap_content" android:layout_height="@dimen/asus_notification_clear_all_height" android:text="@string/status_bar_clear_all_button" android:layout_alignParentBottom="true" android:contentDescription="@string/accessibility_clear_all" android:fontFamily="sans-serif" android:layout_marginEnd="@dimen/asus_quicksetting_button_margin_right" android:layout_alignParentEnd="true" />
Add this after "<Button "
Code:
android:layout_marginBottom="@dimen/asus_quicksetting_panel_header_padding_bottom"
Looks like this:
Code:
<Button [COLOR="Blue"]android:layout_marginBottom="@dimen/asus_quicksetting_panel_header_padding_bottom"[/COLOR] android:textSize="@dimen/asus_notification_clear_all_text_size" android:textColor="@color/asus_notification_clear_all_text_color" android:id="@id/clear_all_button" android:background="@drawable/ic_notify_clear" android:layout_width="wrap_content" android:layout_height="@dimen/asus_notification_clear_all_height" android:text="@string/status_bar_clear_all_button" android:layout_alignParentBottom="true" android:contentDescription="@string/accessibility_clear_all" android:fontFamily="sans-serif" android:layout_marginEnd="@dimen/asus_quicksetting_button_margin_right" android:layout_alignParentEnd="true" />
5. Open res/values/ids.xml and add this:
Code:
<item type="id" name="header_machine">false</item>
<item type="id" name="header_machine_layout">false</item>
<item type="id" name="header_machine_time_title">false</item>
<item type="id" name="header_machine_idul_fitri_text">false</item>
<item type="id" name="header_machine_idul_fitri_button">false</item>
<item type="id" name="header_machine_idul_adha_text">false</item>
<item type="id" name="header_machine_idul_adha_button">false</item>
<item type="id" name="header_machine_birthday_text">false</item>
<item type="id" name="header_machine_birthday_button">false</item>
<item type="id" name="header_machine_background_title">false</item>
<item type="id" name="header_machine_background_content">false</item>
<item type="id" name="header_machine_checkBlur">false</item>
<item type="id" name="header_machine_background_button_pick">false</item>
<item type="id" name="header_machine_background_button_set">false</item>
<item type="id" name="header_machine_tip_text">false</item>
6. This step should not be applied !!! Especially for Asus Zenfone, is used to remove the default background or default theme:
Open /smali/com/android/systemui/statusbar/phone/StatusBarHeaderView.smali
Find:
Code:
# instance fields
Add this just below:
Code:
.field private mHeaderMachine:I
Find:
Code:
.method private setImageViewDrawable()V
Then find:
Code:
invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setBackground(Landroid/graphics/drawable/Drawable;)V
Add this just above:
Code:
iget v8, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mHeaderMachine:I
const/4 v9, 0x0
if-ne v8, v9, :cond_brut
const-string v8, "BamzzzHeaderMachine"
new-instance v9, Ljava/lang/StringBuilder;
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
const-string v10, "Header Machine disable -> "
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v9
iget v10, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mHeaderMachine:I
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v9
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v9
invoke-static {v8, v9}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
Find again:
Code:
invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setBackground(Landroid/graphics/drawable/Drawable;)V
Add this just below:
Code:
goto :goto_brutt
:cond_brut
const-string v8, "BamzzzHeaderMachine"
new-instance v9, Ljava/lang/StringBuilder;
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
const-string v10, "Header Machine enable -> "
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v9
iget v10, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mHeaderMachine:I
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v9
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v9
invoke-static {v8, v9}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
const/4 v8, 0x0
invoke-virtual {p0, v8}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setBackgroundResource(I)V
:goto_brutt
Find:
Code:
.line 199
.local v8, "paddingBottom":I
const/4 v12, 0x0
invoke-virtual {p0, v7, v12, v7, v8}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setPaddingRelative(IIII)V
.line 200
return-void
Above it add:
Code:
const/4 v8, 0x0
Find:
Code:
.method public updateEverything()V
Above return void add:
Code:
invoke-static {}, Lcom/bamzzz/HeaderMachine;->getVisibilities()I
move-result v0
iput v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mHeaderMachine:I
invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setImageViewDrawable()V
7. Recompile SystemUI, then push and reboot phone.
8. Done
Part Settings:
Goto post 2
Attention: Don't rename or modify path of smali from this guide without my permissions !!!
Header Machine demo video: https://youtu.be/TaFGTlTdrMI
Created by [email protected]
fb.me/bamz4ever
http://forum.xda-developers.com/member.php?u=4672359
ZenControl by [email protected] & [email protected]
http://forum.xda-developers.com/android/apps-games/app-rom-control-app-devs-t3146567
Idea from StatusBar Header Machine and some drawables and some methods from OmniROM Project
Thanks to SyahrulLail for idea of Date picker preference
Click to expand...
Click to collapse
I cant
Find: the Code:
<activity android:excludeFromRecents="true" android:name="com.android.keyguard.KeyguardIntruderView" android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
and then I also add the code
<activity android:theme="@android:style/Theme.Holo" android:label="Header Machine Preference" android:icon="@null" android:name="com.bamzzz.prefs.HeaderMachineActivity" android:excludeFromRecents="true" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
,I finish all the guide,I find that Blur Bg cant work, I also cant find Header machine preference MENU in the setting,can you help me,send from my aosp lollipop.
Someone tell me how to make so that the picture overlaps the area allocated for the screenshot?
Baru jajal...?
.Nice guide mbah..?
Sent from my A75 using XDA-Developers Legacy app
@bamzzz
I'm using Asus Padfone S 4.4.2, and I found out there are two related xmls there:
Code:
asus_status_bar_expanded_header.xml
status_bar_expanded_header.xml
Which one should I edit? Could you tell me why there are two similar function xmls existing there, is it the feature of Asus UI?
By the way, do you konw how to change navbar size in Asus UI? I already tried to mod related strings in framework-res.apk, but only the change of status bar worked, the navbar ones didn't.
Big appreciate for your magic:good:
Nice work sir. I like this mod but i never succeeded in Header Machine Preference section in Rom Control
awatheeye said:
Nice work sir. I like this mod but i never succeeded in Header Machine Preference section in Rom Control
Click to expand...
Click to collapse
I will appreciate more if you put everything needed in zen control and upload for downloading because my major problem is with the intent area as seen in my attachment.
Thanks nice
nice
can u give me a clue this guide to apply on miui rom...???

Categories

Resources