[Guide]4.2.2 Statusbar For Stock roms [COOL][GB]V3 - Galaxy Ace S5830 Themes and Apps

How to add 4.2.2 Statusbar to youre GingerBread rom
In this guide i will show u how to add 4.2.2 statusbar
Currently only for samsung roms.
Files to be modded ?
SystemUI.apk
Code:
[LIST=1]
[*]res/layout/statusbar.xml
[*]res/layout/status_bar_expanded.xml
[*]res/layout/status_bar_tracking.xml
[*]res/Values/ids.xml
[*]res/Values/strings.xml
[*]res/Values/styles.xml
[*]smali/com/android/systemui/statusbar/StatusBarService.smali
[/LIST]
Whatt files do we add ? *u get these in a ZIP file so u can replace
Code:
[LIST=1]
[*]smali/com/android/systemui/statusbar/StatusBarServiceLRPull.smali
[*]smali/com/android/systemui/statusbar/SpaceCakerJBheader.smali
[*]smali/in <this is a folder for Update Activity and possible add on if u want to add stausbargreper >
[*]smali/com/spacecaker/ButtonBurst.smali
[*]smali/com/spacecaker/ButtonBurst$1.smali
[*]smali/com/spacecaker/SpaceLayOut.smali
[*]smali/com/spacecaker/SpaceLayOut$1.smali
[*]res/layout/jb_headerview.xml
[*]res/layout/quickpanel_quick_settings_space.xml
[*]res/drawable/tw_btn_default_small.xml
[*]res/drawable/btn_prof.xml
[*]res/drawable/ic_notify_quicksettings.xml
[*]res/drawable/set.xml
[*]res/drawable/status_bar_close.xml
[*]res/drawable/tw_btn_default_small
[*]res/drawable-hdpi/btn_tg.png
[*]res/drawable-hdpi/btn_toggles_normal.png
[*]res/drawable-hdpi/ic_notify_quicksettings_normal.png
[*]res/drawable-hdpi/ic_notify_quicksettings_pressed.png
[*]res/drawable-hdpi/quickpanel_title_background.9.png
[*]res/drawable-hdpi/title_jb_bar_header.9.png
[*]res/drawable-mdpi/btn_tg.png
[*]res/drawable-mdpi/btn_toggles_normal.png
[*]res/drawable-mdpi/brightness_normal.png
[*]res/drawable-mdpi/brightness_pressed.png
[*]res/drawable-mdpi/btn_set_normal.png
[*]res/drawable-mdpi/btn_set_pressed.png
[*]res/drawable-mdpi/my_prof_normal.png
[*]res/drawable-mdpi/my_prof_pressed.png
[*]res/drawable-mdpi/quickpanel_icon_bluetooth_off.png
[*]res/drawable-mdpi/quickpanel_icon_bluetooth_on.png
[*]res/drawable-mdpi/quickpanel_icon_data_off.png
[*]res/drawable-mdpi/quickpanel_icon_data_on.png
[*]res/drawable-mdpi/quickpanel_icon_gps_off.png
[*]res/drawable-mdpi/quickpanel_icon_gps_on.png
[*]res/drawable-mdpi/quickpanel_icon_rotation_off.png
[*]res/drawable-mdpi/quickpanel_icon_rotation_on.png
[*]res/drawable-mdpi/quickpanel_icon_silent_off.png
[*]res/drawable-mdpi/quickpanel_icon_sound_vibration_off_2.png
[*]res/drawable-mdpi/quickpanel_icon_sound_on_on.png
[*]res/drawable-mdpi/quickpanel_icon_sound_vibration_on.png
[*]res/drawable-mdpi/quickpanel_icon_vibration_off.png
[*]res/drawable-mdpi/quickpanel_icon_wifi_off.png
[*]res/drawable-mdpi/quickpanel_icon_wifi_on.png
[*]res/drawable-mdpi/quickpanel_plmn_background.png
[*]res/drawable-mdpi/quickpanel_quick_settings_background.png
[*]res/drawable-mdpi/status_bar_background.png * remove the old .9.png of this if its not there its ok *
[*]res/drawable-mdpi/status_bar_close_off.png * remove the old .9.png of this if its not there its ok *
[*]res/drawable-mdpi/status_bar_close_on.png * remove the old .9.png of this if its not there its ok *
[*]res/drawable-mdpi/tile_toggle.png
[*]res/drawable-mdpi/tw_quick_panel_clearbtn_focus.9.png
[*]res/drawable-mdpi/tw_quick_panel_clearbtn_normal.9.png
[*]res/drawable-mdpi/tw_quick_panel_clearbtn_press.9.png
[*]res/drawable-mdpi/tw_quick_panel_clearbtn_select.9.png
[*]res/layout/jb_headerview.xml
[*]res/layout/quickpanel_quick_settings_space.xml
[/LIST]
Ok now we are going to modify the
Status_bar_Tracking.xml
Make it look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:background="#ff171b1e" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CarrierLabel android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:textColor="#00000000" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="24.0dip" />
<com.android.systemui.statusbar.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:background="#ffdf7c0d" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="32.0dip">
<ImageView android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="32.0dip" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
Next is
Statusbar.xm
abovel
Code:
com.android.systemui.statusbar.IconMerger
u will see something likes this
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/icons"
Make sure the Android:[email protected]/icons"is present
make sure the above looks now like this
Code:
[B][COLOR="RoyalBlue"]<com.android.systemui.statusbar.StatusBarServiceLRPull android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR][/B]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
[COLOR="RoyalBlue"][B] </com.android.systemui.statusbar.StatusBarServiceLRPull>[/B][/COLOR]
So it will look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="RoyalBlue"][B] <com.android.systemui.statusbar.StatusBarServiceLRPull android:layout_width="fill_parent" android:layout_height="wrap_content">][/B][/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
[B][COLOR="RoyalBlue"] </com.android.systemui.statusbar.StatusBarServiceLRPull>[/COLOR][/B]
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:background="#ff000000" android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="left|center" android:id="@id/date" android:background="#00000000" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
Now we are going to modify
Status_bar_expanded.xml
Make sure it looks something like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_alignParentTop="true" style="@*android:style/Theme.NoTitleBar.Fullscreen"
xmlns:android="http://schemas.android.com/apk/res/android">
[B][COLOR="RoyalBlue"]<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<include layout="@layout/jb_headerview" android:id="@id/spaceybeaneyheader" android:layout_width="fill_parent" android:layout_height="48.0dip" />
</RelativeLayout>[/COLOR][/B]
[COLOR="RoyalBlue"][B] <com.spacecaker.SpaceLayOut android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/quickpanel_quick_settings_space" />
</LinearLayout>[/B][/COLOR]
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="6.0dip">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<Button android:textSize="16.0sp" android:textColor="#ffadc1d6" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="@dimen/status_bar_expanded_clear_button_width" android:layout_height="fill_parent" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" style="@style/S3.Clear" />
</RelativeLayout>
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/blank" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
[B][COLOR="RoyalBlue"] </com.spacecaker.SpaceLayOut>[/COLOR][/B]
</com.android.systemui.statusbar.ExpandedView>
What i have done is adding new
Code:
<com.spacecaker.SpaceLayOut android:layout_width="fill_parent" android:layout_height="fill_parent">
</com.spacecaker.SpaceLayOut>
lines + use other xml to load Quickpanel and JB header
to make it look much cleaner
Now we are going to
res/values/ids.xml
and we are going to add these ids
Code:
<item type="id" name="spaceybeaneyheader">false</item>
<item type="id" name="settings_button">false</item>
<item type="id" name="jbclock">false</item>
<item type="id" name="spacebuttonburst">false</item>
<item type="id" name="recent_app_button">false</item>
Now go to
res/values/strings.xml and we add these lines
Code:
<string name="accessibility_clear_all">Clear</string>
<string name="accessibility_settings_button">System settings.</string>
<string name="status_bar_date_formatter">"%1$s
%2$s"</string>
Now go to
res/values/Styles.xml
and add
this to the end of file
Code:
<style name="S3.Clear" parent="@*android:style/Widget.Button">
<item name="android:textAppearance">?android:textAppearanceSmallInverse</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:gravity">center</item>
<item name="android:background">@drawable/tw_btn_default_small</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
</style>
Now add all the Files i have given in the attachement *Space_Adds.zip*
and compile the apk
if u get a error do describe it in xda post so i can help u to fix
Now delete the Directory of ur decompiled apk
and
Decompiled the apk again * this is for the public IDS * sothey are added
Now
go to
res/values/public.xml and find these
Code:
<public type="drawable" name="btn_tg"
<public type="drawable" name="btn_toggles_normal"
Now goto
smali/com/spacecaker/ButtonBurst.smali
and find this
Code:
const v3, 0x7f020180
change it to the Public ID code u got from
Code:
<public type="drawable" name="btn_toggles_normal"
Now find this
Code:
const v3, 0x7f02017f
change it to the public id u got from
Code:
<public type="drawable" name="btn_tg"
now goto smali\com\android\systemui\statusbar\policy.dateview.smali
and find this
Code:
const v4, 0x[COLOR="Magenta"]7f07002a[/COLOR]
change the colored part to the public id u got from
Code:
<public type="string" name="status_bar_date_formatter"
and now We are done for this part
now lets add the
Settings
Display
and
Prof/Contact button
goto
smali/com/android/systemui/statusbar/StatusBarService.smali
find
Code:
.method public addIcon
and above it add these
Code:
.method public BrightnessButton(Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 1717
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
new-instance v1, Landroid/content/Intent;
[COLOR="Magenta"][I]const-string v2, "android.settings.DISPLAY_SETTINGS"[/I][/COLOR]
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const/high16 v2, 0x1000
invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
.line 1720
return-void
.end method
.method public ProfileButton(Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 1717
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
new-instance v1, Landroid/content/Intent;
[COLOR="Magenta"][I] const-string v2, "com.android.contacts.action.LIST_DEFAULT"[/I][/COLOR]
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const/high16 v2, 0x1000
invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
.line 1720
return-void
.end method
.method public SpaceCakerButton(Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 1717
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
new-instance v1, Landroid/content/Intent;
[COLOR="Magenta"][I]const-string v2, "android.settings.SETTINGS"[/I][/COLOR]
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const/high16 v2, 0x1000
invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
.line 1720
return-void
.end method
now compile the apk and it should work now
Special Thanks to
Matz69
DCSMS
SpaceCaker

Tutorial for adding new toggles
How to add new toggles ?
As u can see i highlighted some stuff with pink color
Code:
[COLOR="Magenta"][I]const-string v2, "android.settings.DISPLAY_SETTINGS"[/I][/COLOR]
As u can see it has this tag inside
Code:
android.settings.DISPLAY_SETTINGS
this is the package/action name of a app / option inside settings.apk
u can change this to any thin u want like
taskmanager it will be like this
Code:
const-string v2, "com.sec.android.app.controlpanel.MAIN"
now if u add it to a new Onclick method it will look like this
Code:
[COLOR="RoyalBlue"].method public TaskManagerButtonSpaceTutorial[/COLOR](Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 1717
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
new-instance v1, Landroid/content/Intent;
[COLOR="RoyalBlue"]const-string v2, "com.sec.android.app.controlpanel.MAIN[/COLOR]"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const/high16 v2, 0x1000
invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
.line 1720
return-void
.end method
this is a new method
of course it wont work yet as u need to add it to the layout
goto res/layout/quickpanel_quick_settings_space.xml
add something like this
Code:
<FrameLayout android:id="@id/settings_button" android:background= [user=3944923]@drawab[/user]le/tile_toggle" android:layout_width="106.0px" android:layout_height="100.0px" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR="Red"]android:src= [user=3944923]@drawab[/user]le/taskmanagerpng" [/COLOR][COLOR="Red"]android:onClick="TaskManagerButtonSpaceTutorial"[/COLOR] />
<TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="106.0px" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" [COLOR="Red"]android:text="TaskManager"[/COLOR] />
</FrameLayout>
the red stuff u need to edit to the app/ icon / text /
Code:
.method public TaskManagerButtonSpaceTutorial
u used
@drawable/taskmanagerpng u need to add a png that has the name taskmanagerpng to drawable-mdpi
Code:
android:onClick="[COLOR="Magenta"]TaskManagerButtonSpaceTutorial[/COLOR]"
noticed the pink part ?
this is the text i used after .method public
this makes the button actually work
And ofcourse
Code:
android:text="[COLOR="Magenta"]TaskManager[/COLOR]"
this is what the text needs to say under the app

Screenshots
Note these are form Galaxy Acei
and has a Brightness Panel and Taking Care of Lidroid * i did NOT include it in this tut yet *
{
"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"
}

WOW... awesome... thanks will try it asap...
BTW Please add few screen shots to compare if possible...

This is madnesss

NimeniAltu said:
This is madnesss
Click to expand...
Click to collapse
no this is smali + xml
Sent from my S500 using xda app-developers app

lokeshsaini94 said:
WOW... awesome... thanks will try it asap...
BTW Please add few screen shots to compare if possible...
Click to expand...
Click to collapse
done
Sent from my S500 using xda app-developers app

i see so many smilies..
is thers any way to disable smily ?
Sent from my GT-S5830i using xda app-developers app

srt99 said:
i see so many smilies..
is thers any way to disable smily ?
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
on phone u need this
on pc it should show fine
Sent from my S500 using xda app-developers app

Awsome
Sent from my GT-S5830 using xda app-developers app

Looks like you missed few things...
Code:
SystemUI_decompiled\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/spacebuttonburst****').
SystemUI_decompiled\res\layout\jb_headerview.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/spacebuttonburst****').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:9: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:14: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_brightness').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:24: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:29: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:34: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:41: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:46: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\status_bar_expanded.xml:19: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/status_bar_expanded_clear_button_width').
SystemUI_decompiled\res\layout\status_bar_expanded.xml:22: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/blank').

lokeshsaini94 said:
Looks like you missed few things...
Code:
SystemUI_decompiled\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/spacebuttonburst****').
SystemUI_decompiled\res\layout\jb_headerview.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/spacebuttonburst****').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:9: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:14: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_brightness').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:24: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:29: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:34: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:41: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:46: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\status_bar_expanded.xml:19: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/status_bar_expanded_clear_button_width').
SystemUI_decompiled\res\layout\status_bar_expanded.xml:22: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/blank').
Click to expand...
Click to collapse
ahh yeah sorry will fix

lokeshsaini94 said:
Looks like you missed few things...
Code:
SystemUI_decompiled\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/spacebuttonburst****').
SystemUI_decompiled\res\layout\jb_headerview.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/spacebuttonburst****').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:9: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:14: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_brightness').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:24: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:29: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:34: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:41: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:46: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/quickpanel_button_selector_bg').
SystemUI_decompiled\res\layout\status_bar_expanded.xml:19: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/status_bar_expanded_clear_button_width').
SystemUI_decompiled\res\layout\status_bar_expanded.xml:22: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/blank').
Click to expand...
Click to collapse
thanks for noticing
fixed the guide and the space_adds.zip

Error recompiling
Code:
I: Smaling...
I: Building resources...
res\drawable-mdpi\quickpanel_plmn_background.png:0: error: Resource entry quickpanel_plmn_background is already defined.
res\drawable-mdpi\quickpanel_plmn_background.9.png:0: Originally defined here.
res\drawable-mdpi\status_bar_background.png:0: error: Resource entry status_bar_background is already defined.
res\drawable-mdpi\status_bar_background.9.png:0: Originally defined here.
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/accessibility_settings_button').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'text' with value '@string/quickpanel_dc_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:52: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more

safariking said:
Error recompiling
Code:
I: Smaling...
I: Building resources...
res\drawable-mdpi\quickpanel_plmn_background.png:0: error: Resource entry quickpanel_plmn_background is already defined.
res\drawable-mdpi\quickpanel_plmn_background.9.png:0: Originally defined here.
res\drawable-mdpi\status_bar_background.png:0: error: Resource entry status_bar_background is already defined.
res\drawable-mdpi\status_bar_background.9.png:0: Originally defined here.
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\jb_headerview.xml:5: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/accessibility_settings_button').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:51: error: Error: No resource found that matches the given name (at 'text' with value '@string/quickpanel_dc_text').
C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res\layout\quickpanel_quick_settings_space.xml:52: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_data_btn_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\Ryan-Pc\AppData\Local\Temp\APKTOOL44650780645015884.tmp, -I, C:\Users\Ryan-Pc\apktool\framework\1.apk, -S, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\res, -M, C:\Users\Ryan-Pc\APK GUI\InProgress\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
Click to expand...
Click to collapse
gimme ur systemui .apk
ur samsung phone is using different nametypes for the QuickPanel Data Button
also remove these pngs if they are not mine but from yours
quickpanel_plmn_background.png/quickpanel_plmn_background.9.png
status_bar_background.9.png/status_bar_background.png

SpaceCaker said:
gimme ur systemui .apk
ur samsung phone is using different nametypes for the QuickPanel Data Button
also remove these pngs if they are not mine but from yours
quickpanel_plmn_background.png/quickpanel_plmn_background.9.png
status_bar_background.9.png/status_bar_background.png
Click to expand...
Click to collapse
Here is my systemui.apk
https://www.dropbox.com/s/dbxjtb8pcwzumuf/SystemUI.apk
Thanks man

i can't its the same problem than safariking, i deleted the pngs you said, but there're problems with smalis, public, etc :crying: i can't aaaaaa

equilibriojh said:
i can't its the same problem than safariking, i deleted the pngs you said, but there're problems with smalis, public, etc :crying: i can't aaaaaa
Click to expand...
Click to collapse
public cant :/
do give me ur log if possible
if u have a NonSamsung device u will need to removed approx 40 th or less lines from Quick_panel_toggles_space.xml

yep it´s galaxy ace s5830, and its the systemui based on your rom sgs2 v11.1, here is the problem into image
SpaceCaker said:
public cant :/
do give me ur log if possible
if u have a NonSamsung device u will need to removed approx 40 th or less lines from Quick_panel_toggles_space.xml
Click to expand...
Click to collapse

equilibriojh said:
yep it´s galaxy ace s5830, and its the systemui based on your rom sgs2 v11.1, here is the problem into image
Click to expand...
Click to collapse
u are using the old space adds file as i can see and u have a error in ur statusbar.xml
also u need to add the proper ID i have fixed them as in xda they went *** tags
Sent from my S500 using xda app-developers app

Related

[TUTORIAL]Sense 4 multitasking

hi there!
after making the sense 4 mod and a lot of requests for a tutorial here we go
(The Original Thread.. gets updates)
http://forum.xda-developers.com/showthread.php?t=1599348
the reasons i placed this tutorial is because the mod is more populair then i thought
and i cant keep up the request and updates of some roms
so my request to you is.. if you make your own version
place it in this thread to share with everyone
http://forum.xda-developers.com/showthread.php?t=1599348
and if you use this mod in one of your themes give me some credit
the mod needs 2 files
-SystemUI.apk
-Framework-res.apk
you need apktool 1.4.2 and 1.4.3
decompile with 1.4.2 and compile with 1.4.3
after compiling go to build/apk in your apktool folder and put the
res folder
resources.arsc
classes.dex
in the original apk to make this work!
first decompile systemui
then
go to res/layout-port
open
status_bar_recent_item
change the code to
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/recent_item" android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="170.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="@dimen/status_bar_recents_thumbnail_width_webaokp" android:layout_height="@dimen/status_bar_recents_thumbnail_height_webaokp" android:layout_marginTop="20.0dip" />
<ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="192.0dip" android:layout_height="wrap_content" android:layout_marginTop="310.0dip" android:layout_marginRight="5.0dip" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_below="@id/app_thumbnail" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<LinearLayout android:orientation="horizontal" android:paddingTop="0.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="200.0dip" android:layout_height="50.0dip" android:layout_marginTop="0.0dip" android:adjustViewBounds="true" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
</LinearLayout>
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</LinearLayout>
open
status_bar_recent_panel
change the code to
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="470.0dip" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
<FrameLayout android:id="@id/recents_bg_protect" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:visibility="gone" android:scrollbars="none" android:fadingEdge="vertical" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
go to res/values
open
dimens
make sure the your values are the same
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_edge_ignore">5.0dip</dimen>
<dimen name="status_bar_recents_app_icon_max_width">48.0dip</dimen>
<dimen name="status_bar_recents_app_icon_max_height">48.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_width_webaokp">170.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_height_webaokp">280.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_width">164.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_height">145.0dip</dimen>
<dimen name="status_bar_recents_app_label_text_size">14.0dip</dimen>
<dimen name="status_bar_recents_app_description_text_size">14.0dip</dimen>
<dimen name="status_bar_recents_fading_edge_length">0.0dip</dimen>
<dimen name="status_bar_recents_right_glow_margin">100.0dip</dimen>
<dimen name="peek_window_y_offset">-12.0dip</dimen>
<dimen name="navigation_bar_size">@android:dimen/navigation_bar_height</dimen>
<dimen name="navigation_bar_deadzone_size">12.0dip</dimen>
<dimen name="notification_height">65.0dip</dimen>
<dimen name="status_bar_icon_size">@android:dimen/status_bar_icon_size</dimen>
<dimen name="status_bar_icon_drawing_size">18.0dip</dimen>
<item type="dimen" name="status_bar_icon_drawing_alpha">54.999996%</item>
<dimen name="status_bar_icon_padding">0.0dip</dimen>
<dimen name="notification_divider_height">1.0dip</dimen>
<dimen name="self_expand_velocity">2000.0dip</dimen>
<dimen name="self_collapse_velocity">2000.0dip</dimen>
<dimen name="fling_expand_min_velocity">200.0dip</dimen>
<dimen name="fling_collapse_min_velocity">200.0dip</dimen>
<dimen name="fling_gesture_max_x_velocity">200.0dip</dimen>
<item type="dimen" name="collapse_min_display_fraction">10.000002%</item>
<item type="dimen" name="expand_min_display_fraction">50.0%</item>
<dimen name="expand_accel">2000.0dip</dimen>
<dimen name="collapse_accel">2000.0dip</dimen>
<dimen name="global_screenshot_bg_padding">20.0dip</dimen>
</resources>
go to res/drawable
open
status_bar_Recent_background(if you let this file alone your background will be transparent.. if you wish to use another background or the one in the attachments for the original Sense look change the code to this)
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1000" android:drawable="@drawable/nattekut" />
</animation-list>
then download this
{
"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"
}
and place it in your drawable-xhdpi folder
then go to res/layout
open
status_bar_no_recent_apps
change your code to
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="470.0dip" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
now go to the values of your country
for example
values-en-rGB
open strings
and change the recent app string to this(in your own language)
Code:
<string name="status_bar_no_recent_apps">Recent apps</string>
now for the part i hate
go to
\smali\com\android\systemui\recent
open recentpanelview.smali
then search for
Code:
.line 433
iget-object v2, p1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
sget-object v3, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 434
iget-object v2, p1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageMatrix(Landroid/graphics/Matrix;)V
then paste
this underneath
Code:
const/high16 v3, 0x41a0
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setRotationY(F)V
save and compile
decompile framework
go to res/values/
and open dimens
make sure you have this values
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="app_icon_size">48.0dip</dimen>
<dimen name="thumbnail_height">245.0dip</dimen>
<dimen name="thumbnail_width">170.0dip</dimen>
<item type="dimen" name="dialog_min_width_major">65.0%</item>
<item type="dimen" name="dialog_min_width_minor">94.99999%</item>
<dimen name="notification_large_icon_width">64.0dip</dimen>
<dimen name="notification_large_icon_height">64.0dip</dimen>
<dimen name="config_prefDialogWidth">320.0dip</dimen>
<dimen name="config_viewConfigurationTouchSlop">8.0dip</dimen>
<dimen name="toast_y_offset">64.0dip</dimen>
<dimen name="status_bar_height">25.0dip</dimen>
<dimen name="system_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_width">42.0dip</dimen>
<dimen name="status_bar_icon_size">24.0dip</dimen>
<dimen name="status_bar_content_number_size">48.0sp</dimen>
<dimen name="system_bar_icon_size">32.0dip</dimen>
<dimen name="status_bar_edge_ignore">5.0dip</dimen>
<dimen name="fastscroll_overlay_size">104.0dip</dimen>
<dimen name="fastscroll_thumb_width">64.0dip</dimen>
<dimen name="fastscroll_thumb_height">52.0dip</dimen>
<dimen name="min_xlarge_screen_width">800.0dip</dimen>
<dimen name="password_keyboard_key_height_alpha">56.0dip</dimen>
<dimen name="password_keyboard_key_height_numeric">56.0dip</dimen>
<dimen name="password_keyboard_spacebar_vertical_correction">4.0dip</dimen>
<dimen name="password_keyboard_horizontalGap">3.0dip</dimen>
<dimen name="password_keyboard_verticalGap">9.0dip</dimen>
<dimen name="keyguard_lockscreen_outerring_diameter">270.0dip</dimen>
<dimen name="multiwaveview_target_placement_radius">135.0dip</dimen>
<dimen name="multiwaveview_snap_margin">20.0dip</dimen>
<dimen name="multiwaveview_hit_radius">60.0dip</dimen>
<dimen name="preference_screen_side_margin">0.0dip</dimen>
<dimen name="preference_screen_side_margin_negative">0.0dip</dimen>
<dimen name="preference_screen_top_margin">0.0dip</dimen>
<dimen name="preference_screen_bottom_margin">0.0dip</dimen>
<dimen name="preference_widget_width">48.0dip</dimen>
<dimen name="preference_fragment_padding_bottom">0.0dip</dimen>
<dimen name="preference_fragment_padding_side">16.0dip</dimen>
<dimen name="preference_breadcrumb_paddingLeft">0.0dip</dimen>
<dimen name="preference_breadcrumb_paddingRight">0.0dip</dimen>
<dimen name="preference_icon_minWidth">0.0dip</dimen>
<dimen name="preference_screen_header_vertical_padding">0.0dip</dimen>
<dimen name="preference_screen_header_padding_side">16.0dip</dimen>
<dimen name="preference_item_padding_side">8.0dip</dimen>
<dimen name="preference_item_padding_inner">8.0dip</dimen>
<dimen name="preference_child_padding_side">16.0dip</dimen>
<dimen name="search_view_text_min_width">160.0dip</dimen>
<dimen name="search_view_preferred_width">320.0dip</dimen>
<dimen name="alert_dialog_title_height">64.0dip</dimen>
<dimen name="alert_dialog_button_bar_height">48.0dip</dimen>
<dimen name="action_bar_default_height">48.0dip</dimen>
<dimen name="action_bar_icon_vertical_padding">8.0dip</dimen>
<dimen name="action_bar_title_text_size">18.0dip</dimen>
<dimen name="action_bar_subtitle_text_size">14.0dip</dimen>
<dimen name="action_bar_subtitle_top_margin">-3.0dip</dimen>
<dimen name="action_bar_subtitle_bottom_margin">5.0dip</dimen>
<dimen name="keyguard_lockscreen_clock_font_size">80.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_size">14.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_right_margin">42.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen>
<dimen name="keyguard_lockscreen_pin_margin_left">40.0dip</dimen>
<dimen name="activity_chooser_popup_min_width">200.0dip</dimen>
<dimen name="default_gap">16.0dip</dimen>
<dimen name="dropdownitem_text_padding_left">8.0dip</dimen>
<dimen name="dropdownitem_text_padding_right">8.0dip</dimen>
<dimen name="dropdownitem_icon_width">32.0dip</dimen>
<dimen name="textview_error_popup_default_width">240.0dip</dimen>
<dimen name="volume_panel_top">80.0dip</dimen>
<dimen name="default_app_widget_padding_left">8.0dip</dimen>
<dimen name="default_app_widget_padding_top">8.0dip</dimen>
<dimen name="default_app_widget_padding_right">8.0dip</dimen>
<dimen name="default_app_widget_padding_bottom">8.0dip</dimen>
<dimen name="action_button_min_width">56.0dip</dimen>
<item type="dimen" name="APKTOOL_DUMMY_004a">false</item>
</resources>
save and compile
push it to your device and enjoy
heres a cwm package
you can use
http://dl.dropbox.com/u/63404537/LocoZipSense4-8 b34.zip
just put your systemui in the /system/app/
and put your framework-res in the /system/framework
i hope this was clear!
enjoy this mod!
i worked hard for it
if you like my work consider a small donation
this is still a little wip i want to make it more like the original sense
so if you want to join forces send me a private message
Hi i get this error when compiling
[*] D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI
recompiling D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\layout-port\status_bar_recent_item.xml:12: error: Error parsing XML: no element found
D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable\status_bar_recents_background.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\doeboy\AppData\Local\Temp\APKTOOL8793273189672460438.tmp, -I, C:\Users\doeboy\apktool\framework\1.apk, -S, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\doeboy\AppData\Local\Temp\APKTOOL8793273189672460438.tmp, -I, C:\Users\doeboy\apktool\framework\1.apk, -S, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
daman215 said:
Hi i get this error when compiling
[*] D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI
recompiling D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\layout-port\status_bar_recent_item.xml:12: error: Error parsing XML: no element found
D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable\status_bar_recents_background.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\doeboy\AppData\Local\Temp\APKTOOL8793273189672460438.tmp, -I, C:\Users\doeboy\apktool\framework\1.apk, -S, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\doeboy\AppData\Local\Temp\APKTOOL8793273189672460438.tmp, -I, C:\Users\doeboy\apktool\framework\1.apk, -S, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
Click to expand...
Click to collapse
Compiling guide works for me.
http://forum.xda-developers.com/showpost.php?p=25623934&postcount=215
daman215 said:
Hi i get this error when compiling
[*] D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI
recompiling D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\layout-port\status_bar_recent_item.xml:12: error: Error parsing XML: no element found
D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable\status_bar_recents_background.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\doeboy\AppData\Local\Temp\APKTOOL8793273189672460438.tmp, -I, C:\Users\doeboy\apktool\framework\1.apk, -S, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\doeboy\AppData\Local\Temp\APKTOOL8793273189672460438.tmp, -I, C:\Users\doeboy\apktool\framework\1.apk, -S, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, D:\apktool\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
Click to expand...
Click to collapse
I'm no expert, but I think the error is actually in your code.
Sent from my Galaxy Nexus using Tapatalk 2
it should work
are you using the right tools?

Need Help..Statusbar Center Clock and "carrier_logo"

Hi...
since 12 hrs I try to get the center statusbar clock on my device...
{
"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"
}
but without success! I've used this guide
http://forum.xda-developers.com/showthread.php?t=1511544
.and this http://forum.xda-developers.com/showthread.php?t=1365810.
and one more.
http://forum.xda-developers.com/showthread.php?t=1561394&page=10it is either not compatible with our flagship, or I did something wrong. What else can do...???
Im on Omega V1.2
here what i have do!
status_bar.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:background="@drawable/carrier_logo" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentLeft="true" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
please look at attachments i have pull the systemUi.apk and decompiled status_bar.xml
Thanks for any Help
if it's Touch Wiz based..
you have to edit the tw_statusbar.xml don;t change the statusbar.xml
below are the changes required to make it center clock
after the below code
PHP:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
copy paste the below as it is
PHP:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
go and find the below line in middle of xml file and delete the entire line.
PHP:
<com.android.systemui.statusbar.policy.Clock android:
Now find the below line near ( to fix overlapping text over the clock)
PHP:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
and add in the same line next to Ticker
PHP:
android:background="@drawable/status_bar_bg_tile"
so it looks like this
PHP:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
compile it.. it will make the Clock center..
Thank you..!!) it Works...
I will add a carrier_logo but have the same Problem!!
i followed this tutorial
HOW TO PUT CUSTOM CARRIER LOGO IN STATUSBAR
but after compile and reboot the phone i loose the statusbar
ans when i try again and change the tw_staus_bar.xml
can't combile
Log error;
PHP:
|14.06.2012 -- 16:13:34.93|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\res\layout\tw_status_bar.xml:21: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Poza\AppData\Local\Temp\APKTOOL7137584651136169949.tmp, -I, C:\Users\Poza\apktool\framework\1.apk, -S, C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\res, -M, C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Poza\AppData\Local\Temp\APKTOOL7137584651136169949.tmp, -I, C:\Users\Poza\apktool\framework\1.apk, -S, C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\res, -M, C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
Thx for you help the. the cent clock is amazing and with carrier_logo it would be bombastig
Would be great if someone can make a flashable zip for omega (i use4.1)
Thanks..
sent from Omega S3-siyah-OC-UV
I have galaxy s3 on WanamLite 1.2 ROM
I don't know how to edit xml files on mac
please help me here
thank you
EdgarCupari said:
Thank you..!!) it Works...
I will add a carrier_logo but have the same Problem!!
i followed this tutorial
HOW TO PUT CUSTOM CARRIER LOGO IN STATUSBAR
but after compile and reboot the phone i loose the statusbar
ans when i try again and change the tw_staus_bar.xml
can't combile
Log error;
PHP:
|14.06.2012 -- 16:13:34.93|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\res\layout\tw_status_bar.xml:21: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Poza\AppData\Local\Temp\APKTOOL7137584651136169949.tmp, -I, C:\Users\Poza\apktool\framework\1.apk, -S, C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\res, -M, C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Poza\AppData\Local\Temp\APKTOOL7137584651136169949.tmp, -I, C:\Users\Poza\apktool\framework\1.apk, -S, C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\res, -M, C:\android-sdk-windows\APK-Manager\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
Thx for you help the. the cent clock is amazing and with carrier_logo it would be bombastig
Click to expand...
Click to collapse
Not sure what was the issue..
1. Have you added the Carrier_logo.png in drawable-hdpi folder.
2. do the same name change in Statusbar.xml also.
Note.. the guide is for Common ICS ROM.. for TW roms.. change only the correct part otherwise it will mess up the systemUI.
i think for Carrier_logo you need to change only the "android:background="@drawable/carrier_logo" without quotes.. just try with the approach..

