[DEV][MODDING] CRT, Airview, 4-way reboot, ink effect, phone, sms..etc [9/Dec/2013]

Spannaa

Recognized Contributor / Themer
Sep 13, 2010
7,022
15,699
268
Cardiff
spannaa.com
Can anyone please help me change the way my phone shows the current Date in the Notification bar?

PS: I think its in SystemUI.apk.. Maybe some smali files needs to be edited... like DateView.smali or R$string.smali ot some other smali file perhaps :confused: I did do some "editing" here and there but that didn't help me either.. And here's a picture to make this look more clear:



(I know that this is not the proper place to post my request and I'm sorry for that)​
On my S3/NeatROM/4.3 this is set in:

SystemUI.apk\res\values\strings.xml

The line to edit depends on what date format you have set on your phone.

It ought to be either
Code:
    <string name="status_bar_date_format_day_month">" 
EEE, d MMMM"</string>
or
Code:
    <string name="status_bar_date_format_month_day">" 
EEE, MMMM d"</string>
Not sure if you'll get a blank first line like this though - if you don't, try adding \n (new line) on the top line instead of the single space.

The style is set in SystemUI.apk\res\values\styles.xml
<style name="TextAppearance.StatusBar.Expanded.Date"...

Of course, it may be completely different on your device and setup...
 

Sami Kabir

Senior Member
Oct 3, 2012
2,233
1,406
0
Thanks for your reply mate.. I did a little more editing and this is what I got:



Now all I have to do is get rid of the "day of the week" on the first line... And sorry, I didn't understand what you wrote towards the end:

Not sure if you'll get a blank first line like this though - if you don't, try adding \n (new line) on the top line instead of the single space...
 

Spannaa

Recognized Contributor / Themer
Sep 13, 2010
7,022
15,699
268
Cardiff
spannaa.com
Thanks for your reply mate.. I did a little more editing and this is what I got:



Now all I have to do is get rid of the "day of the week" on the first line... And sorry, I didn't understand what you wrote towards the end:
Do you have
Code:
<string name="status_bar_date_format_day_month">"EEEE
EEE, d MMMM"</string>
If so, change it to
Code:
<string name="status_bar_date_format_day_month">" 
EEE, d MMMM"</string>
and the \n thing was for if this didn't put the date on the bottom line of the two
Code:
<string name="status_bar_date_format_day_month">"\n 
EEE, d MMMM"</string>
 
  • Like
Reactions: Sami Kabir

cbucz24

Senior Member
Jan 31, 2011
2,757
2,897
0
Central Florida
Values-sw359dp-land-xxhdpi not exist on note3.. no values for landscape mode. Adding this from mega 5.8 (6×4) app drawer and mod 4x6 portrait... using compatible mega 5.8 accuweather force auto rotate works with minor bug.. test on note2 with note3 pack.. now using it on g7102.. G7102 already have sw359dp-land but need to force also coz no rotation config.

Random from SM-N9005 + SM-G7102 + G34R
On 4.3 my note3 has the sw359dp. Now on 4.4 they changed it to sw360dp.
I would assume I can't just add the old value folder and it work.
In the sw360dp integers I added the config line needed. Then added the line also I'm the androidmanifest.xml and signed it. But it still didn't rotate. I'm a bit lost as where else to look. I've diffed the files out an the lines needed are there

Sent from my SM-N900T using Tapatalk 2
 

inamie

Senior Member
Aug 16, 2012
592
193
0
KLang
On 4.3 my note3 has the sw359dp. Now on 4.4 they changed it to sw360dp.
I would assume I can't just add the old value folder and it work.
In the sw360dp integers I added the config line needed. Then added the line also I'm the androidmanifest.xml and signed it. But it still didn't rotate. I'm a bit lost as where else to look. I've diffed the files out an the lines needed are there

Sent from my SM-N900T using Tapatalk 2
I'm still using note3 with 4.3 MJ7. Note sure on kitkatt. Does it has Folder "Values-sw360dp-land"?

ref to my G7102: HERE

Random from SM-N9005 + SM-G7102 + G34R
 
Last edited:

Sami Kabir

Senior Member
Oct 3, 2012
2,233
1,406
0
Do you have
Code:
<string name="status_bar_date_format_day_month">"EEEE
EEE, d MMMM"</string>
If so, change it to
Code:
<string name="status_bar_date_format_day_month">" 
EEE, d MMMM"</string>
and the \n thing was for if this didn't put the date on the bottom line of the two
Code:
<string name="status_bar_date_format_day_month">"\n 
EEE, d MMMM"</string>
That's the problem, I don't have it... These are the only ones I've got in my String.xml file:

Code:
<string name="quickpanel_month_day_year">E, MMM d</string>
<string name="quickpanel_day_month_year">E, d MMM</string>
<string name="quickpanel_year_month_day">yyyy MMMM d</string>
It sure is different in different versions of Android / TouchWiz UI
 

cbucz24

Senior Member
Jan 31, 2011
2,757
2,897
0
Central Florida
That's the problem, I don't have it... These are the only ones I've got in my String.xml file:

Code:
<string name="quickpanel_month_day_year">E, MMM d</string>
<string name="quickpanel_day_month_year">E, d MMM</string>
<string name="quickpanel_year_month_day">yyyy MMMM d</string>
It sure is different in different versions of Android / TouchWiz UI
In systemUI.
Status_bar_expanded_header.xml it could start with tw

I'm not at my pc right now to tell you the line exactly.

It's set up in fairly the way it's displayed on your phone. There will be lines there that display and control what content is where. I've moved stuff around a lot.

Sometimes you can simply remove lines. Doing it this way can at times break the ui, so make a flashable backup.
you can set it to ("invisible").
Find its name and in dimens.xml set height to 0.0px
Or in styles make it transparent using the hex code.


Sent from my SM-N900T using Tapatalk 2
 

ocoot

Senior Member
Apr 29, 2012
720
928
0
Semarang, Central Java
www.facebook.com
Thanks for your reply mate.. I did a little more editing and this is what I got:



Now all I have to do is get rid of the "day of the week" on the first line... And sorry, I didn't understand what you wrote towards the end:
go to tw_status_bar_expanded_header, now search this
Code:
com.android.systemui.statusbar.policy.DateView
then, add this android:singleLine="true" before />
 

Sami Kabir

Senior Member
Oct 3, 2012
2,233
1,406
0
go to tw_status_bar_expanded_header, now search this
Code:
com.android.systemui.statusbar.policy.DateView
then, add this android:singleLine="true" before />
I did that (last night) but this removes the second line.. not the first one..

Sent from my GT-I9070
 

ocoot

Senior Member
Apr 29, 2012
720
928
0
Semarang, Central Java
www.facebook.com
I did that (last night) but this removes the second line.. not the first one..

Sent from my GT-I9070
edit
open strings.xml, find this

<string name="status_bar_date_formatter">%1$s
%2$s</string>

or similiar like that, and now jus make it like this

<string name="status_bar_date_formatter">%2$s</string>
 
Last edited:
  • Like
Reactions: Sami Kabir

tkari4

Senior Member
Jan 24, 2010
2,231
6,982
0
Hey guys hows it been?

I have a question that im hoping someone can answer. @majdinj has it listed to edit enable the launcher rotation. not smart rotation. but force rotation by editing the integers.xml on the SecLauncher.

Its editing the line
HTML:
<integer name="config_screenOrientation">1</integer>
Is this something that is inherent to touchwiz? is there smali code that its attached too? What im asking is what makes this reference line work?

I know im on my fancypants note 3 but i cant find anything that relates to it and ive looked through all of my note 2 files where this worked.

My note 3 has seclauncher4 and it doesnt have that line. i tried adding it but that didnt change it either?
Try this one: http://forum.xda-developers.com/showthread.php?p=51289563#post51289563

;)
 

