[MOD] Change date string format in extended notification - Galaxy S III Android Development

Changing the date format
I own the VZW variant of the phone, but it seems this file is the same with all variants.
This mod will achieve this:
{
"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"
}
Method 1
1. Locate DateView.smali in smali\com\android\systemui\statusbar\policy
2. On line 262 delete
Code:
invoke-static {v0}, Landroid/text/format/DateFormat;->getLongDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;
3. Add
Code:
const-string v4, "EEEE, MMM d, yyyy"
invoke-static {v4, v3}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Date;)Ljava/lang/CharSequence;
4. I prefer the "Day of week, Month (short), Day (w/o leading 0), Year" format, but you may choose to format it how you wish. Use this to help you with formatting.
Method 2
If you already like the way I've formatted the date. You can simply replace your DateView.smali with mine and compile your SystemUI.

rehpyc said:
Changing the date format
I own the VZW variant of the phone, but it seems this file is the same with all variants.
This mod will achieve this:
Method 1
1. Locate DateView.smali in smali\com\android\systemui\statusbar\policy
2. On line 262 delete
Code:
invoke-static {v0}, Landroid/text/format/DateFormat;->getLongDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;
3. Add
Code:
const-string v4, "EEEE, MMM d, yyyy"
invoke-static {v4, v3}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Date;)Ljava/lang/CharSequence;
4. I prefer the "Day of week, Month (short), Day (w/o leading 0), Year" format, but you may choose to format it how you wish. Use this to help you with formatting.
Method 2
If you already like the way I've formatted the date. You can simply replace your DateView.smali with mine and compile your SystemUI.
Click to expand...
Click to collapse
Hi,
I'm not a programmer/developer - so how would the 'ordinary' person make this type of change? Is there a tool that I can download to my device or a tool to download to my desktop and copy the file over to my device?
I'm interested in this because I like a longer date view in my notification bar. Also - is there a mod for performing the same type of modification for the lock screen date format?

Related

Nexus One Browser Port mod for Spica (mdpi screen)

Reposted from HERE
Someone at the sdx-developers forums had worked on a port for the Nexus One web browser and released it. It is my fulltime browser but, contrary to changelog, it still has ui glitches such as the overly large adrressbar and dark background. There maybe some differences in how the moment treats this app, so I went and modified it to make it compatible with our spicas.
See link above for details of the N1 browser improvements.
Screen of ummodified port:
{
"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"
}
Changes from the original port:
Code:
[LIST]
[*]Replaced images with those from the stock browser, conversion into mdpi.
[*]Replaced addressbar layout with corrected one.
[*]This is only a port, I can't develop or improve it more.
[/LIST]
PREVIEW HERE
Note, in my brief testing, the browser seemed to stall on certain websites like yahoo.com. From a bit of tinkering I found that the libwecore.so included in Frozen Eclair 2 solved that issue so its is included in the update zip file. The whole FE2 is not required.
In case of problems, I also prepared a restore zip file, restoring the stock browser and libwebcore.so.
Installation:
This should work fine but still usual caveats apply: USE AT YOUR OWN RISK
This is made for and tested only samdroidmod kitchen roms only, basically rooted and deodexed system only. Other systems beware.
Install like any other kitchen without base package from recovery.
Dalvik-cache wipe is included in the update, so initial booting will be longer.
BIG FAT WARNING IN USE WITH SAMDROID KITCHEN V2
With release of Samdroid Kitchen V2, be warned that the attached files include the old Superuser.apk from kitchen v1, and the update zip themselves are for ktichenv1 format. So don't flash directly to kitchen v2. Use them in the newer kitchenv2 format, and delete the older Superuse.apk.
WARNING ENDS
Download installation zip:
Code:
[URL="http://www.megaupload.com/?d=SD998GP4"]LINK 1 (2.85MB)[/URL] *[URL="http://rapidshare.com/files/409912070/SDM-N1-Browser_libweb-FE.zip.html"]LINK 2 (2.85MB)[/URL]
Download restore zip:
Code:
[URL="http://rapidshare.com/files/409912469/SDM-Browser_libweb-stock.zip.html"]LINK 1 (2.49MB[/URL]) *[URL="http://www.megaupload.com/?d=ME2G9ITH"]LINK 2 (2.49MB)[/URL]
That's it, enjoy.
Optional update that include the newer libwebcore of frozen eclair 5. No changes to the browser itself.
BIG FAT WARNING IN USE WITH SAMDROID KITCHEN V2
With release of Samdroid Kitchen V2, be warned that the attached files include the old Superuser.apk from kitchen v1, and the update zip themselves are for ktichenv1 format. So don't flash directly to kitchen v2. Use them in the newer kitchenv2 format, and delete the older Superuse.apk.
WARNING ENDS
Code:
[url="http://rapidshare.com/files/410785662/SDM-N1-Browser_libweb-FE5.zip.html"]Mirror 1[/url]
[url="http://www.megaupload.com/?d=7T0DDNSG"]Mirror 2[/url]

