yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S III] ocoot:
anyone may can help me? on my phonestatusbar$mmyticker.smali with file given by the OP has many differences from that I have, it makes a problem when there is incoming notifications, my statusbar then FC when have notification... this is my log

E/AndroidRuntime( 1353): FATAL EXCEPTION: main
E/AndroidRuntime( 1353): java.lang.NullPointerException
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.phone.PhoneStatusBar$MyTicker.tickerStarting(PhoneStatusBar.java:2868)
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.phone.Ticker.addEntry(Ticker.java:222)
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.phone.PhoneStatusBar.tick(PhoneStatusBar.java:2880)
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.phone.PhoneStatusBar.addNotification(PhoneStatusBar.java:1247)
E/AndroidRuntime( 1353):	at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:338)
E/AndroidRuntime( 1353):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1353):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1353):	at android.app.ActivityThread.main(ActivityThread.java:4963)
E/AndroidRuntime( 1353):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1353):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1353):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
E/AndroidRuntime( 1353):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
E/AndroidRuntime( 1353):	at dalvik.system.NativeStart.main(Native Method)

may anyone help me to editing my phonestatusbar$ticker, i attach my ticker with 2 file: PhoneStatusBar$MyTicker.smali (mod) and PhoneStatusBar$MyTicker_ori.smali (ori) thanks and please help me :angel:

https://www.dropbox.com/s/z6oh8mm86xdzaxf/ticker.rar
[Verizon Samsung Galaxy S III] ildar2099:
Hey, what needs to change in framework-res in this manual?
[Verizon Samsung Galaxy S III] a0ry:
nice work work fine in my GT 6310 thx u mate

and your sinature lol same like my wife thinking hahaha
[Verizon Samsung Galaxy S III] Rekjezt™:
help

please help me...!!!

what can i do for my log..i'am follow you guide in Clock Statusbar Mod v2.0, but always forceClose..again and again

please help me...

this my log...

https://www.dropbox.com/s/efzk049tb4a3tpr/mylog.txt
[Verizon Samsung Galaxy S III] maskerwsk:
Hi. Ive done this on the note 3 on 4.3 and ive got it working...kind of. The am/pm and day of week all work fine but center clock makes the clock disappear altogether. I had a look at the one you did [MENTION=2910757]Didact74[/MENTION] and from what i can gather the center clock method is kind of as above. The update clock method and the method protected makeStatusBarView. Is ther anything im missing do you think?
[Verizon Samsung Galaxy S III] Rogers Alavrez RoGod:
I still haven't seen a complete guide that bad,bad,bad
[Verizon Samsung Galaxy S III] EMSpilot:
Has anyone got this working on 4.3?

Howdy,

Has anyone got this working on 4.3?

Thanks
[Verizon Samsung Galaxy S III] sbreen94:
Yes you need to rematch the id's and access code numbers
[Verizon Samsung Galaxy S III] danivancouver:
Hi all, I will try to express the best that you can.

I'm trying to doing the Multiple Lockscreen MOD

http://xdaforums.com/showthread.php?t=2120008

I fault the execution of SecSettings.apk, I get failure to execute blocking options screen ..

I have reviewed the LockScreenSettings.smali Clock Statusbar Mod v2.0 with Multiple Lockscreen and is different to the guide ....

I have tried both settings and still have the error ..

Any help?

My phone is n7000
[Verizon Samsung Galaxy S III] alvin551:
I don't understand why you have put :fingers-crossed: in 16+ different threads and so many people have liked it. Have you got a plot to get the most likes or something?
[Verizon Samsung Galaxy S III] Johnnysauur:
Sprint note 2

Just wondering, but would this work on the note 2? I cant find any guides for it.. But some of the files are different on the note 2. I tried to follow the guide but when I got to systemui, things started being out of place..
[Verizon Samsung Galaxy S III] sbreen94:
Yes it will work fine but you will need to do some minor tweaking to get it to work
[Verizon Samsung Galaxy S III] 1brainsurgeon:
Has anyone been successful in implementing the clock styles mod on the Sprint Note 3 NC5?
[Verizon Samsung Galaxy S III] maskerwsk:
I've done it on the n9005 note 3
[Verizon Samsung Galaxy S III] 1brainsurgeon:
Care to share your method?
[Verizon Samsung Galaxy S III] maskerwsk:
Same as this mate. Works fine
[Verizon Samsung Galaxy S III] 1brainsurgeon:
SystemUi edits are not the same on 900P :eek:
[Verizon Samsung Galaxy S III] sbreen94:
They aren't exactly the same, but they are very close. You'll just need to make minor edits
[Verizon Samsung Galaxy S III] cbucz24:
Ehh, a lot of the touchwiz is similar. I've been using the mods from intl note 2, s3, s4, etc. They all work with playing a bit.