[MOD][How to] Use layout file on SecSettings

In this guide I will explain how to use layout file, for insert a text guide or image in SecSettings like the image in attachment
The limitation of this mod are that you can insert one text or image with one layout file like this:
1 text(TextView)=1 layout file
2 text(TextView)=2 layout file
1 image(ImageView)=1 layout file
2 image(ImageView)=2 layout file
1 text and 1 image=1 layout for text and 1 layout for image.
In this guide I use displaysettings.xml, DisplaySettings.smali and layout file (that you must insert in layout folder) for one image and one text.
In displaysettings.xml or other file of xml folder, insert this line (the position of the text is determined by the position in which you insert the line in the xml file):
Code:
<Preference android:key="statusbar_help" />
Like this, in this way the text appears on the top:
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/statusbar_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<Preference android:key="statusbar_help" />
In DisplaySettings or other smali file, you have insert this modification:
-Insert an instance fields, like this:
Code:
# instance fields
.field mHelpStatusBarPref:Landroid/preference/Preference;
-Insert a lines in this method:
Code:
.method public onCreate(Landroid/os/Bundle;)V
Code:
const-string v1, "statusbar_help"
invoke-virtual {p0, v1}, Lcom/android/settings/DisplaySettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v1
iput-object v1, p0, Lcom/android/settings/DisplaySettings;->mHelpStatusBarPref:Landroid/preference/Preference;
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getActivity()Landroid/app/Activity;
move-result-object v1
invoke-static {v1}, Lcom/android/settings/Utils;->isVoiceCapable(Landroid/content/Context;)Z
move-result v1
iget-object v1, p0, Lcom/android/settings/DisplaySettings;->mHelpStatusBarPref:Landroid/preference/Preference;
const v4, 0x7f04013b
invoke-virtual {v1, v4}, Landroid/preference/Preference;->setLayoutResource(I)V
goto/16 :goto_00
:goto_00
iget-object v1, p0, Lcom/android/settings/DisplaySettings;->mHelpStatusBarPref:Landroid/preference/Preference;
invoke-virtual {v1, v3}, Landroid/preference/Preference;->setSelectable(Z)V
0x7f04013b is the public id of the layout file
Now you have create a layout file xml and insert this file in layout folder for text and a layout file for image.
For text create a xml file and insert this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="18.0sp" android:textColor="?android:twTextColorPrimary" android:id="@id/textView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="9.0dip" android:layout_marginRight="12.0dip" android:layout_marginBottom="9.0dip" android:text="@string/how_csc_use_summary" />
</LinearLayout>
Use android:text="@string/how_csc_use_summary" for insert a custom text
For image create another xml file and insert this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center_horizontal" android:visibility="visible" android:background="@drawable/natale" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginBottom="5.0dip" />
</LinearLayout>
Use android:background="@drawable/natale" for insert the image.
I hope I have been helpful with this mod

