I'm just throwing this post up because I didn't see anything exactly like it when I was searching around about how to do it.
I found this post over on the Captivate forums which got me in the right direction, but the coding was somewhat different.
Anyhow, the point here is to be able to create whatever date and/or time you would like when you pull down the notifications panel...Please see the screenshot of mine below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In order to do this, you have to edit the DateView.smali file from the classes.dex in your service.jar...Please see the Captivate thread I linked above for a good step-by-step on how to get the file decompiled and recompiled.
Here's the code changes in diff format...Please notice you'll be looking for: .method private final updateClock()V
Code:
--- DateView.smali.orig 2011-08-16 15:35:24.261988999 -0500
+++ DateView.smali 2011-08-16 15:39:39.925989000 -0500
@@ -51,27 +51,27 @@
.end method
.method private final updateClock()V
- .registers 3
+ .locals 4
.prologue
.line 73
- new-instance v0, Ljava/util/Date;
-
- invoke-direct {v0}, Ljava/util/Date;-><init>()V
+ new-instance v0, Ljava/text/SimpleDateFormat;
+ const-string v1, "PUT WHATEVER YOU WANT HERE PER THE API GUIDELINES"
+ invoke-direct {v0,v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V
.line 76
- .local v0, now:Ljava/util/Date;
- iget-object v1, p0, Lcom/android/server/status/DateView;->mContext:Landroid/content/Context;
+ .local v0, sdf:Ljava/text/SimpleDateFormat;
- invoke-static {v1}, Landroid/text/format/DateFormat;->getDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;
+ new-instance v2, Ljava/util/Date;
+ invoke-direct {v2}, Ljava/util/Date;-><init>()V
- move-result-object v1
+ .local v2, now:Ljava/util/Date;
- invoke-virtual {v1, v0}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
+ invoke-virtual {v0, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
- move-result-object v1
+ move-result-object v2
- invoke-virtual {p0, v1}, Lcom/android/server/status/DateView;->setText(Ljava/lang/CharSequence;)V
+ invoke-virtual {p0, v2}, Lcom/android/server/status/DateView;->setText(Ljava/lang/CharSequence;)V
.line 78
return-void
Last thing...You'll need to review the ASCII letter table here to build your custom string to fill in "PUT WHATEVER YOU WANT HERE PER THE API GUIDELINES"...Any other characters used are passed as literal.
I hope someone else finds this useful...It was fun for my first little endeavor.
Mysteriousemotions has a thread on this in these forums.....first
jbadboy2007 said:
Mysteriousemotions has a thread on this in these forums.....first
Click to expand...
Click to collapse
My apologies if this is true, but I searched all XDA without finding anything.
I just looked at all the threads he's started, and I'm not seeing it.
Although, he did have an interesting WIP project thread about adding a removal option to the AM/PM via the Settings which is vaguely similar.
hi, xanthinealkaloid. how did you make it say "xanthinealkaloid" in the screen shot? im interested in that
kwazytazz said:
hi, xanthinealkaloid. how did you make it say "xanthinealkaloid" in the screen shot? im interested in that
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=872222
Related
As Microsoft ****ed up Brisbane's time with DST (We have no DST in Brisbane = ="), apparently there is no fix on the forum, so I've found the registry that deals with it.
1. find your time zone record the timezone ID and name of your time zone from here:
http://msdn.microsoft.com/en-us/library/ms145276(SQL.90).aspx
For example, Brisbane is E. Australia Time, the timezone ID is 260
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. open up regedit on your computer NOT MOBILE PHONE
and go to
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones
and locate your own timezone by looking for the name of your timzone
on the right tab, you can see a TZI value, copy that value.
eg. Brisbane is
Code:
a8 fd ff ff 00 00 00 00 c4 ff ff ff 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
3. open up registry of your WM device, and go to
Code:
HKLM,SOFTWARE\Microsoft\Timezones\
4. create a new registry key using your timezone ID. Then create a Binary value called TZI, and insert the TZI value you've obtained from step 2.
5. SAVE and QUIT your registry editor
6. on your WM Machine, open up Settings => Clock & Alarms and Change your timezone to any other timezone that is NOT your current time zone.
7. Reset your phone, and change your timezone back. NOW your DST should be the same as your computers.
Enjoy~
Bloody brilliant mate; I have finally sorted this out. I spent 7 or 8 emails with our MS Premier Support guys on this.
Thanks
Neil
I can't find the registry key on WM, do you have any idea?
I know I'm on the right folder because it contains others like TaskMgr, Tasks, TaskScheduler, like yours, but it doesn't have a TimeZones key.
I did some research and it seems there could be another one, HKLM/Time or HKLM/TimeZones, but those don't exist either.
This is the most annoying issue I have with my phone, any help would be greatly appreciated.
Try this FIRST, it'll install the necessary keys into ur machine. If still not working, follow my solution.
http://www.microsoft.com/downloads/...5C-8AC1-4821-81FE-3F4ADA831FE0&displaylang=en
Awesome... this works folks.
I fumbled my way to the same process after reading a few posts last night. Shame I didn't find this one, because it's all nicely laid out
Cheers mate... I've been dealing with this for a while now - the easiest fix for me was simply to set my TZ to Guam and I haven't had any more issues.
Nonetheless - I'll try this fix and see what happens... any idea if M$ are going to fix it cause it'd be affecting all of QLD right?
Windza said:
Cheers mate... I've been dealing with this for a while now - the easiest fix for me was simply to set my TZ to Guam and I haven't had any more issues.
Nonetheless - I'll try this fix and see what happens... any idea if M$ are going to fix it cause it'd be affecting all of QLD right?
Click to expand...
Click to collapse
I laughed when I read this because I did the same. I have created just the 260 timezone as shown above (had to create reg entries manually)
and all is now fine.
DT
Hi!
I'm not sure if this is the correct place where to ask this, but at least Subforum name rings a bell for me.
I've recently installed "AdAway" on my "Huawei U8350" (Android 2.2.2) in order to block ads on websites.
Since this application doesn't work as "AdBlock Plus" does for "Mozilla Firefox" (hiding blocked elements, etc), the places where ads were used to be displayed have been replaced with a "website error" dialog, telling me that these sites couldn't be loaded.
Here's an example (taken from "Dolphin Browser":
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In some cases, these dialogs are pretty long, and sometimes they change the visible area on websites, so, their layout is affected (height gets increased):
Since my phone's Display is quite small, I'd like to know if there's a way to change/customize these dialogs in order to gain working areas.
I'd like to know if were possible to modify these dialogs to something like these (being C my favorite):
I could see that inside "framework-res.apk" (assets folder) there's the "upside down Android" image under the name "android-weberror.png".
The problem is that I don't know where the dialog text could be located at (or if it is located inside Dolphin Browser apk files).
I've to add that I couldn't find any "SystemUI.apk" file; it has "framework-res.apk" only (as I've read, it seems to be usual, since it's still a Froyo, but I could've been searching on the wrong path).
I hope that someone could guide me to complete this little mission, by providing me of necessary info and help.
Thanks in advance!!
Framework-res.apk file
/res/raw(-locale) has the html file
/res/values/strings.xml has the texts depending on the error:
<string name="httpErrorUnsupportedAuthScheme">The site authentication scheme is not supported.</string> for example
This is the syntaxis (string name="httpErrorxxxxxxxxx")
Thank you so much!
I've been able to edit "loaderror" and "nodomain" files from "raw" folder.
This is what I did for "nodomain":
Code:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
<title>Site Unavailable</title>
<style type="text/css">
body { margin: 0px; padding: 0px; }
</style>
<body>
<p><img src="file:///android_asset/webkit/android-weberror.png"></p>
</body>
</head>
</html>
I hid URLs inside that upside down Android image, making it like a link object.
I haven't changed anything from "strings.XML" yet (probably unnecessary for now).
However, ads areas (height/width specified by website itself) are still there, but all has been replaced by that upside down Android only
Thanks again for your help Browser's visible area looks cleaner now!
I keep both the CM10.1 & Carbon repo's on my computer to save bandwidth when updating and the other day I noticed that enabling multi-user support on these is super easy. Just need to change a variable in two files..
Anyway, I built Carbon with the changes allowing multi-user support and have been testing. From a clean flash I have not really found any additional bugs when enabling it though. The only downside is users can only be switched from the lockscreen while it is in landscape mode. Other than that everything seems to work so far.
This will only work on 4.2+ though!
My main question though; is there interest for this?
There are three ways this can be applied if there is enough interest, a} maybe a flashable mod b} pushing a patch to the repo(s) c} A separate rom.
Some pics.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am having a hard time finding the source for the edits I made though... Using THIS method is not persistant after rebooting though...
Here is the diff for anyone else that builds, not sure if the first edited line is absolutely necessary however the second I know is.
Code:
project frameworks/base/
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java
index d73f99a..6d95a81 100644
--- a/core/java/android/os/UserManager.java
+++ b/core/java/android/os/UserManager.java
@@ -330,7 +330,7 @@ public class UserManager {
*/
public static int getMaxSupportedUsers() {
// Don't allow multiple users on certain builds
- if (android.os.Build.ID.startsWith("JVP")) return 1;
+ if (android.os.Build.ID.startsWith("420")) return 1;
return SystemProperties.getInt("fw.max_users",
Resources.getSystem().getInteger(R.integer.config_multiuserMaximumUsers));
}
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 88c1410..8e922d4 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -973,7 +973,7 @@
<bool name="config_syncstorageengine_masterSyncAutomatically">true</bool>
<!-- Maximum number of supported users -->
- <integer name="config_multiuserMaximumUsers">1</integer>
+ <integer name="config_multiuserMaximumUsers">8</integer>
<!-- Minimum span needed to begin a touch scaling gesture.
If the span is equal to or greater than this size, a scaling gesture
how can i change the date format that down to the brightness and volume sliders?
from: day x' 15 jan' 2014
to: day x' 15.01.14
or: day x' 15/01/14
any idea?
thanks.
i have been told to edit the framework-res.apk for doing so,
and yet, i dont figure out how to make it appear like that,
+i had noticed that in other langs, its appear in better way, such as:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
reemar said:
how can i change the date format that down to the brightness and volume sliders?
from: day x' 15 jan' 2014
to: day x' 15.01.14
or: day x' 15/01/14
any idea?
thanks.
Click to expand...
Click to collapse
Just try G2 Xposed, amazing. You can do "Complete Nav Bar Customization - Transparent bar - More!"
http://forum.xda-developers.com/showthread.php?t=2477586
you install my mod?
giga, i do install your rom and g2 expossed not do anything for changing that thing, still need help, thanks.
Xposed modules with gravity box is the best. :good::good:
in my 4x hd, from my friend blackcoffeez
blackcoffeez said:
its on dateview.smali.. but it depend to characteristic of the phone it self..on my LGSystemUI..i havent change it..
according to your smali's..its located in
LGSystemUI.apk\smali\com\android\systemui\statusbar\policy\Dateview.smali
now take a look at
.line 120
.local v6, now:Ljava/util/Date;
const-string v7, "E"
invoke-static {v7, v6}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/DateLjava/lang/CharSequence;
move-result-object v4
the words "E" mean ur day name.. usually the day metode it kindly like this :
E/EE/EEE=DOM(medium), EEEE=DOMENICA (long), EEEEE=D (short)
and the date was on
.line 121
.local v4, dow:Ljava/lang/CharSequence;
invoke-static {v2}, Landroid/text/format/DateFormat;->getMediumDateFormat(Landroid/content/ContextLjava/text/DateFormat;
you can change the words "getMediumDateFormat" to another date metode,,just replace the word Medium with Short or Long..
example :
invoke-static {v2}, Landroid/text/format/DateFormat;->getLongDateFormat(Landroid/content/ContextLjava/text/DateFormat;
thats all what i knew..i'm still learning on it,, sorry for my poor english,,hope u can undersand it
Click to expand...
Click to collapse
this is the result
I dont know if it also works for the g2
Hello guys.. all things and functionality works applying spacecakers buttonburst mod except... if i toggle button burst button, so now it displays btn_tg or open face of quickpanel and if i close notification panel since recently button burst was toggled to open when i pull down the notification again, it still shows btn_tg or open face and logically its bug....
How to add or reinitialize button burst image to normal when i close or open notification panel.....
Heres how it looks:
Before I toggle button burst -----> When I toggle button burst -----> I close the notification 1st & when i reopen notification panel BUG on button burst image
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
it shud be normal face or initial face but since no method is handling to reinitialize button image on close notify panel or open notify panel... how to add this code from buttonburst.smali
code taken from buttonburst.smali
.prologue
.line 34
const v2, 0xffffff
invoke-virtual {p0, v2}, Lcom/spacecaker/ButtonBurst;->setBackgroundColor(I)V
.line 35
iget-object v2, p0, Lcom/spacecaker/ButtonBurst;->mContext:Landroid/content/Context;
invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v2
const v3, 0x7f03017e ---------> this is the correct register already for button normal compared to my public.xml
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v1
.line 36
.local v1, "on":Landroid/graphics/drawable/Drawable;
.line 40
invoke-virtual {p0, v1}, Lcom/spacecaker/ButtonBurst;->setBackgroundDrawable(Landroid/graphics/drawable/DrawableV
Theres so many methods inside my phonestatusbar.smali and tried adding it in this method but i got a force close...
.method private makeExpandedVisible(Z)V
more methods
.method private notifyUiVisibilityChanged()V
.method public animateCollapse(IF)V
.method public animateExpand()V
.method protected getExpandedViewMaxHeight()I
.method performExpand()V
.method protected updateNotificationIcons()V
and so many more im confused where to add the code to reinitialize button burst button image to normal on notify expand or notify close...
Or anyone knows how to edit and open systemui java code in eclipse.... have no idea... it wud be much easier for me to edit things if smali is in java code...
Attached is my working PhoneStatusBar.smali and ButtonBurst.smali
Hello
You have already posted in the correct section
http://forum.xda-developers.com/showpost.php?p=63372947&postcount=464
and the OP has already answered you
http://forum.xda-developers.com/showpost.php?p=63377571&postcount=465
Thread closed.