Hello Core Users This Is my First Guide in XDA...Thefe is many guides for thia but.. i'm trying to make it more easier than ever And Big thanks to those who ready Posted this guide In Xda Forum
Okay Lets Get To buisness
Requirements
-apktool
-RC/Dc (compile/decom)
-Brain.jar
Step 1
Decompile Ur SystemUI.apk
open res/layout/tw_status_bar_dual.xml or tw_status_bar.xml (Dual for dual sim users or single for single sim supp UI)
Step 2
Find This Line
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_Parrent" />
Step 3
Change This
<com.android.systemui.statusbar.policy.Clock
To
<DigitalClock
So It will become like This
<DigitalClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parrent" />
Save The Xml
Step 4
Recompile,sign,push,reboot
@credits
@me
@all those Who already posted thia guide
NOTE: I HAVE NO SS(SCREENSHOTS)
If u like My work press Thanks
i make this thread from my phone..s o thats whh..guide is overlapping blabla sorry guys
Oh great
Related
Hello,
Nice to see the activity in this new forum! Helps me a lot!
Question: Is it possible to change the blue color Asus TF uses for the clock/battery etc? Allso the loading screens with the blue glare.
Greetings!
it was a services.jar edit in 2.x, if i can ever get my computer to decompile/recomiple stuff properly, i could give it a shot..
Yeah, you need to open the the systemui.apk, replace desired .png, repackage, and push into /system/app.
Thanks, i'm gonna try it this evening!
Pacifik said:
Yeah, you need to open the the systemui.apk, replace desired .png, repackage, and push into /system/app.
Click to expand...
Click to collapse
The systemui.apk does not control the clock. It only controls the wifi connection and part of the battery. I belive that the services.jar controls the clock. I am still trying to figure that out but I do not know smali. I know this because I have 6 themes http://forum.xda-developers.com/showthread.php?t=1116139 and I have changed the battery and wifi on them all but no change to the clock.
the loading screens, if you mean the blue circle that spins though, SHOULD be a image inside systemUI or framework-res (i really need to get off my butt and look at 3.x in regards to theming)
Hey Pacifik, i've found the file status_bar_notification_area.xml in the SystemUi.apk. It's in the folder layout-xlarge. Theres an #colorcode, i believe from the clock. The only problem is i cant check because i get errors using apktool. It says 'exception in thread "main" brut etc etc etc... So i'm gonna figure that out first.
hasselaar_nl said:
Hey Pacifik, i've found the file status_bar_notification_area.xml in the SystemUi.apk. It's in the folder layout-xlarge. Theres an #colorcode, i believe from the clock. The only problem is i cant check because i get errors using apktool. It says 'exception in thread "main" brut etc etc etc... So i'm gonna figure that out first.
Click to expand...
Click to collapse
Here is what is in that xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:id="@id/notificationArea" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true"
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/notificationAndImeArea" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.tablet.InputMethodButton android:id="@id/imeSwitchButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:src="@drawable/ic_sysbar_ime_default" />
<com.android.systemui.statusbar.tablet.NotificationIconArea android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent">
<view android:layout_gravity="center_vertical" android:id="@id/icons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout" />
<View android:background="@drawable/notification_icon_area_smoke" android:clickable="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignLeft="@id/icons" android:layout_alignRight="@id/icons" />
</com.android.systemui.statusbar.tablet.NotificationIconArea>
</LinearLayout>
<LinearLayout android:gravity="center" android:id="@id/notificationTrigger" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.tablet.HoloClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textSize="40.0sp" android:textColor="#ff525e79" android:id="@id/time_solid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.tablet.HoloClock>
<TextView android:textSize="16.0sp" android:textColor="#ff606060" android:gravity="center" android:id="@id/network_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="6.0dip" android:layout_marginRight="6.0dip" android:singleLine="true" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="16.0dip">
<ImageView android:id="@id/bluetooth" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="4.0dip">
<ImageView android:id="@id/network_signal" android:paddingLeft="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/network_type" android:paddingLeft="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/network_direction" android:paddingLeft="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/network_roaming" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Ok I can confirm that I was incorrect. It is in the systemui.apk it is in the SystemUI\res\layout-xlarge\status_bar_notification_area.xml line 14 thanks to Roach2010 for finding this.
<TextView android:textSize="40.0sp" android:textColor="#ff525e79" android:id="@id/time_solid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
Hey Hatman, sorry i called you Pacifik...
I hope it's the right code... only my SystemUI.apk is messed up on the TF. It keepsshowing the Asus blinking bootscreen. I've tried some things to restore but so far nothing helps.
Is it possible to install a complete new rom form sd or something like that?
hasselaar_nl said:
Hey Hatman, sorry i called you Pacifik...
I hope it's the right code... only my SystemUI.apk is messed up on the TF. It keepsshowing the Asus blinking bootscreen. I've tried some things to restore but so far nothing helps.
Is it possible to install a complete new rom form sd or something like that?
Click to expand...
Click to collapse
If you are rooted then just install Prime 1.5 and it will fix that. I have just added the themed clocks to all of my themes. http://forum.xda-developers.com/showthread.php?t=1116139
If you have clockwork recovery you can reflash your rom or flashing a theme might fix it. What are you using?
Thanks for the help, but i fixed it: http://forum.xda-developers.com/showthread.php?t=1149111
hello i need your help with modifying the systemui.apk from touchwiz.
to start off i have decomplied the systemui.apk and framework-res.apk in my android dev linux vmware machine, i did load in the framworks + the twframework.
what i am trying to do is remove the brigness slider and the quick setting toggles from the notifaction bar and i did so by removing these lines from layout/tw_status_bar_expaneded.xml and i edited it on eclipse
<com.wanamlite.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_height" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel androidrientation="horizontal" android:id="@id/quicksetting_container" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
and
<LinearLayout androidrientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<LinearLayout androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip">
<ImageView android:id="@id/brightness_icon" android:clickable="true" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/ic_sysbar_brightness" android:contentDescription="@string/accessibility_brightness_icon" />
<FrameLayout android:id="@id/brightness_group" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/auto_brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</FrameLayout>
</LinearLayout>
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
after i did that i recomiled it with apktool and it had no problems, i copyed the orignal androidmanifest and meta-inf into the modified apk, zipaligned and made a flashable zip
when i booted the phone i had no status bar and the systemui was crashing so i restored it
moved to q&a as this is a question and not actual development work ready to be released. Please note for the future that questions go into the q&a section.
Also, you don't need to post the same question twice.... you posted the same thing at 11:15 yesterday and this one at 6pm yesterday...
Being annoying like that is no way to get help from anyone.
Brian Gove said:
Also, you don't need to post the same question twice.... you posted the same thing at 11:15 yesterday and this one at 6pm yesterday...
Being annoying like that is no way to get help from anyone.
Click to expand...
Click to collapse
Are you going to help because I'm here to learn
Sent from my SCH-I535 using xda app-developers app
I have been trying to figure this one out myself, but no luck so far. Been working on it all day and I'm very, very confused.
What I would like to do is take an existing ROM that does not currently have any alternate battery options in the status bar and add the option to have a text only battery percentage. I know I could create a theme and type out the percentages in pngs, but I would prefer to have it done as text through the ROM, so any font changes or color changes will follow without the images needing to be changed. I was under the impression it would require systemui or framework-res modifications, but if there's a way to create a theme that would do the same, that would be great. If anybody could direct me someplace that has what I need to learn, or willing to post what to do here, it would be greatly appreciated. I'm not asking anybody to make it for me, I'd like to learn it myself. I'm just at a loss right now. It's going on an AOSP 4.2.1 ROM, if that matters, on a Galaxy Nexus.
I have already looked through the status-bar.xml files on the ROM I'm trying to add it to, and compared that to the same file in an AOKP ROM and CM 10.1, and I see where they implemented it, I think. I'm just really not sure how this works and I honestly don't even know where to start to learn it. I assume the text battery has to be set up or defined someplace else besides status-bar.xml, so I doubt I can just change portions of that file to get what I want, but I don't really know where else to look. Any help or direction is appreciated. I want to learn what I can, and I have to start somewhere. I figure this is simple enough to start on. lol
This is the CM10.1 status-bar.xml battery code
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
AOKP status-bar.xml, which actually points to battery_cluster_view.xml, I think.
Code:
<include android:id="@id/battery_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/battery_cluster_view" />
AOKP's battery_cluster_view.xml
Code:
<FrameLayout android:id="@id/battery_combo" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:layout_gravity="right" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:id="@id/battery_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/Battery_Offset" />
<TextView android:id="@id/battery_text_center" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/Battery_Center" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.BatteryTextOnly" android:id="@id/battery_text_only" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.BatteryTextOnly_Low" android:id="@id/battery_text_only_low" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.BatteryTextOnly_Plugged" android:id="@id/battery_text_only_plugged" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</FrameLayout>
ROM I'm trying to add it to.
Code:
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Lol apparently I should have looked at this before I responded to your pm
Sent from my Galaxy Nexus using Tapatalk 2
HelLo Friends Today I Bring a Guide For removig am/pm from statusbar clock & header :laugh: After lots of researches Its Done & working Fine Get Back To Buisness U Can Compare Mine To Orgnl Thread I used diff methods
Orngl Thread Click below
forum.xda-developers.com/galaxy-s3/general/guide-small-pm-statusbar-ampm-t2075885/post36121782#post36121782
Requirements :-
-apktool/multitool
-notepad++
-decompiling/recompiling
Decompile Ur SystemUI.apk
open res/layout/tw_status_bar_dual.xml/tw_status_bar.xml
Find This Code
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="@color/tw_staus_bar_color_color" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
Change it Like This
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="0.0dip" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" />
Now Copy This Line
Code:
<com.shadesk.statusbar.statusbar.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" systemui:ampmSmall="true" />
Paste It Right Below Of the line U changed Before so after Making changes It will become like this
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
</LinearLayout>
<com.shadesk.statusbar.statusbar.Clock android:textSize="0.0dip" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" systemui:ampmSmall="true" />
Download The File Fron Attachment And Merge it to ur SystemUI/smali folder
Recompile Ur Work
Again Decompile The. Modified apk
open smali/com/shadesk/statusbar/statusbar/clock.smali & Public.xml from res/values/public.xml
Find This Lines In Clock.smali
Code:
const v16, 0x7f0a005d
Code:
const v11, 0x7f0a005c
Now In Public.xml find This Codes and replace It With clock.smali ids
Code:
const v16, 0x7f0a005d
and replace 0x7f0a005d to THe ID of <public type="string" name="quickpanel_twenty_four_hour_time_format"
next
Code:
const v11, 0x7f0a005c
and replace 0x7f0a005c to the ID of <public type="string" name="quickpanel_ampm_position_formatter"
Done
Save
Recompile
Sign
Push
Reboot
Credits
[MENTION]
gharringron
eboybasit
ShadeSK
[/MENTION]
Special Thanks To sir @gharrington for The real Gude
then eboybasit for testing
Thank U:victory:
Hit A Thanks If u like My Work2
reserved for Future updates
Nice??
nice om
Thanks Broda
Is there any way to add seconds to the clock?
I was Wondering if there is any way to add seconds to the clock
sourimr said:
I was Wondering if there is any way to add seconds to the clock
Click to expand...
Click to collapse
forum.xda-developers.com/galaxy-core/general/guide-digital-clock-t3041816
Tried it...it worked on my galaxy young!
Thanks alot
FREAKY SCROLLING TABS
Q - What? Wait wait once again Tab SystemUI!!
Ans - Yes, But created from scratch and easy to implement
I used PineappleTabs , FallingTabs but i wanted to implement something diff from them so i got the idea about freaky scrolling tabs. whats inside? okay see below
Features :-
10Tabs
Horizontal Scrolling
No Smali Editing
So, No need to discuss about this thing any further lets try to implement. But remember u should know how to implement pineapple tabs because i will not cover which xmls u need to open and edit and i'm not going to tell u guyz how to deal with xml coding & Error in cmd promt
Features :-
Apktool
Xml Skill
Knowledge of Dc/Rc
Brain.jar
STEP 1:-
- Decompile SystemUI.apk
- Download Smali files from attachment and extract it inside smali folder
STEP 2:-
- Open Expanded Header xml
- Open Expanded Xml
- Copy this line & paste it inside Header xml (Same as pineappleOwl's guide)
Code:
freaky.argha.scroll.A_R_G_H_A
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
-Now Copy below line and paste it inside expanded xml
Code:
<freaky.argha.scroll.D_A_S
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/view2"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textSize="50dp"
android:textColor="#ffffff"
android:text="Layout One"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Layout Two"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="LAyout3"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="LAyout4"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="LAyout5"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="LAyout6"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="LAyout7"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="LAyout8"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="LAyout9"/>
</ScrollView>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="LAyout10"/>
</ScrollView>
</freaky.argha.scroll.D_A_S>
STEP 3:-
-Recompile SystemUI
-Sign
-Push
-Reboot
-Enjoy
Contributors :-
ARGHA_DAS & Freaky Developers
Credits:-
StackOverFlow
FreakyDevelopers
PineappleOwl for TabSystemUI idea
Wow!... finally a mod that doesn't require smali editing...
Great work bro.
Sent from my GALAXY Core Prime VE (G361H)..
Mr said:
Wow!... finally a mod that doesn't require smali editing...
Great work bro.
Sent from my GALAXY Core Prime VE (G361H)..
Click to expand...
Click to collapse
Hehe
Cool guide
Sent from my MotoG3 using Tapatalk
FireLord said:
Cool guide
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
Thanks
No One Tested? ???