[Q] Removing Overlay Text on Battery Mod - Android Q&A, Help & Troubleshooting

Hello all,
I have submitted and successfully updated my device (Archos43) with the Crysis Battery Mod and it works like a champ. The problem is that the original archos battery icon has a text overlay of the battery capacity (0-100). This doesn't work with the mod, because the mod has the capacity in the img.
I have looked into the extracted framework-res.apk's \res\layout\battery_status.xml and have modified the two TextViews to have an alpha of 00, but that didn't work either.
I was curious if anyone has experience with this and could point me in the right direction.
(I think this is the proper place for this post..)
Thanks!
RJV
(battery_status.xml)
Code:
(battery_status.xml)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/frame" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="*Removed, less than 8 posts!*">
<FrameLayout android:background="@drawable/battery_charge_background" android:paddingLeft="1.0px" android:paddingTop="25.0px" android:layout_width="141.0px" android:layout_height="184.0px">
<LinearLayout android:orientation="vertical" android:id="@id/meter" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_width="fill_parent" android:layout_height="15.0dip" />
<ImageView android:id="@id/spacer" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/level" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<TextView android:textSize="48.0dip" android:textStyle="bold" android:textColor="#ffffff00" android:gravity="center" android:id="@id/level_percent" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</FrameLayout>
<TextView android:textSize="30.0dip" android:textStyle="bold" android:textColor="#ffffff00" android:gravity="center_horizontal" android:id="@id/status" android:paddingTop="35.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/battery_status_charging" android:singleLine="true" />
</LinearLayout>

Please use the Q&A Forum for questions Thanks
Moving to Q&A

Bump.
Also some updated information. It appears that looking at the framework-res.apk was the incorrect place to look. It now seems like I have to work with the services.jar. I have narrowed it down to updateBattery() function within StatusBarPolicy.smali. Does anyone have any information that would lead me in the right direction?
Thanks!

Related

[Q] no DATE in notification bar expanded view