Javho

Senior Member
Nov 26, 2012
325
20
0
hi all anyone knows how can i disable the popup window when i active the bluettoht in the notification panel ? thanks in advance
 

bullonwheels

Senior Member
Oct 23, 2012
94
44
0
Pune
Long press menu button to kill app
[/hide]
Hi, I was successfully able to port the function to my phone (SG Young S6312; JB 4.1.2).
But I want to use the back key, instead of menu key.
I did try @Mirko ddd 's port(both methods), but both times it resulted in bootloop (http://forum.xda-developers.com/gal...-to-kill-tw-roms-updated-25-nov-2012-t1969499).
Could you please guide me how i can switch the function to back key? (My phone does not support multiwindow, but the codes are present)

Thanks.
 
can i try this tutorial for JB 4.2 MTK device sir ?? :confused:
Of course you can try. I will say no matter what version of touchwiz your on, unless it's the exact version in here its going to be different.
Just takes time an practice. Make backups!

Sent from my SM-G900T using Tapatalk 2[/QUOTE]

Thanks broo :fingers-crossed: always backing up :good:
 

spotter-ssol

Member
Apr 26, 2011
34
10
0
SSOL
Hi! First, sorry my english and my very limited skills at coding!

I'm on Neatrom 4.8 lite (4.1.2) and I wanna reduce the original number of options at reboot menu from (reboot, hot boot, download, recovery) to just (reboot, recovery).
I've decompiled & edited GlobalActions$SinglePressAction.smali inside android.policy.jar from:
Code:
# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/4 v0, 0x4

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "Reboot"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "Hot Boot"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "Download"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "Recovery"

    aput-object v2, v0, v1

    sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

    return-void
.end method
and did this:

Code:
.method static constructor <clinit>()V
    .locals 3

    const/4 v0, 0x[COLOR="Red"][B]2[/B][/COLOR]

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "Reboot"

    aput-object v2, v0, v1

    [STRIKE]const/4 v1, 0x1[/STRIKE]

    [STRIKE]const-string v2, "Hot Boot"[/STRIKE]

    [STRIKE]aput-object v2, v0, v1[/STRIKE]

    [STRIKE]const/4 v1, 0x2[/STRIKE]

    [STRIKE]const-string v2, "Download"[/STRIKE]

    [STRIKE]aput-object v2, v0, v1[/STRIKE]

    const/4 v1, 0x[COLOR="red"][B]1[/B][/COLOR]

    const-string v2, "Recovery"

    aput-object v2, v0, v1

    sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

    return-void
.end method
I've got the menu with only those two options, but when I select "Recovery" it performs a "hot boot" instead.
Which is the proper way for doing this?
 
Last edited:

Goldie

Inactive Recognized Developer
Oct 16, 2010
9,966
22,758
0
You posted this in another thread but ignored the reply. You should get a log. Whenever you ask questions you should accompany with a log. Then people can explain what its telling you and next time you may be able to fix it yourself

Sent from my SM-G900F using Tapatalk
 

spotter-ssol

Member
Apr 26, 2011
34
10
0
SSOL
You posted this in another thread but ignored the reply. You should get a log. Whenever you ask questions you should accompany with a log. Then people can explain what its telling you and next time you may be able to fix it yourself

Sent from my SM-G900F using Tapatalk
I'm sorry, but the way you answered I thought that I would have to analize the log all by myself (have no knowledge to do this).
I'll get those logs and post. Thanks.
 
  • Like
Reactions: Spannaa