[GUIDE] Add Ten Tabs Layout to SystemUI

This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk
Steps:
1. Decompile your SystemUI.apk
2. Download the attachment (it contains the needed drawables and smali files).
3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).
4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>
Code:
<item type="id" name="tentabs">false</item>
5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>
Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE
com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:
Code:
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>
The above code is considered as ONE CHILD VIEW or LAYOUT.
6. Recompile your SystemUI.apk
7. Decompile your new SystemUI.apk into a new location.
8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk
Now for the SMALI part:
1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):
Code:
<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />
Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.
2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for
Code:
const v10, 0x7f060005 # Replace 0x7f060005 with your public.xml tentabs public id
As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:
Code:
const v10, 0x7f0a003a # Replace 0x7f060005 with your public.xml tentabs public id
Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.
3. Save your edited TenTabs.smali
4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.
Code:
const v1, 0x7f020001 # your tab 1 drawable id here
const v1, 0x7f020003 # your tab 2 drawable id here
const v1, 0x7f020004 # your tab 3 drawable id here
const v1, 0x7f020005 # your tab 4 drawable id here
const v1, 0x7f020006 # your tab 5 drawable id here
const v1, 0x7f020007 # your tab 6 drawable id here
const v1, 0x7f020008 # your tab 7 drawable id here
const v1, 0x7f020009 # your tab 8 drawable id here
const v1, 0x7f02000a # your tab 9 drawable id here
const v1, 0x7f020002 # your tab 10 drawable id here
Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:
Code:
const v1, 0x7f020162 # your tab 1 drawable id here
const v1, 0x7f020164 # your tab 2 drawable id here
const v1, 0x7f020165 # your tab 3 drawable id here
const v1, 0x7f020166 # your tab 4 drawable id here
const v1, 0x7f020167 # your tab 5 drawable id here
const v1, 0x7f020168 # your tab 6 drawable id here
const v1, 0x7f020169 # your tab 7 drawable id here
const v1, 0x7f02016a # your tab 8 drawable id here
const v1, 0x7f02016b # your tab 9 drawable id here
const v1, 0x7f020163 # your tab 10 drawable id here
5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.
6. Recompile your SystemUI.apk
7. Push or Flash your SystemUI.apk and see if your mod works.
Credits:
I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.
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"
}
Needed files:
View attachment TenTabsFiles.zip v0.1
Source Codes?
You want to play with the code? Add functions? Explore and Learn? Copy method snippets? You can check it at my GitHub.:good::
Suggestions? Comments? Bugs (I hope none)?
Just post a reply here and I will try to attend to it. (The word "try" always has a "catch" Exception, iykwim.)
thx, now i have 15 tabs
73R3WY said:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk
Steps:
1. Decompile your SystemUI.apk
2. Download the attachment (it contains the needed drawables and smali files).
3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).
4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>
Code:
<item type="id" name="tentabs">false</item>
5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after
Code:
xmlns:android="diordna/ser/kpa/moc.diordna.samehcs//:ptth">
Note: I reversed the code above because xda recognizes it as an external link.
OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:
Code:
xmlns:android="diordna/ser/kpa/moc.diordna.samehcs//:ptth">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>
Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE
com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:
Code:
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>
The above code is considered as ONE CHILD VIEW or LAYOUT.
6. Recompile your SystemUI.apk
7. Decompile your new SystemUI.apk into a new location.
8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk
Now for the SMALI part:
1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):
Code:
<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />
Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.
2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for
Code:
const v10, 0x7f060005# Replace 0x7f060005 with your public.xml tentabs public id
As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:
Code:
const v10, 0x7f0a003a# Replace 0x7f060005 with your public.xml tentabs public id
Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.
3. Save your edited TenTabs.smali
4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.
Code:
const v1, 0x7f020001# your tab 1 drawable id here
const v1, 0x7f020003# your tab 2 drawable id here
const v1, 0x7f020004# your tab 3 drawable id here
const v1, 0x7f020005# your tab 4 drawable id here
const v1, 0x7f020006# your tab 5 drawable id here
const v1, 0x7f020007# your tab 6 drawable id here
const v1, 0x7f020008# your tab 7 drawable id here
const v1, 0x7f020009# your tab 8 drawable id here
const v1, 0x7f02000a# your tab 9 drawable id here
const v1, 0x7f020002# your tab 10 drawable id here
Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:
Code:
const v1, 0x7f020162# your tab 1 drawable id here
const v1, 0x7f020164# your tab 2 drawable id here
const v1, 0x7f020165# your tab 3 drawable id here
const v1, 0x7f020166# your tab 4 drawable id here
const v1, 0x7f020167# your tab 5 drawable id here
const v1, 0x7f020168# your tab 6 drawable id here
const v1, 0x7f020169# your tab 7 drawable id here
const v1, 0x7f02016a# your tab 8 drawable id here
const v1, 0x7f02016b# your tab 9 drawable id here
const v1, 0x7f020163# your tab 10 drawable id here
5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.
6. Recompile your SystemUI.apk
7. Push or Flash your SystemUI.apk and see if your mod works.
Credits:
I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.
Screenshots:
View attachment 2884923View attachment 2884924View attachment 2884925
Needed files:
View attachment 2884926 v0.1
Click to expand...
Click to collapse
Tanks i am work in stockrom deodex :thumbup::thumbup:
Sent from my SM-N9000 using XDA Free mobile app
73R3WY said:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Click to expand...
Click to collapse
Thanks. Can I decompile it with apktool for mobile? If not, can you decompile again the smali files with mobile apktool for mobile apktool users? Advance thanks mate.
jasper~ said:
Thanks. Can I decompile it with apktool for mobile? If not, can you decompile again the smali files with mobile apktool for mobile apktool users? Advance thanks mate.
Click to expand...
Click to collapse
I think you can still use the smali's from the attached file sir with apktool mobile. but in case it will not work, you can try the attached zip file from this reply with apktool mobile. I decompiled it using apktool mobile armel v4.3.1, there are slight differences from the output ids of the smali so just compare it with the smali above for reference with the guide.
View attachment TenTabsFilesDecompiledWithapktoolMobile.zip
73R3WY said:
I think you can still use the smali's from the attached file sir with apktool mobile. but in case it will not work, you can try the attached zip file from this reply with apktool mobile. I decompiled it using apktool mobile armel v4.3.1, there are slight differences from the output ids of the smali so just compare it with the smali above for reference with the guide.
View attachment 2888827
Click to expand...
Click to collapse
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
jasper~ said:
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
Click to expand...
Click to collapse
Try apktool 4.4 sir , its support smali like this
jasper~ said:
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
Click to expand...
Click to collapse
yes sir, because apktool mobile v4.1 armel also uses apktool v1.5.2
73R3WY said:
yes sir, because apktool mobile v4.1 armel also uses apktool v1.5.2
Click to expand...
Click to collapse
Ok. Thanks bro
This is what I get.
Sent from my GT-S5360 using XDA Free mobile app
sir can i change tab 1,2,3 with custom text?