I am making a theme for a rom and wanted to add date just below the quick panel settings.
I edited the status_bar_expanded.xml with the below code.
----------------------------------------------------------------------------
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0sp">
[B][COLOR="Red"]<com.android.systemui.statusbar.DateView android:textStyle="bold" android:textSize="9.0sp" android:id="@id/date" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:paddingLeft="1.0dip" android:paddingBottom="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />[/COLOR][/B]
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_clear_default_small_normal" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="" style="\?android:attr/buttonStyle" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" 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">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/ongoingTitle" android:background="#d7000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/latestTitle" android:background="#d7000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</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>
</com.android.systemui.statusbar.ExpandedView>
---------------------------------------------------------------------------
but still date is not displayed. Screenshot attached
can anyone help me out.?
also the colour of date doesnt change.
any ideas???
thanx
mirajp1 said:
I am making a theme for a rom and wanted to add date just below the quick panel settings.
I edited the status_bar_expanded.xml with the below code.
----------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView androidrientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="horizontal" android:background="@drawable/title_bar_portrait" androidaddingTop="3.0dip" androidaddingRight="3.0dip" androidaddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0sp">
<com.android.systemui.statusbar.DateView android:textStyle="bold" android:textSize="9.0sp" android:id="@id/date" android:textColor="#ffffffff" android:layout_gravity="center_vertical" androidaddingLeft="1.0dip" androidaddingBottom="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_clear_default_small_normal" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="" style="\?android:attr/buttonStyle" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" androidverScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout androidrientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/ongoingTitle" android:background="#d7000000" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/latestTitle" android:background="#d7000000" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</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>
</com.android.systemui.statusbar.ExpandedView>
---------------------------------------------------------------------------
but still date is not displayed. Screenshot attached
can anyone help me out.?
also the colour of date doesnt change.
any ideas???
thanx
Click to expand...
Click to collapse
are you trying to use the stock dateview and just move it, if so it will not work. because it has to be told to show lookup the sources for the systemui.apk (github aosp framework_base/packages/systemui/) in aosp there is not much differnece between it and the sony one. and you will see that the date view is told when to show and hide.
so you either have to modify the smali to tell it to show your new view (that is in a dfferent parent) OR you create a new dateview class and call that (thats what i did lol)
hope thats not too vauge for you. also use code tags around your code and stuff in future it is easyer to read that way.
Pvy.
thats what i did
thanx pvyparts for reply.
now i got a start so i guess I will find out a way.
I dont know how to edit smali files so i guess will try adding a new class.
can you tell me how to add a class?
EDIT:
also i dont want to show date at specific date and time.I want it permanently there.
there's a thread here from which i tried to port the dateview smali: http://forum.xda-developers.com/showthread.php?t=1316574
but it didn't work, so i'm wondering how i can add it to the systemUI.apk. also, i'm wondering how can we put the settings button there - i can place the button beside the dateview (or in my case the placeholder text) but i can't make it initiate any action and to launch settings.apk.
do you have any clue maybe, pvyParts?
thanks!
mirajp1 said:
thats what i did
thanx pvyparts for reply.
now i got a start so i guess I will find out a way.
I dont know how to edit smali files so i guess will try adding a new class.
can you tell me how to add a class?
EDIT:
also i dont want to show date at specific date and time.I want it permanently there.
Click to expand...
Click to collapse
I know that's what you did cause that's what I did first too LOL!!
See my reply below
donjamal said:
there's a thread here from which i tried to port the dateview smali: http://forum.xda-developers.com/showthread.php?t=1316574
but it didn't work, so i'm wondering how i can add it to the systemUI.apk. also, i'm wondering how can we put the settings button there - i can place the button beside the dateview (or in my case the placeholder text) but i can't make it initiate any action and to launch settings.apk.
do you have any clue maybe, pvyParts?
thanks!
Click to expand...
Click to collapse
Yes and yes and yes.
that dateview is still the android one and needs to be configured/called to work.
Grab my system ui from the team Rom and have a look at how did it. that class may not work with it some other stuff tho but your free to try it.
I will removed the team stuff from my dateview and post the smali here for you and you are welcome to use it. just gimme a day or so.
Creating a class is not add easy as it sounds you need a way to compile it ect ect. I use eclipse and dummy apps * many programming skillz required*
As for settings button that would require either smali mods or a custom button again. Not small task in smali.... Easy from sources. I might make one aswell. Depends if get time or not. :-B
Pvy.
Sent from my TEAM Powered Arc S
pvyParts said:
I know that's what you did cause that's what I did first too LOL!!
See my reply below
Yes and yes and yes.
that dateview is still the android one and needs to be configured/called to work.
Grab my system ui from the team Rom and have a look at how did it. that class may not work with it some other stuff tho but your free to try it.
I will removed the team stuff from my dateview and post the smali here for you and you are welcome to use it. just gimme a day or so.
Creating a class is not add easy as it sounds you need a way to compile it ect ect. I use eclipse and dummy apps * many programming skillz required*
As for settings button that would require either smali mods or a custom button again. Not small task in smali.... Easy from sources. I might make one aswell. Depends if get time or not. :-B
Pvy.
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
thanx pvy
waiting for that.
till then i will try it out from your rom(downloading takes time for me..slow connection lol )
thnx pvyParts! i wonder if you could share the "how-to" not just the results i wanna learn as much as i can... thnx again!
donjamal said:
thnx pvyParts! i wonder if you could share the "how-to" not just the results i wanna learn as much as i can... thnx again!
Click to expand...
Click to collapse
Of course mate
Sent from my TEAM Powered Arc S
pvyParts said:
Of course mate
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
hey pvyparts any updates?
btw do you know which programming language is used in smali files.
google didnt give any satisfactory answer...
mirajp1 said:
hey pvyparts any updates?
btw do you know which programming language is used in smali files.
google didnt give any satisfactory answer...
Click to expand...
Click to collapse
Sorry guys got sent away with work and totally forgot. Lol. be back soon
Smali is smali lol.... google davlic opcode will get you some more info on it
Sent from my Transformer TF101 using XDA Premium HD app
Thanx for the reply...
And yes waiting for answer
Sent from my X10

