[MOD] Change date string format in extended notification - AT&T, Rogers, Bell, Telus Samsung Galaxy S III

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.

Related

[MOD] * Removable full battery charge notification * [10/09/11]

You may want to clear the battery fully charged notification when phone is on dock, or it doesn't go away even if unplugged. This mod fixes these.
NOTE: I didn't remove the notification, because I think it a better solution to leave the user this option rather than completely removing it.
* baksmali classes.dex in SystemUI.apk
* open com\android\systemui\statusbar\policy\StatusBarPolicy.smali
* search for "iget v3, v2, Landroid/app/Notification;->flags:I" at around line 1824
* remove the following 3 lines:
iget v3, v2, Landroid/app/Notification;->flags:I
or-int/lit8 v3, v3, 0x2
iput v3, v2, Landroid/app/Notification;->flags:I
* save, smali, and update apk
Now you know the trick. SystemUI would make the full charge notification as on-going (flags = flags|0x2), and we simply convert it back to default.
{
"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"
}
Feel free to add in your ROM but please give proper credits.

[MOD] Change date string format in extended notification

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.

[MOD] Multi-Platlogo v1

MULTI-PLATLOGO
BROUGHT TO YOU BY YOU FRIENDS AT
POTATOINC
CREDITS
@ iamareebjamal
PARANOIDANDROID
PACMANROMS
adhi1419
POTATOINC
WHAT IS THIS?
It lets you select your desired Platlogo style
HOW TO USE
Install the app.
DOWNLOAD HERE
Select your desired Platlogo style.
You can taps the Android version in the app to test the Platlogo
or go to device info settings then tap on the Android version.
HOW TO ADD IN YOUR ROM
FOLLOW THE INSTUCTIONS IN THIS AWESOME THREAD.
ALSO PRESS THANKS TO HIM.
Once you edited the PlatLogoActivity.smali
replace
Code:
const-string v3, "iaj.areeb.jellybean"
const-string v4, "iaj.areeb.jellybean.PlatLogoActivity"
with
Code:
const-string v3, "com.potato.multiplatlogo"
const-string v4, "com.potato.multiplatlogo.PlatLogo"
then delete the other smali with PlatLogoActivity in name so
only PlatLogoActivity.smali will left.
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"
}
TRIED AND TESTED ON PACMAN ROM 4.3
​

[FIX][GUIDE] H+ Icon for HSPA+ and HSPAP

FIX H+ Icon for HSPA+ and HSPAP network for Android 4.4.2 for HTC ONE
(tested ViperOne 6.2.1 1.54.401.5)
{
"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"
}
How to:
First make a backup
1. Decompile your SystemUI.apk
2. Navigate to smali/com/android/systemui/statusbar/policy/HtcGenericNetworkController.smali
3. Find the method .method private final updateDataNetType()V
4. Find the smali code (Line 5497)
if-nez v29, :cond_25
sget-object v29, Lcom/android/systemui/statusbar/policy/HtcIcons;->HTC_DATA_H:[I
5. Replace HTC_DATA_H by HTC_DATA_HPLUS
if-nez v29, :cond_25
sget-object v29, Lcom/android/systemui/statusbar/policy/HtcIcons;->HTC_DATA_HPLUS:[I
6. Recompile the file and replace in the phone
7. Enjoy it
8. Click thanks button
9.
rollon76 said:
Credits to rollon76 by the Idea
Click to expand...
Click to collapse
Original post http://forum.xda-developers.com/showthread.php?p=52653329

CPU temperature checker with refreshing

Hi,
I would like to share a simple project that I did last summer with everbody.
It was a program thhat checks you CPU temp and constantly displays teperatures
(not like lm_sensors that you have to re-run).
It is quite simple. Basicaly it reads form /sys/class/hwmon/hwon1/temp
and displays it like:
Code:
Pac. temp: 21.00 [||| ]
Core0: 15.00 [|| ]
Core1: 15.00 [|| ]
Core2: 15.00 [|| ]
Core3: 14.00 [|| ]
as I have said, it is very basic and simple, but it does the job.
It also supports hyperthreading.
To "install" it just complie it with gcc and move it to /usr/bin
To enable HT: change int hyper_t =0 to int hyper_t =1 in corecount.c
{
"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"
}
Please tell me if it doesn't work on your machine.
DOWNLOAD: https://github.com/k4li/cpu-temp

Categories

Resources