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.
There's no line 262 in the Sprint variant. There're 3 instances of this particular code in our DateView.smali. What's the surrounding code? I don't want to mess with the wrong lines one at a time...
EDIT: Ok, so I read the code wrong. I found 1 place in the smali file with the code, it's .line 136. However, performing the MOD makes the status bar disappear and forcecloses SystemUI.apk. It seems there's a difference b/w VZW and Sprint implementations of the date format. Pity...
Related
I have found a way to enable quick app switching (or what ever it is called) in the Mango emulator. It seems to be a little bit buggy but it works. Here is a 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"
}
Here is the how to:
1. Press [Windows]+[R]. A "Run" dialog should appear.
2. Now type in "notepad %programfiles%\Microsoft XDE\1.0\WM7_Skin.xml"
3. Find
Code:
<button
toolTip="Back"
onClick="0x3B"
mappingColor="0xF7941D"
/>
and replace onClick="0x3B" with onPressAndHold="0x3B" so it would look like this:
Code:
<button
toolTip="Back"
onPressAndHold="0x3B"
mappingColor="0xF7941D"
/>
4. Now start your emulator and press and hold the back button
Thanks but Why don't you just hold f1 button?
I didn't know about F1!
This does not work for me. I have the Mango emulator but the folder you said to that the .xml is in does not exist
Badcam3 said:
This does not work for me. I have the Mango emulator but the folder you said to that the .xml is in does not exist
Click to expand...
Click to collapse
maybe you got windows 64 bit
then replace %programfiles% with %programfiles(x86)%
so the path then should be C:\Program Files (x86)\Microsoft XDE\1.0\WM7_skin.xml
Hi,
If you use other launcher that the TwLauncher (eg. LauncherPro or adwLauncher)
and you have deleted the TwLauncher application from /system/app,
when you make a large click on home button and the recent tasks list appears,
the phone reboots if you click the "jobs manager" button.
For prevent this, you can make a modification in framework-res.apk file,
in order to hide the job manager button.
the modifications are in the res/layout/recent_apps_dialog.xml and are:
line 2, change android:layout_height="320.0dip" to android:layout_height="257.0dip"
line 3, change android:layout_width="320.0dip" to android:layout_width="313.0dip"
line 4, change android:layout_width="320.0dip" to android:layout_width="313.0dip"
line 5, change, cambiar androidaddingTop="60.0dip" to androidaddingTop="0.0dip"
and android:layout_height="wrap_content" to android:layout_height="189.33996dip"
line 8, change android:layout_width="320.0dip" to android:layout_width="313.0dip"
line 9, change android:layout_marginLeft="10.0dip" to android:layout_marginLeft="13.0dip"
line 14, change, cambiar android:layout_marginLeft="10.0dip" to android:layout_marginLeft="13.0dip"
Click to expand...
Click to collapse
to use it, decompile framework-res.apk with apkManager,
modify the related file, recompile and push the new compiled xml file
into the original framework-res, then copy the framework-res.apk into
the phone with adb.
{
"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"
}
Enjoy!
Odd. After removing the TW launcher the Jobs Manager button works just fine over here. Never had any problem with it, with whatever 3rd party Launcher I've tried.
{
"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"
}
This mod allows lockscreen to rotate based on sensor. To install just flash LockScreenSensorEnable.zip from recovery.
This mod is based on alquez's Unofficial CM7 build dated 20120717 and may not work with other builds.
Don't try this on other ROMs.
Don't forget to make backup before flashing.
I take no responsibility for any harm that comes to your phone as a result of applying this mod.
Download:
LockScreenSensorEnable.zip
How to:
Decompile android.policy.jar with apktool
in com\android\internal\policy\impl\KeyguardViewManager.smali
Find:
Code:
const/4 v1, 0x[COLOR="Red"]5[/COLOR]
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->screenOrientation:I
.line 121
const-string v1, "Keyguard"
Change to:
Code:
const/4 v1, 0x[COLOR="red"]2[/COLOR]
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->screenOrientation:I
.line 121
const-string v1, "Keyguard"
I would have been gone with cm7 but there is problem in usb tether in latest build so i am waiting for fix....
Cm 7 will be most stable non sense rom ....with cm9 theme it looks awsm...thanx 4 developing...thanx hitted.
Sent from my HTC Wildfire S A510e using xda app-developers app
This guide will show you how to change the incoming call widget color for 4.2.1 and 4.1.2.
1. Decompile SecPhone.apk
2. Open smali\com\android\phone\IncomingCallWidget$Handle.smali with Notepad++
3. In .method private init()V search for mCircleColor:I above it you wil see something like:
Code:
[COLOR=#ffa500][COLOR=#ffa500][COLOR=#ffa500][COLOR=#0000ff]const[/COLOR] [COLOR=#d2691e]v6[/COLOR], [COLOR=#ff00ff]0x7f02039b[/COLOR][/COLOR][/COLOR][/COLOR]
[COLOR=#ffa500][COLOR=#ffa500][COLOR=#ffa500] [COLOR=#0000ff]invoke-virtual[/COLOR] {[COLOR=#d2691e]v5[/COLOR], [COLOR=#d2691e]v6[/COLOR]}, [COLOR=#808080]Landroid/widget/[/COLOR][COLOR=#008080]ImageView[/COLOR];->[COLOR=#6b8e23]setBackgroundResource[/COLOR](I)[COLOR=#ffa500]V[/COLOR][/COLOR][/COLOR][/COLOR]
[COLOR=#ffa500][COLOR=#ffa500] [COLOR=#008000].line 485[/COLOR][/COLOR][/COLOR]
[COLOR=#ffa500]
[COLOR=#ffa500] :[COLOR=#ff1493]goto_0[/COLOR][/COLOR]
[COLOR=#ffa500]
[COLOR=#0000ff]const[/COLOR] [COLOR=#d2691e]v5[/COLOR], -[COLOR=#ff00ff]0x9e5eeb[/COLOR]
[/COLOR][COLOR=#ffa500][/COLOR][COLOR=#ffa500] iput [COLOR=#d2691e]v5[/COLOR], [COLOR=#d2691e]p0[/COLOR], [COLOR=#808080]Lcom/android/phone/[/COLOR][COLOR=#008080]IncomingCallWidget$Handle[/COLOR];->[COLOR=#9370db]mCircleColor[/COLOR]:I[/COLOR]
[/COLOR][COLOR=#ffa500][/COLOR]
Change this constv5, -0x9e5eeb to what ever color you want (takes hex value) eg: constv5, 0xff000000 would be black.
4. Change ic_jog_dial_answer.png in drawable-xhdpi to match color.
5. Recompile.
6. Hit thanks. Your done.
{
"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"
}
Thanks!
Very nice! Thanks for your hard work, big push on thanks button for you mate!
Mr.Mefisto said:
Very nice! Thanks for your hard work, big push on thanks button for you mate!
Click to expand...
Click to collapse
No worries mate.
Please, don't laugh !
Here is the picture :
{
"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"
}
The status bar is like I want it (50 for Statusbar Height, set with 123 Dimensions Editor), but the TIME text should not be cut ...
So, what should I change to make the TIME visible ?
To achieve this unfinished "theming", I used :
... Stock rom (v30f)
... Stock launcher
... Xposed modules 123Dimension + Textsize
Have a nice day.
change ur text size may be that help
Thanks, but my problem is not changing the text size chosen to show time.
My problem is to show fully the text in the size chosen !
Clearly, there is something hidden (a sort of invisible label ?) that does not allow me to see fully a text when set to more than 19 pts.
you've tried with framework?
Do you mean Xposed Framework ?
xabzzz said:
Do you mean Xposed Framework ?
Click to expand...
Click to collapse
absolutely not. I mean framework.apk
You tried to edit this? (\framework-res.apk\res\values\dimens.xml)
Code:
<dimen name="status_bar_height">[B]25.0dip[/B]</dimen>
try with this
Code:
<dimen name="status_bar_height">[B]40.0dip[/B]</dimen>
ps.
when you answer, quote my post, otherwise I dont see you