Align avatar pic on bottom of sent/received text (Mms.apk)

Hi! I'm modding my Mms.apk and I've added some speech bubbles etc. I want to place the avatar pic on the bottom of the layout, not on the top. I've tried diferent android:layout_gravity="bottom" but I haven't solved my problem...
Check the code please and tell me how to align avatar on bottom...
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.mms.ui.MessageListItem android:orientation="horizontal" android:id="@id/msg_list_item_recv" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/mms_layout_view_parent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<view android:id="@id/avatar" android:layout_width="@dimen/avatar_width_height" android:layout_height="@dimen/avatar_width_height" android:layout_alignParentLeft="true" class="com.android.mms.ui.QuickContactDivot" position="right_middle" android:layout_gravity="fill_vertical" android:layout_gravity="bottom"
xmlns:android="http://schemas.android.com/apk/res/android" />
<LinearLayout android:orientation="vertical" android:id="@id/message_block" android:background="@drawable/listitem_background" android:layout_width="wrap_content" android:layout_height="wrap_content" android:minHeight="@dimen/avatar_width_height" android:layout_toRightOf="@id/avatar" android:layout_alignParentRight="false">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="@android:color/black" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top" android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="#ff6f6f6f" android:id="@id/date_view" android:background="#00ffffff" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/locked_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_lock_message_sms" />
<ImageView android:id="@id/delivered_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_delivered" />
<ImageView android:id="@id/details_indicator" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_details" />
</LinearLayout>
<ViewStub android:id="@id/mms_layout_view_stub" android:layout="@layout/mms_layout_view" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<ViewStub android:layout_gravity="center_vertical" android:id="@id/mms_downloading_view_stub" android:layout="@layout/mms_downloading_view" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.mms.ui.MessageListItem>
Please don't let this get lost in the forums.. I just need a dev to look at the code and tell me where I should put Android gravity to make avatar align on bottom.. Please
hi i also modifying.. that but i cant put it in the bottom
please help us to do this..
Sent from my MyPhone A848 Duo using XDA Premium 4 mobile app

[Q]Help needed editing status_bar_tracking.xml!

I'm on ICS and I've modded my status_bar_tracking.xml to look like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]">
<FrameLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:paddingLeft="20.0dip" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_gravity="bottom" android:text="@string/ticklefish1" />
<TextView android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:text="@string/ticklefish2" />
<com.android.systemui.statusbar.phone.CarrierLabel android:paddingRight="20.0dip" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="right|center" android:layout_gravity="bottom" />
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@id/close">
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</com.android.systemui.statusbar.phone.TrackingView>
This shows me some text at the bottom of my pull-down notifications screen then my carrier label, all above an image.
I've tried to get the two TextViews and the carrier label together (so I get "Ticklefish - Vodafone", for example) and I came up with this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]">
<RelativeLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_alignParentBottom="true" >
<TextView android:id="@+id/ticklefish2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:text="@string/ticklefish2" android:layout_centerInParent="true" />
<TextView android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:text="@string/ticklefish1" android:layout_toLeftOf="@id/ticklefish2" android:layout_alignBottom="@id/ticklefish2" />
<com.android.systemui.statusbar.phone.CarrierLabel android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:layout_toRightOf="@id/ticklefish2" android:layout_alignBottom="@id/ticklefish2" />
</RelativeLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@id/close">
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</com.android.systemui.statusbar.phone.TrackingView>
It didn't work, all the text vanishes. I've tried all sorts of things but I can't get it to work. Anyone got any ideas?

[Q] [Help!] Remove AT&T from Status Bar

