yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Goldie:
Ok I've done this on my phone and I will be very surprised if it works but I have no pc for a few days. Its not a very efficient way to do it but without a pc its difficult. Replace update clock method in ClockStock with this. ...

.method final updateClock()V

.locals 4

.prologue

.line 125

iget-object v0, p0, Lcom/android/systemui/statusbar/policy/ClockStock;->mCalendar:Ljava/util/Calendar;

invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

move-result-wide v1

invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

.line 126

invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/ClockStock;->getSmallTime()Ljava/lang/CharSequence;

move-result-object v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/policy/ClockStock;->setText(Ljava/lang/CharSequence;)V

const/4 v3, 0x1

invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/ClockStock;->getContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "clock_style"

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

const/4 v1, 0x0

if-ne v2, v1, :cond_0

.line 320

const/4 v0, 0x0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/policy/ClockStock;->setVisibility(I)V

.line 323

:goto_0

return-void

.line 322

:cond_0

const/16 v0, 0x8

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/policy/ClockStock;->setVisibility(I)V

goto :goto_0

.line 127

.end method

Then replace com.....clock in statusbar expanded with clockstock. Logcat it if it fails :)
[Galaxy S II General] BoriKing:
this is the error i get while trying to compile

[581,94] Error for input '/': Invalid text

[581,99] Error for input '/': Invalid text

[581,89] no viable alternative at input 'Ljava'

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: C:\APK-Multi-Tool\other\..\projects\SystemUI.apk\smali\com\android\systemui\statusbar\policy\ClockStock.smali

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)

at brut.androlib.Androlib.buildSources(Androlib.java:214)

at brut.androlib.Androlib.build(Androlib.java:205)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:228)

at brut.apktool.Main.main(Main.java:79)

take your time m8 i'm in no rush i can wait till you can get to your pc (tomorrow , sunday, next week..).

thanks
[Galaxy S II General] Goldie:
What is line 581 now for you? Looks like a typo
[Galaxy S II General] BoriKing:
I will take a look @ that line, once I get back home. My day just started @ work.
[Galaxy S II General] BoriKing:
This is how line 581 look

so i manage to recompile by adding the ; )

flash it and SystemUI force closed
[Galaxy S II General] BoriKing:
finally accomplish what i wanted thanks to Josehg

here is what i did

http://xdaforums.com/showpost.php?p=45572749&postcount=181

and thank you so much Goldieking for all your help
[Galaxy S II General] Goldie:
Oh ok. But it doesnt show in dropdown when you select no clock as you wanted does it?
[Galaxy S II General] BoriKing:
No :(

If is possible and you can help me on that i'm all ears.

If not is ok @ least I don't have that clock in drop down while clock is to the right.
[Galaxy S II General] Christian Nothing:
hey BBoy ,

the same question from my PM ;)

can you help me with that ?
[Galaxy S II General] criss-cross123:
thanks for all
[Galaxy S II General] gaosphappy:
hey all.. after a little help if i may.

I have followed [MENTION=519261]Losts[/MENTION]toneman's guide linked in post #4 for single line date in drop down notification bar (see screen shot below)

As you will see it has worked well... However you will also notice that it is also VERY small :cyclops: at this point i went to follow his guide to increase the text size only to find that my line has different text to his...

All is not lost i thought text size etc will be somewere else ?? :confused: next stop res/values/styles.xml and boom there it is great lets set it to 22.0dips as in lost stoneman's post recompile push to system/app and well the result remains as screen shot below..

My question is what am i missing here should i be looking some were else for this text size as well or instead of?

many thanks in advance :eek:

http://xdaforums.com/attachment.php?attachmentid=2268835&stc=1&d=1379615424
[Galaxy S II General] Many40:
Hi,

In the guide it's clearly stated what you should change. Try with following:

After: ....StatusBar.Expanded.Date" put this code (use spaces before and after):

android:textSize="22.0dip"

So even the guide says: "it should be" but if it's not (your case) you should just add the code to your line.

You can also use this:

android:textStyle="bold"

if you want your text to be bolded.
[Galaxy S II General] gaosphappy:
thanks m8 for the reply will give that a go.. :eek:
[Galaxy S II General] Tired Storeman:
Hey mate, thanks for highlighting the fact that every rom may not have the size of the date text included in the

tw_status_bar_expanded_header.xml.:good:

I have edited my tutorial to show where to add the text size if it is not already present.
[Galaxy S II General] BryanChia:
did you see the picture i attached ?