[TUT] DOS TUT in a CLI (running smoothly different though) :-)

DOS 6.2 Tutorial in a Command Line Interface;
At the risk of revealing my age, ...
Once, a long, long time ago (unpack it and you can start guessing ) a good digital_friend send me this directory. I think I obtained it at first via FidoNet Then later I obtained this newer attached version via BBS
Though zipped it before upping it of course.
[TUT] A nice compiled dos Tutorial 2010-August-8th here on xda-developers.com
Screenshots;
{
"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"
}
Of course one can unpack it and run it, though ...
Maybe this ADMiN at WORK method is something to write down <g>
Code:
@ECHO OFF
REM below the dos screen is set to show 50 lines in a box (15" CRT monitor). Don't go about and fill in a ridiculous value; you'll get to reboot your precious session! Because you can 1st read the provided manual ;-)
[COLOR=Red]MODE 80,50[/COLOR]
C:
CD C:\PROGRA~1\DOS6T\
HTUTOR.EXE
:END
EXiT
This batch file assumes you have unpacked this zip to C:\Program Files\*
1. Copy and paste the above code in a text editor and save it with a short (8.3) name of your choice.
2. Then rename the *.txt file to *.bat and double click it. (Mine's called Htut6.bat)
3. Press a key to continue...
4. Go to the Advanced Topics for a nice overview.
When you're done and quit the program, I advice to make a shortcut to your *.bat file;
LongPress_RightMouseButton the *.bat file - wait for context menu and select Create Shortcut (move/rename it to your liking)!
Q: Are there still people using DOS? And batch files??!
A: Chef's do! Don't you?
Note;
I never used this tutorial, due to the fact that I used Novell DOS (NDOS) and later moved to JPSoftware its 4DOS (which was a collaboration between NDOS/4DOS) later it was called 4NT command line interpreter (which was making overall dos operations go so much more faster, due to batch files which could/(can) be compiled easily).
Have a nice day/night,

[miniGUIDE] Disable flipclock for Sense HD

Haven't seen this mod in the Desire HD threads or even in the HD2 Nand DHD threads so i hope i am the first that found out this mod. If not correct me then... Figured the way to hack this flipclock so here we go!
I assume that if u want to do this you know how it works so i'm not going into details too much.
- smali backsmali classes.dex in HtcClockWidget.apk or decompile with dependencies...
- look up for the file HtcDigitalClock42View.smali in \com\htc\WeatherClockWidget
- search for these lines:
Code:
const-string v5, "clockwidget_flip"
const/4 v6, 0x1
- and change it to:
Code:
const-string v5, "clockwidget_flip"
const/4 v6, 0x0
That's it.... Happy theming peeps...
this is what i have done so far... a nice transparent clock... without the flip
{
"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"
}
Hello!
Can you please post a guide on how to get a clock like yours for someone who doesn't know how to customize themes and smali/backsmali etc.
If possible, can you also provide with files that anyone can use to install or replace the original files with, to get exactly the look like your clock?
Thanks.
Does this disable the minutes and hours flip, or just the flip the clock does everytime the home screen refreshes. As one is annoying, and the minutes flip is actually nice, it is important to get it right.
And as for extracting the files, not a clue on how to do it. So it's less of a mod, and more of a guide I would say.
Alright changed the title to miniGUIDE then. If you like to know how to mod the apk i would like to refer you to ApkTool or much easier ApkManager. If u want to pull out the apk from your phone use ADB or Droidexplorer. I'm not that guy that explains everything for these tools, if u read it u might understand why. I'm just explaining which lines u need to modify to get the flipclock disabled. This way the flipclock is fully disabled, no way to have other options...
Do you really expect people to know how to decompile stuff and then sign them? Really? This guide is beyond poor...it needs a proper tutorial or just delete this thread, useless.
I don't have the slightest idea how to do this and I'm not even going to try, when I've seen the GUI of apk manager I freaked out.

Enable Sub Symbol On Samsung Keyboard - CUSTOM ROM METHOD.

i've seen a thread in galaxy note 2 sections where the sub symbol can be enabled on the samsung keyboard..you can see original thread here --> http://forum.xda-developers.com/showthread.php?t=2033894
But i did it in another way to make it work on my touchwiz galaxy note N7000 running 4.1.2 JB.
Screenshot:
{
"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"
}
Before we begin,DO THIS AT YOUR OWN RISK
HOW TO :
Nandroid backup or any type of backup first incase s##t happens.
1. Using any file explorer (i'm using solid explorer which edit text files and saved them directly) then go to your /system/csc/others.xml (backup your others.xml first cause we are going to edit this file).
Now,
copy and put these lines INTO your others.xml.
HTML:
<CscFeature_Sip_UseSymbolInCMKey>true</CscFeature_Sip_UseSymbolInCMKey>
<CscFeature_Sip_EnableSymbolInSecondary>en_GB;en_US;de;fr;es;it</CscFeature_Sip_EnableSymbolInSecondary>
Makesure you put the above lines AFTER <FeatureSet> and BEFORE </FeatureSet>..meaning to say, in BETWEEN the codes..*u will find it easy on where to put those lines.
Save and set permissions to rw-r-r (if only your explorer doesn't set it automatically).
Next steps,
(below steps are only for users that using DBT or other csc..BTU csc user is not necessary but u may try it if those above steps didn't work)..and I don't know why is it working only when using the BTU files.weird :s.
Remember to always BACKUP!
2. And now, go to your /system/csc/BTU/system/csc and copy these 3 files: contents.db, customer.xml and sales_code.dat..(IGNORE the others.xml file cause its not needed)..
3. Copy those 3 files to your /system/csc and replace the existing files and set permissions rw-r-r and reboot..if it didnt work for you, shut off your phone for a while,and then boot.
Optional : en_GB;en_US;it;fr;de ..these are the language code that need to be added so that the symbols appeared on the keyboard in certain languages. in this case im using eng US and UK, Italian, France and Germany.
So if you want to put another language code, just add to those lines.
You may wanna check the original thread for some more features.
CHEERS.

[GUIDE][MOD]Add Safe Mode to 4way reboot menu S5 All Variants 4.4.2[MOD][GUIDE]

Add Safe Mode to 4way reboot menu S5 All Variants 4.4.2​
Code:
[U][B]Pre-Requisites[/B][/U]
1. Must have existing 4way MOD
2. Must have basic smali/baksmali skills
3. UTF-8 compatible text editor (Notepad++)
4. Android ADB tools installed (to pull/push to device)
Instructions
1. Pull /system/framework/android.policy.jar either from ROM.zip file or from your device.
2. Decompile .jar file using either apktool or Virtuous Ten Studio (I recomend VTS).
3. Make all changes listed below. Blue means add Red means delete
and Green means change. pay attention to the values to change and all variables these may be
different depending on your specific build.
Open "/smali/com/android/internal/policy/impl/GlobalActions$99$1.smali"
Search for the following method .method public onClick(Landroid/content/DialogInterface;I)V
In that method search for if-eq v0, v1, :cond_4
Make the changes listed below
Code:
[COLOR="Blue"]const/4 v1, 0x4[/COLOR]
[COLOR="Blue"]if-eq v0, v1, :cond_5[/COLOR]
const/4 v1, 0x[COLOR="Green"]5[/COLOR]
Now we need to add our new :cond_5 referenced in the above code.
Still in the same Method search for .end method
Add the code below directly above it.
Code:
[COLOR="Blue"] :cond_5
const-string v1, "su -c /system/bin/sfmode.sh"
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
move-result-object v2
invoke-virtual {v2, v1}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;
goto :goto_1[/COLOR]
.end method
Save and close this file.
Open "/smali/com/android/internal/policy/impl/GlobalActions$SinglePressAction.smali"
Search for .method static constructor <clinit>()V
Make the changes listed below. (NOTE: you may not see .locals depending on how you decompiled the jar file
NOTE: we are increasing the array values here by 1
Code:
.method static constructor <clinit>()V
.locals [COLOR="Green"]4[/COLOR]
const/4 v0, 0x[COLOR="Green"]5[/COLOR]
Still in the same method search for sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String; and add the following lines directly above it.
Code:
[COLOR="Blue"] const/4 v1, 0x4
const-string v2, "Safe Mode"
aput-object v2, v0, v1[/COLOR]
Save and close this file, now recompile android.policy.jar and push to your device
Set permissions rw-r-r (chmod 0644)
extract the sfmode.sh from the attached zip file push to /system/bin/sfmode.sh set execute permission (chmod 0755)
reboot and profit.
NOTICE: If you use this MOD you must provide proper recognition in your ROMS thread and also provide a direct link back to my thread. Other than that you are free to use and abuse any way you see fit.
@cstayton
Another Amazing Work Bud.
{
"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"
}
Sweet !!
Thank you !!...g
@cstayton sorry but '' the sfmode.sh from the attached zip file push to /system/bin/sfmode.sh set execute permission (chmod 0755)
reboot and profit.'' why does we have to do that ? Thanks +
androidrouen said:
@cstayton sorry but '' the sfmode.sh from the attached zip file push to /system/bin/sfmode.sh set execute permission (chmod 0755)
reboot and profit.'' why does we have to do that ? Thanks +
Click to expand...
Click to collapse
it is required, if you dont do it you wont reboot to safemode.
cstayton said:
Add Safe Mode to 4way reboot menu S5 All Variants 4.4.2​
Code:
[U][B]Pre-Requisites[/B][/U]
1. Must have existing 4way MOD
2. Must have basic smali/baksmali skills
3. UTF-8 compatible text editor (Notepad++)
4. Android ADB tools installed (to pull/push to device)
Click to expand...
Click to collapse
You told Must have existing 4way MOD. But where is the 4way MOD tutorial ?

Categories

Resources