That's why I always make a flashable stock backup first. so when I break things I can still fix it. :D
[Verizon Samsung Galaxy S III] sbreen94:
Exactly what I said :D [emoji108][emoji106]
[Verizon Samsung Galaxy S III] Fissleboot:
Thanks, I have ported this to a non Samsung 4.1.2 device and believe it will work with most aosp based devices, I was wondering if the op cared if I wrote a tutorial for aosp based devices using his code as a base
[Verizon Samsung Galaxy S III] upndwn4par:
There is little difference between TW and AOSP for this mod, so why create a new thread when you can just share your changes here?
[Verizon Samsung Galaxy S III] Fissleboot:
I don't have a problem sharing here:) just was asking permission. I will get together my code changes and post guide here
[Verizon Samsung Galaxy S III] upndwn4par:
It's usually more helpful to try and keep everything in one place. :)

If you want to try and take this mod a step further, look here.
[Verizon Samsung Galaxy S III] rompnit:
Sent you a PM ;)
[Verizon Samsung Galaxy S III] Fissleboot:
Nice :) I will try it when I get time
[Verizon Samsung Galaxy S III] dec0der:
Hey mate, can you pls help me with the last 2 parts in editing systemui.apk? Seems that I can't find the right code to place the additional codes in red. Thanks in advance.
[Verizon Samsung Galaxy S III] Didact74:
Guys, as always anyone is welcome to use my stuff for whatever they want. All I ask is to throw me a few Thanks and give credit in any new posts or threads referencing whatever you want to use. Technically "my stuff" is everyones stuff anyway considering i read other peoples stuff to figure out how to do my stuff. Does any of the stuff I just said make sense? LOL :)
[Verizon Samsung Galaxy S III] Fissleboot:
Makes perfect sense, [emoji3] i have since ported the left clock mod, not color or transparent status bar as i already have gradient, check out my rom for my device AWE Inspired Moonshine currently working on an L themed rom also
[Verizon Samsung Galaxy S III] dec0der:
Guys, can anyone teach me how to add AM/PM on status bar? Will really appreciate it. Thanks
[Verizon Samsung Galaxy S III] Fissleboot:
To help we need more info... Such as what device u have, android version, exactly what ur issue is, etc...
[Verizon Samsung Galaxy S III] eyesore123:
will this work ona any cm9 roms? :confused:
[Verizon Samsung Galaxy S III] Fissleboot:
Should just give it a shot... May need some improvising... As i had to with my device

---------- Post added at 09:53 PM ---------- Previous post was at 09:06 PM ----------

Im actually gonna write my own guide when i get time that uses a seperate statusbar.smali in settings to make things easier:) its similar to didacts rom control setup
[Verizon Samsung Galaxy S III] eyesore123:
pls post it if you have..

i had problems decompiling after following this guide :(
[Verizon Samsung Galaxy S III] Fissleboot:
Problems decompiling??? Or do u mean recompiling? Im in the middle of a new release for my rom after that i should b able to write it up :)
[Verizon Samsung Galaxy S III] eyesore123:
i mean, recompiling .. i got errors
[Verizon Samsung Galaxy S III] Fissleboot:
Can u post the log :) what tool are u using?? Which apk?? Are u familiar with editing apk files?? The goal is to get settings.apk working first b4 changing systemui.apk
[Verizon Samsung Galaxy S III] eyesore123:
heres the log:

*im using TickleMyAndroid

*settings.apk

* yes, i am
[Verizon Samsung Galaxy S III] Fissleboot:
Do u c the "parameter" error u must b using the guide in op... The smali code is of old type needs converted to new type...Try my guide which is more aosp based with newer smali code its a few posts bk
[Verizon Samsung Galaxy S III] eyesore123:
thanks ill try that

---------- Post added at 09:28 PM ---------- Previous post was at 08:53 PM ----------

i cant find "# static fields" in my DateTimeSettings.smali. :confused: what to do now?
[Verizon Samsung Galaxy S III] Fissleboot:
Add above # instance fields like this:

# static fields

.field private static resources:Landroid/content/res/Resources;
[Verizon Samsung Galaxy S III] eyesore123:
thanks,

i cant find this code in my PhoneStatusbar.smali

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v5, 0x7f0d00e6

invoke-virtual {v0, v5}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, /widget/LinearLayout;

iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mCenterClockLayout:Landroid/widget/LinearLayout;

.line 464
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

const v5, 0x7f0d002e