the 1st one is stretch portrait right, but its like so tiny, pretty much like landscape, nothing changes, im soooo confused /.\
[Galaxy S II General] Vivek_Neel:
Thanks mate..for the link.

He he. ..already I downloaded v1.5.2 and tested.

It works ..

[MENTION=3973489]engloa[/MENTION] thanks for the suggestion.
[Galaxy S II General] Spannaa:
The resolution of your screenshot makes it almost unreadable again and you've not said exactly what you're trying to do...
[Galaxy S II General] engloa:
9patch not your cup of tea?

Use photoshop to edit the .9 pngs, just make sure you don't make changes to the black borders of every side.

Sent through my Neighbor's Open Wifi.
[Galaxy S II General] BryanChia:
Soo sorry, I always print screen and then paste it on paint and upload :/

Well I watched the video that sale gave me, I dont know what to do with the notification_panel forgot the name, amd the guy in the video uses other png file..

I can use ps but then I dont get whats the point using it cause I did try once, and I didnt see any border around it
[Galaxy S II General] _Sale_:
Another link for you

http://xdaforums.com/showthread.php?t=2326393
[Galaxy S II General] MyLifeRocks10:
With all these links we are making him even more confused. :p:D
[Galaxy S II General] ICS_XD:
:D:D:D
[Galaxy S II General] Spannaa:
In your attachment it looks the filename is "notification_panel_bg.png" i.e. not a .9.png so why are you using draw9patch on it?

If you want a stretchable image then you should be working on the decompiled "notification_panel_bg.9.png". If it's decompiled, the black 9 patches will show up and you can check for bad patches by clicking the "Show bad patches button".

If you want a full background, use a normal image editor (e.g. Photoshop) on a 480px x 800px normal png named "notification_panel_bg.png" and replace "notification_panel_bg.9.png" in the drawable-hdpi folder with this.

You really need to read and learn a lot more before jumping in, getting stuck and asking random questions...
[Galaxy S II General] Vivek_Neel:
Atlast spannaa gets angry it seems.

Chill .

Bryan..

You have tutorial/guide/Google
[Galaxy S II General] electricsheepdreamer:
Paste it in Photoshop then when you hit save as jpeg, set quality 12 (maximum).

I need to set up apktool. It looks like fun :)

Edit: this is the best guide thread I've ever seen.:thumbup:
[Galaxy S II General] Spannaa:
Not angry mate, just frustrated ;)
[Galaxy S II General] engloa:
I know the feeling mate.

I've told Bryan 2-3 times to search and read up everything he can find before starting to mod apks.

Sent through my Neighbor's Open Wifi.
[Galaxy S II General] Sun90:
Lol, all i foresee here for now is this:)

either Bryan will succeed in the Modding stuff or u guy's will endup forgetting all the modding stuff onceforall ;)
[Galaxy S II General] alen1901:
Bryan, please, dont just ask randomly here. Google it first, play with it, try to figure it out on your own. That way your brain is working with full load and you will easier catch all what you succseded. It just doesnt make any logic to post so many questions, all the same but different approach. There is no easy way with this, in other words, we cant explain every single step for you, thats why there are nice people who make tutorial videos and posts. Dont find yourself ofended with this post, its not meant for that. Its meant to direct you to the right way. That theming is not something you will figure out in a day or two, it needs time (if you are not really into that like spanna, engloa, bbb, me etc).

Btw when we are talking about pngs.

9.png is not the same as .png and it acts different. First, dont touch 9.pngs until you manage to change/edit normal .pngs. After that, go to 9.png editing, but use google, not that many xda posting like you do here. And if something is really a problem or you cant find it, ask here. :)

Sent from Sparkling Nexus 4
[Galaxy S II General] THE RED BLUR:
Wow only days ago it was only 4 pages here. :eek::D

So glad everybody listened and started to show this thread some love:):thumbup:

It is moving at meep speed now :D:p;)
[Galaxy S II General] bombaybadboy:
Certainly getting lots of useful links posted for this thread, nice one guys, how is everyones mod coming along :)
[Galaxy S II General] Spannaa:
Haven't time for my own mods - it's too busy here!
[Galaxy S II General] engloa:
Who's got time for one's mod when we're busy answering Bryan, searching links for him?:D:p

