[TUTORIAL]Sense 4 multitasking - Samsung Galaxy Nexus

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?

Related

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..

[Guide]4.2.2 Statusbar For Stock roms [COOL][GB]V3

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

[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][CM12]How to Make "Looks Like" Sony Stock Clockwidget on Lockscreen

Hi, i'm gonna tell u how to get Sony lollipop digital clock on CM12 lockscreen
Requirements:
- Knowledge how to decompile recompile
- Advanced ApkTool v4.1.0 By BDFreak (use latest apktool)
- Java installed
- Notepad++
- SystemUI.apk
Steps:
VERTICAL CLOCK
1. decompile SystemUI.apk
2. open keyguard_status_area.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="a - EEE, LLL d" android:format24Hour="EEE, LLL d" style="@style/new_style" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:id="@id/date_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_below="@id/clock" style="@style/widget_label" />
<TextView android:textColor="@color/clock_gray" android:gravity="center" android:id="@id/alarm_status" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="6.0dip" android:layout_below="@id/clock" android:drawableStart="@drawable/ic_access_alarms_big" style="@style/new_style" />
</LinearLayout>
3. open keyguard_status_view.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.KeyguardStatusView android:gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_status_view" android:layout_width="fill_parent" android:layout_height="wrap_content" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_clock_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textAppearance="@style/BoldTimeTextStyle" android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.5dip" android:layout_marginBottom="-11.5dip" android:singleLine="true" android:format12Hour="hh" android:format24Hour="HH" />
</LinearLayout>
<TextClock android:textAppearance="@style/LightTimeTextStyle" android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.5dip" android:layout_marginBottom="-11.5dip" android:singleLine="true" android:layout_below="@id/clock" android:format12Hour="mm" android:format24Hour="mm" />
<TextClock android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:textAllCaps="true" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" style="@style/widget_big_thin" />
<include layout="@layout/keyguard_status_area" />
<TextView android:textSize="@dimen/widget_label_font_size" android:textColor="#ccffffff" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/owner_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="@dimen/date_owner_info_margin" android:layout_marginRight="16.0dip" android:singleLine="true" />
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
4. open colors.xml in res/values folder, add this line
Code:
<color name="time_shadow_color">#71000000</color>
5. open dimens.xml in res/values folder, add these line
Code:
<item type="dimen" name="time_shadow_dy">1.0</item>
<item type="dimen" name="time_shadow_radius">3.0</item>
6. open styles.xml in res/values folder, add these line
Code:
<style name="BoldTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">108.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-medium</item>
</style>
<style name="TimeShadow" parent="@style/WrapContent">
<item name="android:shadowColor">@color/time_shadow_color</item>
<item name="android:shadowDy">@dimen/time_shadow_dy</item>
<item name="android:shadowRadius">@dimen/time_shadow_radius</item>
</style>
<style name="WrapContent">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="LightTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">108.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-ultralight</item>
</style>
<style name="new_style">
<item name="android:textSize">@dimen/widget_label_font_size</item>
<item name="android:textStyle">normal</item>
<item name="android:maxLines">1</item>
<item name="android:textAllCaps">true</item>
<item name="android:fontFamily">sst</item>
</style>
7. save all changes, recompile, sign, push SystemUI.apk to system
vertical clock has layout issue in landscape mode
HORIZONTAL CLOCK
1. decompile SystemUI.apk
2. open keyguard_status_area.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="a - EEE, LLL d" android:format24Hour="EEE, LLL d" style="@style/new_style" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:id="@id/date_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_below="@id/clock" style="@style/widget_label" />
<TextView android:textColor="@color/clock_gray" android:gravity="center" android:id="@id/alarm_status" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="6.0dip" android:layout_below="@id/clock" android:drawableStart="@drawable/ic_access_alarms_big" style="@style/new_style" />
</LinearLayout>
3. open keyguard_status_view.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.KeyguardStatusView android:gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_status_view" android:layout_width="fill_parent" android:layout_height="wrap_content" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_clock_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textAppearance="@style/BoldTimeTextStyle" android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="-3.0dip" android:singleLine="true" android:format12Hour="h" android:format24Hour="HH" />
<TextClock android:textAppearance="@style/LightTimeTextStyle" android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="-10.0dip" android:singleLine="true" android:format12Hour="mm" android:format24Hour="mm" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:textAllCaps="true" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" style="@style/widget_big_thin" />
<include layout="@layout/keyguard_status_area" />
<TextView android:textSize="@dimen/widget_label_font_size" android:textColor="#ccffffff" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/owner_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="@dimen/date_owner_info_margin" android:layout_marginRight="16.0dip" android:singleLine="true" />
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
4. open colors.xml in res/values folder, add this line
Code:
<color name="time_shadow_color">#71000000</color>
5. open dimens.xml in res/values folder, add these line
Code:
<item type="dimen" name="time_shadow_dy">1.0</item>
<item type="dimen" name="time_shadow_radius">3.0</item>
6. open styles.xml in res/values folder, add these line
Code:
<style name="BoldTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">98.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-medium</item>
</style>
<style name="TimeShadow" parent="@style/WrapContent">
<item name="android:shadowColor">@color/time_shadow_color</item>
<item name="android:shadowDy">@dimen/time_shadow_dy</item>
<item name="android:shadowRadius">@dimen/time_shadow_radius</item>
</style>
<style name="WrapContent">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="LightTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">98.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-ultralight</item>
</style>
<style name="new_style">
<item name="android:textSize">@dimen/widget_label_font_size</item>
<item name="android:textStyle">normal</item>
<item name="android:maxLines">1</item>
<item name="android:textAllCaps">true</item>
<item name="android:fontFamily">sst</item>
</style>
7. save all changes, recompile, sign, push SystemUI.apk to system
will be better if u use this lollipop clockwidget by @vandroid7 http://forum.xda-developers.com/cro...s/original-z3-5-0-clock-widgets-cm12-t3066866
thanks
Just tried this on CM12.1 Nightly on ZL and works like a charm! One thing, be sure to get the latest apktool (2.0.0, not 2.0.0-RC4) from their page cause that one adds support for 5.1 Lollipop
@idid idamrep may I ask what theme are you using on your rom? I like that battery icon!
xkeita said:
Just tried this on CM12.1 Nightly on ZL and works like a charm! One thing, be sure to get the latest apktool (2.0.0, not 2.0.0-RC4) from their page cause that one adds support for 5.1 Lollipop
@idid idamrep may I ask what theme are you using on your rom? I like that battery icon!
Click to expand...
Click to collapse
Nice ?
To change battery icon, i follow @Erhany & @Ticklefish 's guide here http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361 ?
Nice tutorial friend! But let me save all this trouble.. I've ported Official Xperia Z3 Lollipop SystemUI to CM12.. Which includes this Sony Clock.. I'll soon share! By the way I've also ported Xperia Z3 Particle effect lockscreen..Stay tuned in Cross device thread!
STRYDER~007 said:
Nice tutorial friend! But let me save all this trouble.. I've ported Official Xperia Z3 Lollipop SystemUI to CM12.. Which includes this Sony Clock.. I'll soon share! By the way I've also ported Xperia Z3 Particle effect lockscreen..Stay tuned in Cross device thread!
Click to expand...
Click to collapse
I already saw ur screenshots on XL fb group. U'r awesome, man :good::laugh:
I'm waiting for that
I wrote this guide for those who can't wait for ur work
idid idamrep said:
I already saw ur screenshots on XL fb group. U'r awesome, man :good::laugh:
I'm waiting for that
I wrote this guide for those who can't wait for ur work
Click to expand...
Click to collapse
Tutorials and guides are always welcome friend!Keep up the good work.. :highfive::good:
Nice guide bro :good: very helpful post. Thanks for sharing
Hey can you plz help me to port this clock widget on lockscreen vertical one into my xperia s cm12.......i dont know how to recompile or decompile any apks.....can you do it for me mate? ??
Nice Bro thanks
Can you make for me with my system UI? I don't have knowledge to do it
@idid idamrep Can you share the battery pngs? i have modified my SystemUI with Erhany's Guide
Will be grateful
Black_Eyes said:
@idid idamrep Can you share the battery pngs? i have modified my SystemUI with Erhany's Guide
Will be grateful
Click to expand...
Click to collapse
Here's my systemui, just extract it ?
https://www.dropbox.com/s/ub5menuj8hew72o/SystemUICM12(7.5).zip?dl=0
Just passing by to confirm that it works too under PA 5.1 (Lollipop 5.1.1) but I'm too lazy to edit the battery icon u.u
yes, it's work with PA 5.1.1 System UI.
anyway how i can change the battery icon ?
can someone guide me thanks
error in recompiling using advanced apktool 4.1 (apktool 2.0.0)
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : Sun 17-05-2015 0:26:13.34
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:35: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:36: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:41: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:146: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.RatingBar.Indicator'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
------------------------------------------------------
the systemUI is from the AICP 9.0 Rom xperia sp cm12.1 based. help me guys
ohmygel said:
the systemUI is from the AICP 9.0 Rom xperia sp cm12.1 based. help me guys
Click to expand...
Click to collapse
Have you installed the framework-res.apk from your ROM before decompiling (the first option)?
JaviMotta98 said:
Have you installed the framework-res.apk from your ROM before decompiling (the first option)?
Click to expand...
Click to collapse
Where can i find framework-res.apk sir? Shall i install it to my phone or to the computer? Actually, i got no error decompiling system ui and home. But when i recompile it, i got error on system ui.
Sent from my Xperia SP using XDA Free mobile app
not working on blisspop 3.4 with caf and my lg g2. I tried with signing the systemui, without, with putting in the manifest and meta-inf but nothing works
Work perfect on my Droid razr HD with CM12.1 rom. Many Thanks.
ohmygel said:
Where can i find framework-res.apk sir? Shall i install it to my phone or to the computer? Actually, i got no error decompiling system ui and home. But when i recompile it, i got error on system ui.
Sent from my Xperia SP using XDA Free mobile app
Click to expand...
Click to collapse
The framework-res.apk is already installed in your phone, as it's a system app. You have to install it in Advanced APKTool. The app is located in /system/framework/framework-res.apk. Copy it to the folder "2-In", open Advanced APKTool, select the first option and install the framework-res.apk.