I've a lovely ZTE Z998, and I enjoy it very much. I've been modding it slowly, and I've come to a liking with its look and feel. I've installed the Xposed Modules, Gravitybox and Tinted Status Bar, and I enjoy the flush design. There is just one flaw in it. I can not seem to remove the statusbar estate stealing 'AT&T' insignia on the left side. I wish to remove this completely, or maybe even a change to white would be okay. I will attach a screenshot of the bar, as well as my systemui.apk.
Phone: ZTE Z998 Mustang.
Version: 4.1.2
Carrier: AT&T.
Root: Yes.
status_bar.xml -
<?xml version='1.0' encoding='utf-8' ?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" androidrientation="vertical" android:id="@com.android.systemui:id/status_bar" android:background="@com.android.systemui:drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants">
<ImageView android:id="@com.android.systemui:id/notification_lights_out" androidaddingLeft="6.0dip" androidaddingBottom="2.0dip" android:visibility="gone" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@com.android.systemui:drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/icons" androidaddingLeft="6.0dip" androidaddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.BarLabel android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Sim" android:ellipsize="marquee" android:layout_gravity="center_vertical" android:id="@com.android.systemui:id/barlabel" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone" android:addStatesFromChildren="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:marqueeRepeatLimit="1" />
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@com.android.systemui:id/moreIcon" android:visibility="gone" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@com.android.systemui:drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" androidrientation="horizontal" android:id="@com.android.systemui:id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@com.android.systemui:id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@com.android.systemui:id/signal_battery_cluster" androidaddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@com.android.systemui:id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@com.android.systemui:id/battery" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@com.android.systemui:id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/ticker" androidaddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@com.android.systemui:id/tickerIcon" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@com.android.systemui:id/tickerText" androidaddingTop="2.0dip" androidaddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@com.android.systemui: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>
Thanks for any help!
BrendonButton said:
I've a lovely ZTE Z998, and I enjoy it very much. I've been modding it slowly, and I've come to a liking with its look and feel. I've installed the Xposed Modules, Gravitybox and Tinted Status Bar, and I enjoy the flush design. There is just one flaw in it. I can not seem to remove the statusbar estate stealing 'AT&T' insignia on the left side. I wish to remove this completely, or maybe even a change to white would be okay. I will attach a screenshot of the bar, as well as my systemui.apk.
Phone: ZTE Z998 Mustang.
Version: 4.1.2
Carrier: AT&T.
Root: Yes.
status_bar.xml -
<?xml version='1.0' encoding='utf-8' ?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" androidrientation="vertical" android:id="@com.android.systemui:id/status_bar" android:background="@com.android.systemui:drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants">
<ImageView android:id="@com.android.systemui:id/notification_lights_out" androidaddingLeft="6.0dip" androidaddingBottom="2.0dip" android:visibility="gone" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@com.android.systemui:drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/icons" androidaddingLeft="6.0dip" androidaddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.BarLabel android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Sim" android:ellipsize="marquee" android:layout_gravity="center_vertical" android:id="@com.android.systemui:id/barlabel" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone" android:addStatesFromChildren="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:marqueeRepeatLimit="1" />
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@com.android.systemui:id/moreIcon" android:visibility="gone" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@com.android.systemui:drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" androidrientation="horizontal" android:id="@com.android.systemui:id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@com.android.systemui:id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@com.android.systemui:id/signal_battery_cluster" androidaddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@com.android.systemui:id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@com.android.systemui:id/battery" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@com.android.systemui:id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/ticker" androidaddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@com.android.systemui:id/tickerIcon" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@com.android.systemui:id/tickerText" androidaddingTop="2.0dip" androidaddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@com.android.systemui: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>
Thanks for any help!
Click to expand...
Click to collapse
open root explorer on your phone
go to
/system/customize/ACC and open default.xml in text editor scroll almost to the bottom
there you will find a line with sku_id. change this to 42 (international) the att in the status bar will be gone after you save the file and reboot (att stock is 7)
toolhas4degrees said:
open root explorer on your phone
go to
/system/customize/ACC and open default.xml in text editor scroll almost to the bottom
there you will find a line with sku_id. change this to 42 (international) the att in the status bar will be gone after you save the file and reboot (att stock is 7)
Click to expand...
Click to collapse
It seems I do not have that folder, unless I am doing something incorreftly. I will attach some screenshots.
For referenxe, I entered the system folder on my root browser, and it was not there.
Bumping because I don't want to go further without your help.
BrendonButton said:
Bumping because I don't want to go further without your help.
Click to expand...
Click to collapse
I am on a htc 0ne m8, but if you dig around you will find a default.xml file some where with sku_id.
Hmm, I will search for it. Thank you for the help so far. c:
toolhas4degrees said:
I am on a htc 0ne m8, but if you dig around you will find a default.xml file some where with sku_id.
Click to expand...
Click to collapse
I searched my phone inside and outside of system, and found no such file. /:
BrendonButton said:
I searched my phone inside and outside of system, and found no such file. /:
Click to expand...
Click to collapse
Idk maybe it is a different xml file on your phone then..?
toolhas4degrees said:
Idk maybe it is a different xml file on your phone then..?
Click to expand...
Click to collapse
Would you possibly know any other files like this? I had assumed we could change the status_bar.xml inside of my systemUI.apk to do this.
BrendonButton said:
Would you possibly know any other files like this? I had assumed we could change the status_bar.xml inside of my systemUI.apk to do this.
Click to expand...
Click to collapse
all i know is that the att is set by the sku id. (aka carrier id) and to get rid of this you will most likely need to find the xml file that contains an sku id line and change it.
if you have a link to your rom, I will dig around and try to find it. but it might take me a while as I work 12 hrs a day.
toolhas4degrees said:
all i know is that the att is set by the sku id. (aka carrier id) and to get rid of this you will most likely need to find the xml file that contains an sku id line and change it.
if you have a link to your rom, I will dig around and try to find it. but it might take me a while as I work 12 hrs a day.
Click to expand...
Click to collapse
How should I go about linking you my ROM?
Bumping in hopes of an answer.