Sent through my Neighbor's Open Wifi.
[Galaxy S II General] bombaybadboy:
Thats what I mean its a combined mod by bryan, engloa, spannaa, salesale, myliferocks10, cfi, alen1901, tdunham, esd,you have all built it :) hope he adds credits :D
[Galaxy S II General] deaddead:
great all in one thread. thankssssssss:D
[Galaxy S II General] gaosphappy:
thanks for that... great job by the way.. works and looks great....great guide.

Thanks for the help [MENTION=2174044]Many40[/MENTION] :good: :eek:

http://xdaforums.com/attachment.php?attachmentid=2271991&stc=1&d=1379747671
[Galaxy S II General] BoriKing:
Hello

Anyone knows of a guide for statusbar icons color on the fly (color picker)?

I been searching all over I haven't had any luck.
[Galaxy S II General] Tired Storeman:
Does anybody know if it is possable to find out the name of a particular png using hierarchyviewer?

I am trying to find out the name of the Sub headings background in a ported S4 secsettings.

I am trying to center the sub header text, ie the word Accounts in the below screenshot

In S2 secsettings i can do it by adding

after

<style name="Widget.DeviceDefault.TextView.ListSeparator" parent="@style/Widget.Holo.TextView.ListSeparator">

in framework-res/styles,

but this does nt effect the text in S4 ported Secsettings:confused:
[Galaxy S II General] Goldie:
Search the decompiled apk for its id using "find in files" in notepad++. Then you can see where it is and what to change
[Galaxy S II General] Goldie:
Sorry guys!! I forgot this! For reappearing brightness slider....

In PhoneStatusBar$28.smali find this code in .method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V and delete the red line....

const/4 v4, 0x2

if-ne v1, v4, :cond_6

.line 3565
iget-object v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$28;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

iget-object v4, v4, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->brightnessController:Landroid/view/View;

[COLOR="Red"] invoke-virtual {v4, v7}, Landroid/view/View;->setVisibility(I)V[/COLOR]

Same here....

const-string v4, "STATUSBAR-PhoneStatusBar"

const-string v5, "BATTERY_STATUS_CHARGING"

invoke-static {v4, v5}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I

goto/16 :goto_1

.line 3569
:cond_6
iget-object v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$28;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

iget-object v4, v4, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->brightnessController:Landroid/view/View;

const/16 v5, 0x8

[COLOR="red"] invoke-virtual {v4, v5}, Landroid/view/View;->setVisibility(I)V[/COLOR]

And here...

const-string v4, "STATUSBAR-PhoneStatusBar"

const-string v5, "LOW_BATTERY"

invoke-static {v4, v5}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I

goto/16 :goto_1

.line 3574
.end local v1 #battStatus:I
:cond_7
iget-object v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$28;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

iget-object v4, v4, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->brightnessController:Landroid/view/View;

[COLOR="red"] invoke-virtual {v4, v7}, Landroid/view/View;->setVisibility(I)V[/COLOR]

Think thats all :)
[Galaxy S II General] Many40:
[MENTION=3065070]Goldieking[/MENTION] - where have you been mate when I was spending hours to find a solution? ;)

It works !!!!!!!!! :thumbup::thumbup::thumbup::thumbup::thumbup:

You are the Man.
[Galaxy S II General] bombaybadboy:
I had plenty of people give me solutions but none of them worked. Glad to see this one does :)
[Galaxy S II General] Goldie:
Glad I could help and sorry I forgot and left you so long! :D
[Galaxy S II General] Tired Storeman:
Is there any way of finding it without an id,

It only shows @42779588

can i find it with that?
[Galaxy S II General] Many40:
No problem mate, most important is that you saved me from another hours/days of trials and errors. :)

Btw If you don't mind I would ask you another question - after playing a little with BS toggle I reminded myself an old lidroid brightness toggle bug. It's related to changing only between "auto" and 100%" modes regardless what is set in AdvanceS app (any brightness levels between 0-100% are skipped).

TBH the first Dev who came to my mind who might have found a workaround for that it's you mate ;)
[Galaxy S II General] darth_mickrig:
Hi guys. I hope you can help me with this thing. So I applied this mod http://xdaforums.com/showthread.php?t=2254022 to our S2. I'd say that it is functional for 95%. SecSettings part is working fine for what I have testet. Long-press actions are taken. But one bug still persists. When I try to change volume when screen is off with activated mod, both buttons will turn down the volume. Turning it up with turned off screen is impossible. I'm attaching the three relevant files before and after modding and hope that someone can give me a pointer.
[Galaxy S II General] BoriKing:
Can someone please tell me the name of the .png responsible for the lidroid toggles slider and where is located?