[GUIDE][GB] (Android 5.0) Android L Theme

Android L Expanded
​
{
"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"
}
Please read them all especially the description. Remind me if you find any
mistakes or errors on my guide, I'm not that good at making it and also when I
forgot something. For those who will encounter fcs, no statusbar, bootloops,
provide a logcat as long as possible so we can easily track the bug. Feel free
to suggest but please avoid suggesting for your personal use, suggest things
that is possible, (or maybe impossible xD) and things that will also be liked by
the users. Thank you for your cooperation, and for reading this messy guide xD
PS:
I avoid using smali editing by using method of getting pngs through its png name
and package name, thanks to sir @mariozawa Also, I avoid putting/creating
new pngs to keep the apk size small.
PSS:
You can freely use my customviews but please give the proper credits,
and also dont rename the smalis, ask me first if you want to.
Dont release a guide about my customviews because Ill make
a guide for them. Just ask me first and Ill let you A little respect
for my work because I made it for a couple of days xD
PSSS:
You can download my SystemUI.apk and framework-res.apk at the
attachment so you can easily compare it. Or you can flash it if you
are stock deodex, DXLF baseband
Click to expand...
Click to collapse
Video:
Android L Expanded Video
Description/How to use:
Android L Expanded look. I copy almost the whole interface, also the behavior. Not that much actually, because GB has limitations </3. Tap or hold or touch or slide the header, it will show the toggles and brightness slider. The close drag handle was invisible and it was 50.0px, kinda big, It was still at the bottom so you can close it from the bottom by holding the handle. Swiping the background of toggles will also hide them and will return to header-show only.
Features:
Custom Status Icons (Codes copy from statusbarpolicy to avoid bug and also to update always.)
Brightness Icon? (Hold it for flashlight)
Brightness slider (Codes copy from AOSP settings display brightness slider)
Updating/Clickable toggles
Wifi Name (Click also to update)
Bugs:
None for now. Behavior maybe but not that much.
Pre-requisites/Needed:
Do this guide for notifications and fix for media scanning AuliaYF Android L Notification View
Remove the stock toggles, follow this guide: mariozawa Remove STOCK TW toggles on expandedView or just move it to anywhere
Basic XML knowledge
Steps:
1.) Decompile SystemUI.apk.
2.) Open AndroidManifest.xml and add this code:
Code:
<activity android:name="com.tenten.LFlashLight">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
LOOK LIKE THIS:
Click to expand...
Click to collapse
3.) Save. Download androidL_smalis.zip at the attachment and extract it on smali/com folder.
4.) Download androidL_drawable.zip and extract it to res folder. (Or put/replace the pngs inside the zip to your res/drawable and res/drawable-ldpi)
NOTE:When transferring/replacing pngs, there must not be any png that has the same name. It happens because inside the zip, there was .9patch pngs but with the same name with not patched. It may cause recompiling error.
Click to expand...
Click to collapse
5.) Now... xml begins. Open res/layout/status_bar_tracking.xml
6.) Remove this code:
Code:
<View android:background="#ff8e979f" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
AND REPLACE THIS CODE TO THAT:
Click to expand...
Click to collapse
Code:
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="50.0px" />
7.) Close and Save. Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
Code:
android:layout_marginTop="2.0dip"
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
<LinearLayout android:layout_marginTop="2.0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="70.0sp"
NOW FIND THIS:
Click to expand...
Click to collapse
Code:
<com.android.systemui.statusbar.LatestItemView
FIND THE TEXTCOLOR AND MAKE IT LIKE THIS:
Click to expand...
Click to collapse
Code:
android:textColor="#ff000000"
8.)Close and Save. Open quickpanel_quick_settings.xml and delete all codes. (Dont be bother by deleting also ids, because quickpanel_quick_settings_for_datamode.xml has also it ) Replace it with my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="vertical" android:id="@id/quickpanel_quick_settings" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.tenten.UpDownBoomPaw android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0px">
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LWifiToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
<com.tenten.LWifiName android:textStyle="bold" android:textSize="13.0sp" android:layout_gravity="bottom|center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LBluetoothToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0px">
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LSignalToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
<com.android.systemui.statusbar.CarrierLabel android:textStyle="bold" android:textSize="13.0sp" android:textColor="#ffffffff" android:layout_gravity="bottom|center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LAirplaneToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LAutoRotateToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
</LinearLayout>
</com.tenten.UpDownBoomPaw>
</com.android.systemui.statusbar.quickpanel.QuickSettingsView>
9.) Close and Save. Open status_bar.xml and delete this code:
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
PUT THIS CODE:
Click to expand...
Click to collapse
Code:
<com.android.systemui.statusbar.DateView android:textColor="#00000000" android:id="@id/date" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
BELOW THIS:
Click to expand...
Click to collapse
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
10.) Close and Save. Lastly, Open status_bar_expanded.xml and delete all the codes. Replace with my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Red"]<com.tenten.TogglesButton2 android:orientation="vertical" android:background="@drawable/quickpanel_title_background" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip">
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0px" android:layout_marginTop="3.0px" android:layout_alignParentLeft="true">
<com.android.systemui.statusbar.Clock android:textSize="20.0sp" android:textStyle="normal" android:textColor="#ffdfdfdf" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.LDateBar android:layout_marginLeft="3.0px" android:layout_marginTop="-2.0px" android:textSize="11.0sp" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:gravity="right|center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingRight="10.0px" android:layout_alignParentRight="true">
<com.tenten.LBluetoothBar android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="20.0px" />
<com.tenten.LWifiBar android:paddingLeft="2.0dip" android:layout_width="20.0px" android:layout_height="20.0px" android:scaleType="fitCenter" />
<com.tenten.LSignalBar android:layout_width="wrap_content" android:layout_height="15.0px" />
<com.tenten.LBatteryBar android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="23.0px" />
<com.tenten.LAlarmBar android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.LSettingsBar android:paddingLeft="4.0dip" android:layout_width="20.0px" android:layout_height="20.0px" />
</LinearLayout>
</LinearLayout>
<ImageView android:layout_width="fill_parent" android:layout_height="3.0px" />
</com.tenten.TogglesButton2>[/COLOR]
[COLOR="Blue"]<com.tenten.LayoutAnimation1 android:background="@drawable/quickpanel_title_background" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip">
<Button android:id="@id/clear_all_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:text="" />
<com.tenten.LBrightnessBar android:layout_gravity="center_vertical" android:layout_marginLeft="10.0px" android:layout_width="23.0px" android:layout_height="23.0px" />
<com.tenten.LseekBar android:layout_gravity="center_vertical" android:paddingLeft="12.0px" android:paddingRight="12.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0px" android:layout_marginRight="10.0px" android:layout_weight="1.0" style="@style/tentenL_seekbar"/>
</com.tenten.LayoutAnimation1>[/COLOR]
[COLOR="Green"]<com.tenten.LayoutAnimation2 android:background="@drawable/quickpanel_plmn_background" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/quickpanel_quick_settings" />
</com.tenten.LayoutAnimation2>[/COLOR]
[COLOR="DarkOrange"]<com.tenten.LayoutAnimation3 android:layout_marginRight="5.0px" android:layout_marginLeft="5.0px" android:layout_marginTop="2.0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdgeLength="16.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_ongoing_events_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
</FrameLayout>
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>[/COLOR]
</com.android.systemui.statusbar.ExpandedView>
Explanation: The red code was the header, The blue code was the brightness slider, the green code was the toggles, and the orange code was the notification/ongoing
Click to expand...
Click to collapse
11.) Close and Save. Open values/styles.xml and add this code BEFORE </resources>
Code:
<style name="tentenL_seekbar">
<item name="android:maxHeight">2.0dip</item>
<item name="android:indeterminateOnly">false</item>
<item name="android:minHeight">0.0dip</item>
<item name="android:thumb">@drawable/seek_thumb</item>
<item name="android:indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="android:progressDrawable">@drawable/progress_horizontal</item>
</style>
12.) Save all, recompile your SystemUI and dont forget to sign it. Noooow.... wait there's more! hehe xD (Optional guides)
Optional Guide:
FLAGS:
Dim background (Original Behavior of Android L)
1.) Open smali/com/systemui/statusbar/StatusBarService.smali
Find this line:
Click to expand...
Click to collapse
Code:
.line 1327
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingParams:Landroid/view/WindowManager$LayoutParams;
MAKE .line 1327 to .line 1328
Click to expand...
Click to collapse
NEXT FIND THIS LINE:
Click to expand...
Click to collapse
Code:
.line 1326
iget v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingPosition:I
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I
MAKE .line 1326 to .line 1327
Click to expand...
Click to collapse
NOW INSERT THIS LINE BELOW THIS CODE:
Click to expand...
Click to collapse
Code:
.line 1325
const-string v1, "TrackingView"
invoke-virtual {v0, v1}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V
INSERT THIS:
Click to expand...
Click to collapse
Code:
.line 1326
const/high16 v1, 0x3f00
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F
0x3f00 was the dim amount
Click to expand...
Click to collapse
LASTLY, SCROLL SLIGHTLY TO TOP AND YOU WILL FIND THIS:
Click to expand...
Click to collapse
Code:
const v4, 0x20300
REPLACE 0X20300 to THIS: 0x20302
Click to expand...
Click to collapse
Code:
const v4, 0x20302
YOUR STATUSBARSERVICE.SMALI WILL NOW LOOK LIKE THIS:
Click to expand...
Click to collapse
Code:
.line 1315
:goto_0
new-instance v0, Landroid/view/WindowManager$LayoutParams;
const/16 v3, 0x7de
const v4, 0x20302
move v2, v1
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
.line 1324
const/16 v1, 0x37
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I
.line 1325
const-string v1, "TrackingView"
invoke-virtual {v0, v1}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V
.line 1326
const/high16 v1, 0x3f00
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F
.line 1327
iget v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingPosition:I
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I
.line 1328
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingParams:Landroid/view/WindowManager$LayoutParams;
.line 1329
invoke-static {}, Landroid/view/WindowManagerImpl;->getDefault()Landroid/view/WindowManagerImpl;
move-result-object v1
iget-object v2, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingView:Lcom/android/systemui/statusbar/TrackingView;
invoke-virtual {v1, v2, v0}, Landroid/view/WindowManagerImpl;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 1330
return-void
:cond_0
move v5, v0
goto :goto_0
.end method
2.) Save and Close. When you expand the statusbar, it will make background dim.
or Unique Things AuliaYF [MOD][GUIDE]Blurred StatusBarExpanded
Click to expand...
Click to collapse
FULLSCREEN STATUSBAR: evanlocked [guide]full expanded view jb look for sgy
Swipe to Remove Notifications (because I remove the clear button xD) hansip [HOWTO]Implement Swipe to Remove Notification
Source:
Github Android L Custom Views Source​
CREDITS:​
StackOverFlow.com
Github.com
AOSP
@evanlocked
@PineappleOwl
@mariozawa
@AuliaYF
@jsarunotres
LenoxDevs
PotatoInc​
Android L Changing Color Statusbar [Reserved]
Reserved for android L status bar behavior
Android L Apks [Reserved]
Reserve for android L apks looks
man its hard awesome sir
pitot0909 said:
man its hard awesome sir
Click to expand...
Click to collapse
Read them carefully it's not that hard, you just need to replace replace replace and save save save. haha
Awesome work!! I had seen your video a month ago, and was always wondering, when you'll release! :cheers:
HELP
tentenponce said:
Reserved for android L status bar behavior
Click to expand...
Click to collapse
Boss tenten why i dont have linear layout
on step 7
7.) Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
but unfortunately i dont have the linear layout on status_bar_latest_event.xml pls help me :angel:
thanks
the ss is on the attached files
awesome guide,sir.
but maybe this guide only for stock-based , not for CM roms.
carlo_autor said:
Boss tenten why i dont have linear layout
on step 7
7.) Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
but unfortunately i dont have the linear layout on status_bar_latest_event.xml pls help me :angel:
thanks
the ss is on the attached files
Click to expand...
Click to collapse
If you dont have linearlayout, find this <com.android.systemui.statusbar.LatestItemContainer.
Sir tenten, is this appliable to. PxL rom ? Because i thought that would be hard since we must delete stock tw toogles
Nice job bro :d
Mranggapo said:
Sir tenten, is this appliable to. PxL rom ? Because i thought that would be hard since we must delete stock tw toogles
Click to expand...
Click to collapse
On PxL, stock toggles was deleted, you just need to put the line <include and 0.0dip all the toggles. Be careful on editing and deleting especially ids. you must not remove any ids, if it has, just 0.0dip it.
kevin_tn said:
awesome guide,sir.
but maybe this guide only for stock-based , not for CM roms.
Click to expand...
Click to collapse
You can apply it also on CM, but you need some knowledge about xml
Looks Good!
Awesome work man! Keep it up, and maybe modify stock apps to Android L look!
tentenponce said:
On PxL, stock toggles was deleted, you just need to put the line <include and 0.0dip all the toggles. Be careful on editing and deleting especially ids. you must not remove any ids, if it has, just 0.0dip it.
Click to expand...
Click to collapse
but must i do it completely on stock systemui ? forget PxL im never understand it -_-
i have modified theme for stock rom, can i do it ?
if you guys want the 'easy' way, maybe tomorrow i'll upload my SystemUI Source, and you just need to compile it.
AuliaYF said:
if you guys want the 'easy' way, maybe tomorrow i'll upload my SystemUI Source, and you just need to compile it.
Click to expand...
Click to collapse
I uploaded mine also haha. I got a lot of PMs to give my UI, because I think that if I just give it to them, I teach also how to become lazy. But I dont want to be bombed by "please give me your UI" hahaha. They can compare or simple flash it. By the way, the guide was just long, but it wasnt hard. No smali is included and many users did it on facebook. Just delete copy and replace, delete copy and replace. haha.
Mranggapo said:
but must i do it completely on stock systemui ? forget PxL im never understand it -_-
i have modified theme for stock rom, can i do it ?
Click to expand...
Click to collapse
Haha. Too complicated xD Understanding on xmls Yes this guide is for stock, but as what I said, you can do it as long as you have xml knowledge I uploaded my files too. You can just use it. xD You must be atleast stock deodex DXLF baseband.
HELP
Help pls i got these errors on closedraghandle , i replaced my closedraghadle with tenten's smali , but whats wrong ? it is stock systemUI help plsss:angel:
carlo_autor said:
Help pls i got these errors on closedraghandle , i replaced my closedraghadle with tenten's smali , but whats wrong ? it is stock systemUI help plsss:angel:
Click to expand...
Click to collapse
Use apktool 1.5.2
---------- Post added at 11:54 PM ---------- Previous post was at 11:53 PM ----------
tentenponce said:
Haha. Too complicated xD Understanding on xmls Yes this guide is for stock, but as what I said, you can do it as long as you have xml knowledge I uploaded my files too. You can just use it. xD You must be atleast stock deodex DXLF baseband.
Click to expand...
Click to collapse
Yeah i made it sir :3

Categories

Resources