invoke-virtual {v0, v5}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;

move-result-object v0

iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mTickerView:Landroid/view/View;

:confused:
[Verizon Samsung Galaxy S III] Fissleboot:
U can actually skip that part as i never added the layout to ticker... Did ur settings apk work??

Edit: dont add field mcenterclocklayout either
[Verizon Samsung Galaxy S III] eyesore123:
my settings worked but i have a problem on recompiling systemui ..heres the log
[Verizon Samsung Galaxy S III] Fissleboot:
C the missing ids... U will have to replace them with what urs are in ur statusbar.xml
[Verizon Samsung Galaxy S III] josephpatrick:
4.4.2?

is there a way to get it working on 4.4.2 for i9300? Anyone has any ideas....thanks

I went through all the posts and this is my understanding....

I am quite confused after reading 230 posts....not sure if the following steps are right

SecSettings

1) configure array

2) add strings

3) xml changes

4) DateTimeSettings.smali changes

a) add 3 lines to #instance fields and 1 line to #interfaces

b) modify method .method public onCreate(Landroid/os/Bundle;)V with 0x7f07001c==> date_time_prefs in SecSettings

c) create new method .method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z

I am able to see the new options under "Date Time Settings". So far so good....maybe

SystemUI

1) dont have tw_status_bar.xml, so targetting status_bar.xml

2) replaced the xml code provided in OP but with the following changes

left_icons==>notification_icon_area

right_icons==>system_icon_area

icons==>status_bar_contents

tw_signal_cluster_view===>signal_cluster_view

status_bar_background====>system_bar_background

not sure what doNotDisturbIcon and tw_dnd

3) added ids

4) the confusion for me starts here....

in PhoneStatusBar.smali, replace .method public showClock(Z)V with code provided in OP

but I need confirmation of the following codes

0x7f0d003d==>"signal_cluster" or "clock"

0x7f0d011f==>notification_inspect_item, is this right?

for method, .method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

The code is not at all matching with what I have. Someone said it this part is not important.

what is the public xml equivalent to "0x7f0d0120"

5) I then extracted all files from zip

for PhoneStatusBar$MyTicker.smali I changed access$ codes as suggested, pulling right values from phonestatusbar.smali

I changed the 0x codes again taking the right values from framework

<public type="anim" name="push_down_in" id="0x010a0031" />

<public type="anim" name="push_down_out" id="0x010a0033" />

<public type="anim" name="push_up_in" id="0x010a0035" />

<public type="anim" name="push_up_out" id="0x010a0036" /

0x10a0001===>??? didnt find this value in framework

should i performing the same steps for

Clock.smali

-Clock$1.smali

-Clock$SettingsObserver.smali

-ClockCenter.smali

-ClockStock$1.smali

-ClockStock.smali ==> what are 0x104008d and 0x104008c??

For me, it is Fc'ing

Note: i do not find some codes in 4.1.2 framework files
[Verizon Samsung Galaxy S III] Kamy:
Knock Knock! Anybody~

I have done settings on lollipop and I can see those option is settings now I am going to modify SystemUI.apk hope not much changes in lollipop.

I would be thankful if anybody has any advise that I should take for SystemUI modification. :fingers-crossed:

Edit: if anybody has done this on lollipop would you please send me those smalis for SystemUI. thanks
[Verizon Samsung Galaxy S III] montebello13:
didnt see any mention of TW in the OP, thanks for clarifying.
[Verizon Samsung Galaxy S III] tsw_sweden:
Great!

Will add into my ROM. Thanks man! (Credit and link will be given ofcourse)
[Verizon Samsung Galaxy S III] MattBooth:
Didact74, I think you forgot to include this:

.implements Landroid/preference/Preference$OnPreferenceChangeListener;

in the guide.

;)
[Verizon Samsung Galaxy S III] Didact74:
Whoops! indeed I did. I will fix it now.

Thanks Kryten!
[Verizon Samsung Galaxy S III] PetritH:
I get Installation aborted while trying to install, im runing Ultimarom, thanks.
[Verizon Samsung Galaxy S III] gfausey211:
Same here on Clean Rom 5.6
[Verizon Samsung Galaxy S III] enewman17:
Also noticed this missing in the PhoneStatusBar.smali

.field mCenterClockLayout:Landroid/widget/LinearLayout;

This was missing from my PhoneStatusBar.smali, not sure if it was part of mod but it was also the only difference between your files and mine... also not mentioned in the guide.

.line 310
iput-boolean v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mClosing:Z

I also had problems with my SecSettings FC at boot up until I added ".field private" to the following.