I know for stock toggles they are:

tw_quick_panel_quick_setting_button_bg_normal.9.png and tw_quick_panel_quick_setting_button_bg_pressed.9.png
[Galaxy S II General] tdunham:
All lidroid toggle icons are located in system/framework/lidroid-res.apk in the res/drawable-hdpi folder of that file.
[Galaxy S II General] mjz2cool:
what does the Water Ripple Effect+Toggle do?
[Galaxy S II General] bombaybadboy:
Just gives you a water ripple lockscreen and a toggle in settings to switch on or off

Sent from my GT-I9100
[Galaxy S II General] mjz2cool:
ok, thanks, and the aosp one, i can get the aosp lockscreen working, but not the toggle, my secsettings force closes
[Galaxy S II General] bombaybadboy:
Then you may have missed something so double check your secsettings.apk

Sent from my GT-I9100
[Galaxy S II General] Goldie:
No use without a log mate...
[Galaxy S II General] mjz2cool:
how can i make a logcat file? and what debug level should i use?
[Galaxy S II General] bombaybadboy:
How to make a logcat you will find in first post but maybe worth checking over your edits to SecSettings.apk first

Sent from my GT-I9100
[Galaxy S II General] Goldie:
Just post the dumpstate_app_error.txt.gz from data/log after checking the file as BBB said :)
[Galaxy S II General] Tired Storeman:
Hey Mate, just a heads up, you might want to check the link on 1st post for paint dot net, it is for

Warren Paint & Color Co.

i think it should be

paint.net
[Galaxy S II General] bombaybadboy:
Ah thankyou m8 I will check it as soon as I can get on the pc. I find paint.net the best for free so I need that link to work :thumbup::)

Sent from my GT-I9500
[Galaxy S II General] HighlanderZA:
Guys - the link takes ME to the correct place - nothing wrong with it?????

Straight to the Paint.net page!
[Galaxy S II General] bombaybadboy:
Just checked on my phone and it is the right link as Highland said. Being free it does have a lot of adverts on the download page but download link is in the top right corner of that page

Sent from my GT-I9500
[Galaxy S II General] Tired Storeman:
oh ok, sorry bout that,

this is the page i get when i click on the link, is this what you get?
[Galaxy S II General] bombaybadboy:
Thats strange :confused: but I get this on my device

Sent from my GT-I9500
[Galaxy S II General] Tired Storeman:
Hmmmm thats weird, i get the same page as you when i use my phone, but the other one if i use my computer
[Galaxy S II General] HighlanderZA:
Hi TS - I see the Paint.net tab there in your SS.

Did some adware somewhere not open that weird page as well perhaps?:confused:

I get the one below on the PC.:confused:
[Galaxy S II General] Goldie:
Hey guys...today I found an apktool apk to do mods whilst on my phone. I had some fun playing with ripple. Try this....

Find this line in CircleUnlockRippleRenderer....

iput v3, p0, Lcom/android/internal/policy/impl/sec/CircleUnlockRippleRenderer;->refractiveIndex:F

Change the value in the line above it to 0x1. So it becomes const v3, 0x1.

Makes ripple real nice ;)
[Galaxy S II General] mjz2cool:
can you post a screenshot?
[Galaxy S II General] bombaybadboy:
Have you ever tried posting a ss of ripple lockscreen :D

Sent from my GT-I9500
[Galaxy S II General] Goldie:
Here's a short vid. Its laggy due to the video capture app but you get the idea...

https://www.youtube.com/watch?v=Gx56leWmU00&feature=youtube_gdata_player
[Galaxy S II General] mjz2cool:
i did actually :p
[Galaxy S II General] SkyaTura:
I've tryed to compile SystemUI.apk almost a hundred times, using how many ApkTools versions and scripts i found in the internet, including this amazing app i found it which de/compile and signe from your own android. However, no matter what i do, and sometimes just do nothing except decompile and compile again, when a put SystemUI.apk on system/app folder the UI System crashes every 5 seconds and don't show status bar...

How can i fix that?