[GUIDE][4.3 - 5.x.x] Xperia Lockscreen with Graphic Visualizer

Yep, this could sounds to repost, but not, in this case the Porting Guide works with 4.4.x (KitKat) too.
Let's go with this, then:
For try port to LP: here
If you, don't understand that guide, here I've a explain (In spanish only):
Requirements
- Have a Deodex ROM (Really Important)
- Have the signature verification for all apps disabled (a.k.a Superuser Mod) installed.
- Know compile/decompile and sign apps (here a lite guide, I recommend download it)
- Brain (Not much xD )
- Patient
- Notepad++
- Latest apktool (in this case)
First, JellyBean (4.3)
Step 1
- Decompile XperiaLockScreen.apk
- Download Smali for JB 4.3 Lockscreen (In Download Section) and merge "smali" folder to your decompiled XperiaLockScreen
Step 2
Go to XperiaLockScreen/res/layout/keyguard_no_security_view.xml, search the follow line
Code:
[COLOR="RoyalBlue"]<LinearLayout android:gravity="center" android:layout_gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">[/COLOR]
and add the red line down
Code:
[COLOR="Red"]<com.adi.rom.interface.MusicEqualizerVisualizer android:layout_gravity="bottom" android:id="@id/new_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="0.0dip">
<FrameLayout android:id="@id/new_custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@id/new_custom_visualizer_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</FrameLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>[/COLOR]
Some like 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"
}
Save it.
Step 3
Go to XperiaLockScreen/res/values/colors.xml
add these lines before of </resources>
Code:
[COLOR="Red"]<color name="new_custom_equalizer_fill_color">@color/didi2</color>
<color name="didi">@com.sonyericsson.uxp:color/somc_theme_accent_color_light</color>
<color name="didi2">@com.sonyericsson.uxp:color/somc_theme_accent_color_dark</color>
<color name="didi3">@com.sonyericsson.uxp:color/somc_accent_color_neutral</color>
<color name="didi4">@com.sonyericsson.uxp:color/semc_theme_illumination_color</color>[/COLOR]
If these lines don't leave compile, use only this
Code:
[COLOR="red"]<color name="new_custom_equalizer_fill_color">#96ffffff</color>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/dimens.xml
and add before of </resources>
Code:
[COLOR="red"] <dimen name="new_custom_eqalizer_path_effect_1">12.0dip</dimen>
<dimen name="new_custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="new_custom_eqalizer_path_stroke_width">24.0dip</dimen>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/ids.xml
and add before of </resources>
Code:
[COLOR="red"]<item type="id" name="new_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view">false</item>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/integers.xml
and add before of </resources>
Code:
[COLOR="red"]<integer name="new_custom_equalizer_divisions">4</integer>
<integer name="new_custom_equalizer_db_fuzz_factor">2</integer>
<integer name="new_custom_equalizer_db_fuzz">-10</integer>[/COLOR]
Step 4
Go to XperiaLockScreen/AndroidManifest.xml
and search
Code:
[COLOR="royalblue"]<uses-permission android:name="com.sonymobile.permission.READ_LOCKSCREEN_WALLPAPER"/>[/COLOR]
add the follow lines down
Code:
[COLOR="red"]<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>[/COLOR]
Step 5
- Compile XperiaLockScreen
- Sign it
- Push to System/app with the right permissions
- Download VisualizerStyleSettings.apk (from Download section) push to System/app with right permissions
Now with KitKat (4.4.x)
Step 1
- Decompile XperiaLockScreen.apk
- Download Smali for JB 4.3 Lockscreen (Yep, the same file, in Download Section) and merge "smali" folder to your decompiled XperiaLockscreen
Step 2
Go to XperiaLockScreen/res/layout/keyguard_no_security_view.xml, search the follow line
Code:
[COLOR="RoyalBlue"]<LinearLayout android:gravity="center" android:layout_gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">[/COLOR]
and add the red line down
Code:
[COLOR="Red"]<com.adi.rom.interface.MusicEqualizerVisualizer android:layout_gravity="bottom" android:id="@id/new_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="0.0dip">
<FrameLayout android:id="@id/new_custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@id/new_custom_visualizer_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</FrameLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>[/COLOR]
Some like this
Save it.
Step 3
Go to XperiaLockScreen/res/values/dimens.xml
and add before of </resources>
Code:
[COLOR="red"] <dimen name="new_custom_eqalizer_path_effect_1">12.0dip</dimen>
<dimen name="new_custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="new_custom_eqalizer_path_stroke_width">24.0dip</dimen>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/ids.xml
and add before of </resources>
Code:
[COLOR="red"]<item type="id" name="new_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view">false</item>[/COLOR]
Save it.
Go to XperiaLockScreen/res/values/integers.xml
and add before of </resources>
Code:
[COLOR="red"] <integer name="new_custom_equalizer_divisions">13</integer>
<integer name="new_custom_equalizer_db_fuzz_factor">20</integer>
<integer name="new_custom_equalizer_db_fuzz">-10</integer>[/COLOR]
Step 4
Go to XperiaLockScreen/AndroidManifest.xml
and search
Code:
[COLOR="royalblue"]<uses-permission android:name="com.sonymobile.permission.READ_LOCKSCREEN_WALLPAPER"/>[/COLOR]
add the follow lines down
Code:
[COLOR="red"]<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>[/COLOR]
Step 5
- Compile XperiaLockScreen
- Sign it
- Push to System/app with the right permissions
- Download VisualizerStyleSettings.apk (from Download section) push to System/app with right permissions
Step 6
- Decompile SystemUI.apk
- Download Smali for KK-LP SystemUI (In Download Section) and merge "smali" folder to your decompiled SystemUI
Step 7
Go to SystemUI/res/layout/status_bar_expanded.xml, search the follow line
Code:
[COLOR="RoyalBlue"]
</LinearLayout>[/COLOR]
and add the red line down
Code:
[COLOR="Red"]<com.adi.rom.interface.MusicEqualizerVisualizer android:layout_gravity="bottom" android:id="@id/new_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="0.0dip">
<FrameLayout android:id="@id/new_custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@id/new_custom_visualizer_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</FrameLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>[/COLOR]
Save it.
Step 8
Go to SystemUI/res/values/colors.xml
add this line before of </resources>
Code:
[COLOR="red"]<color name="new_custom_equalizer_fill_color">#96ffffff</color>[/COLOR]
Save it.
Go to SystemUI/res/values/dimens.xml
and add before of </resources>
Code:
[COLOR="red"]<dimen name="new_custom_eqalizer_path_effect_1">6.0dip</dimen>
<dimen name="new_custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="new_custom_eqalizer_path_stroke_width">6.0dip</dimen>[/COLOR]
Save it.
Go to SystemUI/res/values/ids.xml
and add before of </resources>
Code:
[COLOR="red"]<item type="id" name="new_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view_panel">false</item>
<item type="id" name="new_custom_visualizer_view">false</item>[/COLOR]
Save it.
Go to SystemUI/res/values/integers.xml
and add before of </resources>
Code:
[COLOR="red"]<integer name="new_custom_equalizer_divisions">4</integer>
<integer name="new_custom_equalizer_db_fuzz_factor">2</integer>
<integer name="new_custom_equalizer_db_fuzz">-10</integer>[/COLOR]
Step 9
Go to SystemUI/AndroidManifest.xml
and search
Code:
[COLOR="royalblue"]<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>[/COLOR]
add the follow lines down
Code:
[COLOR="red"]<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>[/COLOR]
Step 10
- Compile SystemUI
- Sign it
- Push to System/app with the right permissions
- Download VisualizerStyleSettings.apk (from Download section) push to System/app with right permissions
Screenies & Demo
JB 4.3
KK 4.4.x (CyanogenMod Visualizer don't works)
LP 5.x.x (Works almost all, except Lines Visualizer on Stock ROM)
Demo
Downloads
Smalies for JB 4.3
Smalies for KK/LP SystemUI
VisualizerStyleSettings
VisualizerStyleSettings Fix for Lollipop
Credits
@idid idamrep (For their port to JB 4.3)
@Adi Aisiteru Reborn (For their Guide for port to "All" Android devices)
@sebasrock156 (For port to KitKat and make this possible)

Categories

Resources