.field mClockAmPmstyle:Landroid/preference/ListPreference;

.field mClockStyle:Landroid/preference/ListPreference;

.field mClockWeekday:Landroid/preference/ListPreference;

One more thing.... I did your mod all is working well in my AT&T UCDLK3 ROM But when the Center Clock option is chosen the Clock in upper left of the status bar expanded pull down disappears. When the clock option is in the stock placement it's all good. Wondering if you have the same problem?

This is a GREAT mod BTW.... Keep up the good work.
[Verizon Samsung Galaxy S III] Didact74:
replace all code in your SystemUI/res/layout/tw_status_bar_expanded_header.xml with this code.....

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.ClockCenter android:textSize="32.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/center_clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" android:fontFamily="sans-serif-light" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffcbcbcb" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="72.0dip" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>

Thanks rompnit!
[Verizon Samsung Galaxy S III] enewman17:
That did it, Thanks
[Verizon Samsung Galaxy S III] enewman17:
I'm really enjoying this mod, thanks again.

One thing I hope you will consider for v3.0 is keeping the stock layout of the notification pull down. I like the centered clock with the day. And well... from the screen shots below you can see what I'm talking about. Having the day in front of the time is redundant since it already has the date and day after the time... it's ugly IMO. It also does this for the stock position too "obviously". I would tackle it myself but I don't know how. Thanks again, it was a pretty easy mod to implement into my AT&T ROM
[Verizon Samsung Galaxy S III] Didact74:
drop one in res/layout

drop the other in smali/com/android/systemui/statusbar/policy

check your dropdown.
[Verizon Samsung Galaxy S III] KoolKidd_23:
Is there a way to add some color to this mod?
[Verizon Samsung Galaxy S III] enewman17:
Thanks I can't wait to get home from work. :D
[Verizon Samsung Galaxy S III] rompnit:
You just need to modify the xml color codes in tw_status_bar.xml and tw_status_bar_expanded_header.xml
[Verizon Samsung Galaxy S III] enewman17:
I see what you did there... genius!!! I was thinking about how to change that.... this was much easier than what I was thinking. This mod is perfect now. Thank you so much for your hard work and dedication to making the S3 a really great device. You are part of the reason XDA is so great!
[Verizon Samsung Galaxy S III] MattBooth:
That code isn't working for me :(

---------- Post added at 08:44 PM ---------- Previous post was at 08:36 PM ----------

Doesn't work for me :(

EDIT:

For me, it's just status_bar_expanded_header.xml, not the tw_ one :) And I just added "Stock" to the Clock part. Cheers! :D
[Verizon Samsung Galaxy S III] Mr Impossible:
Didact74 great mod but I'm getting a white stock clock and a blue center clock aosp like.

I would like both like the stock look but can't find where to change the color for center clock

maybe use ClockStock instead of Clock?

What did I do wrong?

Thx
[Verizon Samsung Galaxy S III] widokeren:
can you help me what should i check for framewok-res and systemui?

this error from logcat:

FATAL EXCEPTION: main

java.lang.NoSuchFieldError: com.android.systemui.statusbar.phone.PhoneStatusBar.mCenterClockLayout

at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:626)

at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3015)

at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:2984)

at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:456)

at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:480)

at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:208)

at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)

at android.app.ActivityThread.access$1700(ActivityThread.java:140)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1319)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:137)

at android.app.ActivityThread.main(ActivityThread.java:4946)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:511)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1036)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:803)

at dalvik.system.NativeStart.main(Native Method)

FATAL EXCEPTION: main

java.lang.NoSuchFieldError: com.android.settings.DateTimeSettings.mClockStyle

at com.android.settings.DateTimeSettings.onCreate(DateTimeSettings.java:134)

at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:796)

at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035)

at android.app.BackStackRecord.run(BackStackRecord.java:635)

at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1397)

at android.app.Activity.performStart(Activity.java:5215)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2083)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)

at android.app.ActivityThread.access$700(ActivityThread.java:140)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:137)

at android.app.ActivityThread.main(ActivityThread.java:4946)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:511)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1036)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:803)

at dalvik.system.NativeStart.main(Native Method)

and 1 more thing i cant find method com.android.systemui.statusbar.phone.PhoneStatusBar.access$3202

can i know what code inside it?

for information i using SHV-E210K S3 Korean version code is little bit different.

thank you so much before for your kind..
[Verizon Samsung Galaxy S III] Didact74:
Replace your center clock code in tw_status_bar.xml with this one

<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/center_clock_layout" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ClockCenter android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff959595" android:ellipsize="none" android:gravity="center" android:id="@id/center_clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>