(i'm using 4.1.2 stock ROM)
[Galaxy S II General] Goldie:
Get the dumpstate_app_error.txt.gz from data/log. Did you install frameworks?
[Galaxy S II General] mjz2cool:
that's quite awesome, wil try tomorrow :)
[Galaxy S II General] BoriKing:
I been playing with it for a week, but every .apk I build I end up in bootloop.
[Galaxy S II General] SkyaTura:
Yes, my closest result was made with Apk MultiTool, and following installation batch script I installed both framework-res.apk, twframework-res.apk and systemui.apk

The compile process don't show any errors

ps: log.txt is attached to post and splitted in 4 parts because was too big to attach '-'
[Galaxy S II General] mjz2cool:
did you open the original apk and copy the files (except for android manifest file) from the build folder to the apk? cause when you use the apk from dist folder you'll have to sign it, and all the other apk's from system as well(as far as i have experienced)
[Galaxy S II General] mjz2cool:
have tried it, but doesn't work, it's in android.policy.jar right?
[Galaxy S II General] Goldie:
Doesn't work? You know its not a massive change right? Just alters the refraction of the water. Yes CircleUnlockRippleRenderer is in policy
[Galaxy S II General] mjz2cool:
in my smali file its iput v5 instead of v3, does that matter?
[Galaxy S II General] Goldie:
Then it should be const v5, 0x1
[Galaxy S II General] mjz2cool:
it is actually
[Galaxy S II General] Goldie:
Then I guess its working but you don't notice
[Galaxy S II General] SkyaTura:
May anyone upload stock SystemUI.apk from 4.1.2 Samsung for me? I think mine is already modded?

Leveraging, what is the right way to replace system apks?
[Galaxy S II General] cbucz24:
there really isnt a "right" way to do it. but there are a few ways that you can do.

#1 first and foremost, it has to be a compatible file. YOU CANNOT use just any systemui.apk from any rom or phone. if it does not match you can have tons of errors or just not be able to boot into the rom.

using a root explorer, push to /system/app, change permissions, reboot

use any of the available flashable zips, insert the apk in question into the correct place and flash it in recovery.

ask someone else to do it for you that has knowledge of it ;)
[Galaxy S II General] SkyaTura:
i'm using the SystemUI.apk i found in /system/app. But when I replace with Root Explorer, starts to crash every 5 seconds x.x
[Galaxy S II General] cbucz24:
yep that will happen. your using your systemUI while your trying to replace it. its not happy about that.

you can do it, ive done it before. make sure the system partition is mounted as writeable, copy/paste it into the system folder. change permissions to rw/-/- and reboot
[Galaxy S II General] SkyaTura:
Well, thanks. I was skiping reboot step :P

Everything works fine now and my statusbar is finally tranparent

Now i'm playing with other mods. Does CRT off + toogle works on stock 4.1.2?

Sent from the most annoying newbie ever on a GT-I9100 using xda app-developers app
[Galaxy S II General] Tired Storeman:
Question regarding .9.pngs

Does resizing .9.pngs break the draw 9 patch, like it does if you do not recolor them properly?
[Galaxy S II General] Goldie:
Why do you need to resize a .9? They stretch :)
[Galaxy S II General] Tired Storeman:
I want to use S4 Thumb Switches on S2

i know they stretch, do they shrink as well, or will they need to be resized?
[Galaxy S II General] cbucz24:
A 9 patch file is controlled by the OS. It will stretch up and down according to the container its in.

As long as its patched correctly, it should work fine. Although im not sure why you would need it to be smaller?

Most 9's are fairly small because of that ability.
[Galaxy S II General] Goldie:
Who knows the difference between these screens and why is it COOL?!?
[Galaxy S II General] bombaybadboy:
Your battery lasted a day and a half or removed your battery icon and have percentage instead. Or maybe lost the faded look that ripple lockscreen gives so status bar blends in :confused:

Sent from my GT-I9500
[Galaxy S II General] remuntada78:
maybe the first is whit ripple effect?
[Galaxy S II General] Goldie:
Both with ripple ;)

We eliminated the cloudiness and improved the ripple. Now no cloudiness in dark wallpapers :D
[Galaxy S II General] bombaybadboy:
So no more of that shadow down the left side, really great work mate :thumbup::thumbup:

Sent from my GT-I9500
[Galaxy S II General] Goldie:
Nope...no more shadow or terrible lookin dark walls. See here....

https://www.youtube.com/watch?v=wDhLA-Zmo78&feature=youtube_gdata_player
[Galaxy S II General] remuntada78:
how to do this?
[Galaxy S II General] Goldie:
Will post detailed thread soon :)
[Galaxy S II General] Goldie:
http://xdaforums.com/showthread.php?t=2471373

Enjoy :)
[Galaxy S II General] bombaybadboy:
Also added to first page because guides can get lost in this thread :) thanks again m8 :thumbup:

Sent from my GT-I9500