[MOD][CM7] Enable Sensor Oriented Lockscreen - HTC Wildfire S

{
"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

Related

[MOD] [HOW TO] Remove silent mode status bar indicator

How to remove
{
"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"
}
icon from status bar
This is a very easy mod if you follow all the steps exactly!
Thanks to nivron for creating this excellent tutorial on how to SMALI/BAKSMALI. Use the steps in his tutorial to decompile SystemUI.apk.
Additional thanks to SteelH for this thread.
In StatusBarPolicy.smali file look for the following code:
Code:
.method private final updateVolume()V
.registers 7
.prologue
const/4 v2, 0x1
const/4 v4, 0x0
NOTE: The actual code already has a blank line between .registers 7 and .prologue.
Insert return-void in the line below .registers 7, so the final code looks like this:
Code:
.method private final updateVolume()V
.registers 7
return-void
.prologue
const/4 v2, 0x1
const/4 v4, 0x0
Recompile classes.dex and replace it in the SystemUI.apk per nivron's tutorial mentioned above. Push SystemUI.apk back to the phone and reboot. Now when you select silent mode, the icon will not show on the taskbar.

[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.
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...

[4.2.1][GUIDE] How to change incoming call widget color

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.

[Guide How-to] Sound effect supported all bluetooth devices

This mod will make Soung Alive by pass checking so make effects supported all bluetooth devices
I just found when some ROM supported but some not
Have Fun with new Sound
{
"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"
}
Decompile system\priv-app\SoundAlive_20_L
Edit
\smali\com\sec\android\app\soundalive\framework
Find .method public static isSupportSoundAliveBT(I)Z
Replace all method with this:
Code:
.method public static isSupportSoundAliveBT(I)Z
.locals 1
.param p0, "soundAlive" # I
.prologue
.line 214
const/4 v0, 0x1
return v0
.end method
Recompile ..... DONE
Wish i understood this
For SoundAlive_31, below is under smali/com/sec/android/app/soundalive/policy/SoundAlivePolicyManager.smali
.method public static isSupportSoundAliveBT(I)Z
.locals 1
.param p0 # I
const/4 v0, 0x1
return v0
.end method
Click to expand...
Click to collapse
Will your mod work same on SoundAlive_31?
wcoast said:
Will your mod work same on SoundAlive_31?
Click to expand...
Click to collapse
I don`t have that.
You can try to find .method public static isSupportSoundAliveBT(I)Z on smali
Yea same here i can't find that anywhere

[ MOD lockscreen 4.4.4 ] keyguard.apk

Hi!!
My new lockscreen for S3 with 4.4.4 roms ( with rom HYPER-ROM of Hyper.Alvi works well) . Two zips: v0 is normal version (default weather icons); v-htc with htc icons.
These zips contains keyguard.apk modified, WeatherDaemon2014.apk modified , Roboto-Thin.ttf modified ( only numbers ).
Normal version ( v0 )
https://www.dropbox.com/s/k0kqmifes... 4.4.4 ] keyguard ( v0 ) [ by dkt ].zip?dl=0
{
"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"
}
Htc version ( v-htc )
https://www.dropbox.com/s/ji6x3etnl41vi08/%5B%20MOD%20lockscreen%204.4.4%20%5D%20%20keyguard%20%28%20v-htc%20icons%20%29%20%5B%20by%20dkt%20%5D.zip?dl=0
by dkt
My best regards.
I like it
..
Thanks for your hardwork
really beautiful, but can you remove the clock from status bar? because is a repetition of central clock widget... same as lollipop and marshmallow touchwiz
thank you for your work
wheather does not work on Hyper rom V6! :/
is this work on pattern lock screen
i flash it and work fine but lock screen clock font ugly .larg.and not good font....why
After flashing and working it seems that filpboard doesn't work. Any fix or zip to undo changes? Thanks a lot
Enviado desde mi SM-N910C mediante Tapatalk

Categories

Resources