[StatusBarMods]Battery Percentage Text Statusbar for Lollipop

Battery percentage text with color changer controller .
What you will need
==> A lollipop rom (May work in other android versions too. I'm not sure.)
==> Apktool and a bit knowledge about it.
==> files.zip and controller.apk(optional) from below.
1) Decompile your SystemUI.apk
2) Copy the arefin folder from files.zip to decompiled systemui/smali/com/
3) Go to res/layout/status_bar.xml
4) Open that with notepad++ or any text editor
5) Now add this line
Code:
<com.arefin.batterytext.ArefinBatteryTextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" android:paddingStart="7.0dip" android:layout_centerVertical="true" android:paddingTop="2dp" android:layout_centerHorizontal="true" />
Like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_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">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
<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_alignParentStart="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<com.arefin.batterytext.ArefinBatteryTextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" android:paddingStart="7.0dip" android:layout_centerVertical="true" android:paddingTop="2dp" android:layout_centerHorizontal="true" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
<ViewStub android:id="@id/ticker_stub" android:layout="@layout/status_bar_ticker" android:inflatedId="@id/ticker" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Ok all done. Recompile your SystemUI.apk then push it in system/priv-app/SystemUI/
if you want to change color then you can use the controller apk .
Screenshots below ..
Works perfect, but cause a problem in my phone.
I set an alarm and turn off my phone, then when the phone turns on for the alarm, sistemui force close and i have to force reboot my phone by hold power button.
This not happen with unmoddified sistemui.apk.
Any help? Thanks for share your knoweledge with us.
oberworld said:
Works perfect, but cause a problem in my phone.
I set an alarm and turn off my phone, then when the phone turns on for the alarm, sistemui force close and i have to force reboot my phone by hold power button.
This not happen with unmoddified sistemui.apk.
Any help? Thanks for share your knoweledge with us.
Click to expand...
Click to collapse
Thanks for submitting bug report. I will look forward to find a solution for that problem.

Categories

Resources