☆☆[MOD][GUIDE] - How to build/default Screen Animation speed to .25x!!☆☆
[How To][Guide] Change Default Window Animation Scales and Build in New scales
As many of you know, defaulting animation scales is no longer located in SecSettingsProvider.apk res/values/fractions.xml as of Android 4.3 and up...Below is how to accomplish this natively and default your speeds to .5x on first boot.
This guide is now for the .25x MOD.
Baksmali services.jar and Navigate to /com/android/server/wm/WindowManagerService.smali
Look for iput-object v9, p0, Lcom/android/server/wm/WindowManagerService;->mFocusedApp:Lcom/android/server/wm/AppWindowToken;
Orignal Code
Code:
iput-object v14, v0, Lcom/android/server/wm/WindowManagerService;->mFocusedApp:Lcom/android/server/wm/AppWindowToken;
const/high16 v14, 0x3f800000
move-object/from16 v0, p0
iput v14, v0, Lcom/android/server/wm/WindowManagerService;->mWindowAnimationScale:F
const/high16 v14, 0x3f800000
move-object/from16 v0, p0
iput v14, v0, Lcom/android/server/wm/WindowManagerService;->mTransitionAnimationScale:F
const/high16 v14, 0x3f800000
move-object/from16 v0, p0
iput v14, v0, Lcom/android/server/wm/WindowManagerService;->mTransitionAnimationScaleOld:F
const/high16 v14, 0x3f800000
move-object/from16 v0, p0
Change to:
Code:
iput-object v9, p0, Lcom/android/server/wm/WindowManagerService;->mFocusedApp:Lcom/android/server/wm/AppWindowToken;
.line 619
const/high16 v9, [COLOR="blue"]0x3e800000[/COLOR]
iput v9, p0, Lcom/android/server/wm/WindowManagerService;->mWindowAnimationScale:F
.line 620
const/high16 v9, [COLOR="blue"]0x3e800000[/COLOR]
iput v9, p0, Lcom/android/server/wm/WindowManagerService;->mTransitionAnimationScale:F
.line 621
const/high16 v9, [COLOR="blue"]0x3e800000[/COLOR]
iput v9, p0, Lcom/android/server/wm/WindowManagerService;->mAnimatorDurationScale:F
.line 633
Make sure to do a full wipe in order to see the animation scales change, this mod will not work if you just push services.jar to system/framework, requires a clean flash
Now, How to Build in New Animation Scales (.25X)
Decompile SecSettings.apk and navigate to res/values/arrays
Look for
Code:
Animation off
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
0
.5
1
1.5
2
5
10
Animation off
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
0
.5
1
1.5
2
5
10
Animation off
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
0
0.5
1
1.5
2
5
10
Change to:
Code:
Animation off
[COLOR="Blue"]Animation scale 0.25x[/COLOR]
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
0
[COLOR="blue"].25[/COLOR]
.5
1
1.5
2
5
10
Animation off
[COLOR="blue"]Animation scale 0.25x[/COLOR]
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
0
[COLOR="blue"].25[/COLOR]
.5
1
1.5
2
5
10
Animation off
[COLOR="blue"]Animation scale 0.25x[/COLOR]
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
0
[COLOR="blue"]0.25[/COLOR]
0.5
1
1.5
2
5
10
Now....Depending on your country, you may have have to navigate to a separate folder. But for the US, go to Res/values-en-rUS/Arrays
Look for
Code:
Animation is off
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
Animation is off
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
Animation is off
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
Change to:
Code:
Animation is off
[COLOR="Blue"]Animation scale 0.25x[/COLOR]
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
Animation is off
[COLOR="blue"]Animation scale 0.25x[/COLOR]
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
Animation is off
[COLOR="blue"]Animation scale 0.25x[/COLOR]
Animation scale 0.5x
Animation scale 1x
Animation scale 1.5x
Animation scale 2x
Animation scale 5x
Animation scale 10x
Thats it! Enjoy!
Happy 4th of July!
Fwiw - depending on the version of baksmali that is used (for whatever reason I keep using 1.4.2 lol) things like:
Code:
const/high16 v14, 0x3f800000
...may actually look like:
Code:
const/high16 v14, 0x3f80
Just throwing that out there
Nice work on hunting this down @bajasur!
Thanks for clearing that up! And I have to thank @Cl3Kener again for his hard work in locating this awesome mod.
Sent from my SM-N900V using xda app-developers app
csstamatin said:
What's the difference between this and using the developer settings menu to adjust the animations speeds?
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
This will bake it into the ROM so that when you first boot up it is already defaulted to .5x
Sent from my SM-N900V using xda app-developers app
But when I set it in dev settings it stays that way on a reboot. It doesn't change for me or anything. Stays at 0, which is what I prefer. Just asking. Thx
Sent from my SM-N900V using Tapatalk
csstamatin said:
But when I set it in dev settings it stays that way on a reboot. It doesn't change for me or anything. Stays at 0, which is what I prefer. Just asking. Thx
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
The whole point of it is so you don't have to do it yourself. Jeez.
Most people like .5 that's why he did it
Sent from my SGH-I317 using XDA Premium 4 mobile app
I will give CL3 a link to this, he is no longer a part of XDA
csstamatin said:
But when I set it in dev settings it stays that way on a reboot. It doesn't change for me or anything. Stays at 0, which is what I prefer. Just asking. Thx
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
Its not for end users its for developers who build ROMS.
csstamatin said:
But when I set it in dev settings it stays that way on a reboot. It doesn't change for me or anything. Stays at 0, which is what I prefer. Just asking. Thx
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
This is for Dev to bake into a ROM, a pre-set per say. Thus why its posted in Android Dev sir..
He is sharing a dev mod.. not a user mod..
Thread cleaned
This is in the exact right place it is supposed to be
Please read the sticky
The Dev only subforum is ONLY for developers to solve problems
Not for releasing any work
Thank you for your cooperation
Friendly Neighborhood Senior Moderator
Some people's kids, I swear!
Thanks Kenney!
Ah another must have guide.
This has been added to the guides & mods collection for the S5 that is linked to in my sig.
(many of which work on the Note 3 as well )
Cheers - TD
tdunham said:
Ah another must have guide.
This has been added to the guides & mods collection for the S5 that is linked to in my sig.
(many of which work on the Note 3 as well )
Cheers - TD
Click to expand...
Click to collapse
Thanks @tdunham !
Sent from my SM-G900T using XDA Free mobile app
Thank you, sir!
Before I do this, just wanted to verify (since op date is feb 2014) that it works with kk as well?
LeftyGR said:
Thank you, sir!
Before I do this, just wanted to verify (since op date is feb 2014) that it works with kk as well?
Click to expand...
Click to collapse
It sure does man.
Seriously? Asking about a ROM in a GUIDE thread?
There is a PM system here, please use it
Thread cleaned
Thanks
FNSM
Do you happen to know the smali for 0.35?
1brainsurgeon said:
Do you happen to know the smali for 0.35?
Click to expand...
Click to collapse
Hexadecimal code will be
3EB33333 for .35x speed
Thanks to @dwitherell for finding this cool calculator that calculates hex speed values.
http://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html
Sent from my SM-G900T using XDA Free mobile app
bajasur said:
Hexadecimal code will be
3EB33333 for .35x speed
Thanks to @dwitherell for finding this cool calculator that calculates hex speed values.
http://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
Thank you much. :thumbup:
bajasur said:
Hexadecimal code will be
3EB33333 for .35x speed
Thanks to @dwitherell for finding this cool calculator that calculates hex speed values.
http://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
0x3EB33333 isn't compiling for me. My fingers aren't fast enough today to catch the errors.
Related
Working on my first theme here and I cannot change the color of the clock in the notification bar. Can anyone give me a tip? I've tried smali/baksmaling the services.jar and editing the relevant lines (or so I thought) but to no avail. Also colorChanger didn't work. :/
Nevermind, figured it out.
what color will this theme be?
kab0b0 said:
Nevermind, figured it out.
Click to expand...
Click to collapse
How you do it?
lviv73 said:
How you do it?
Click to expand...
Click to collapse
You need to edit StatusBarIcon.smali in services.jar
Look for the line:
Code:
invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V
go above it and add the line:
Code:
const/high16 v7, -0x100
where "-0x100" is whatever color you want it to be. (In this case, black)
rhyme187 said:
what color will this theme be?
Click to expand...
Click to collapse
Was gonna leave it a surprise, but it's what I've attached here. It's not quite done yet.
Anyone here managed to find a way to disable sense 4.0 Carousel effect for the HTC One X?
This should allow Live Wallpapers to work properly and not stop each time you flick a screen.
Cxpher said:
Anyone here managed to find a way to disable sense 4.0 Carousel effect for the HTC One X?
This should allow Live Wallpapers to work properly and not stop each time you flick a screen.
Click to expand...
Click to collapse
The pausing of Live Wallpaper is infuriating. It never happened on my Sensation.
It is and i believe it has something to do with the carousel effect. The effect is also unnecessary and a waste of resources.
Anyone with some time willing to try this with Rosie.apk?
Decompile rosie.apk, once decompiled click on smali folder, com folder, HTC folder then launcher folder. Find the RingSlideController.smali file. Open file with notepad ++ or alike text editing app. Find = .method public getDestinationScreen(I)I Within that method find= invoke-virtual {p0,p2}, Lcom/htc/launcher/RingSlideController; >getSnapOffset(I)I Change the "move-result v1" to const/4 v1, 0x1 To make it easy, in the leedroid rosie it's line # 735 that's it, recompile rosie, resign and zipalign.
This was what was done in Sense 3.5 to disable it. Not sure if it still works in Sense 4.0.
Hi! I would like to learn a good setting for improve my screen quality, my phone is a year old (a little more)
Search for @Nephilim his thread. He has some good values. Here are mine using the free Trickster mod app:
Contrast: 0
Gamma adjustment: 0
Gamma offset
Red: -4
Green: 0
Blue: 5
Color multiplier
Red: 140
Green: 140
Blue: 212
Sent from my Galaxy Nexus using XDA Premium HD app
Hn.. got a few Trickster settings for ya. These'll go for most ROM/kernel combos. Had one of the screens with the dingy yellow-whites.
So an aged amoled (a year is good enough to fit in such a catagory tbh) might benefit most from these.
Contrast: -7
Gamma: +7
Gamma Offsets-
Red: 0
Green: 0
Blue: 7
Multipliers-
Red: 217
Green: 207
Blue: 327
If using a kernel with Trinity colors (since there's no Gamma control) , Contrast Offset should be -24 and Red & Green in Multipliers should be lowered 20 points.
If using mpokang, up Red & Green by 30 points.
Note: If you're using a kernel that has UV controls, and an Auxiliary (I think it was called) section where the MMC and Regulator stuff goes.. there's one control that affects the screen display. It's default voltage is around 3200 I think. Anyways, if lowered to 2850, Gamma/Contrast and such will be heavily affected. These are my Trickster settings after undervolting this... anomaly:
Contrast: Low as possible
Gamma: +10
Gamma Offsets-
Red: 4
Green: 4
Blue: 11
Multipliers-
Red: 278
Green: 264
Blue: 378
All Multiplier values can be lowered or raised relative to each other, depending how much brightness one prefers.
Hope this helps a bit!
Wow, thanks!
Can't believe this worked out so well:
Contrast: -24
Gamma: 0
Gamma Offsets-
Red: 0
Green: 0
Blue: 7
Multipliers-
Red: 197
Green: 187
Blue: 327
And just as I was about to finally give in to upgrading when last week I was comparing my GN display next to my bro's N5 and yes I know it's not even a close/fair match up, but I never thought my display was really that bad, it was like completely yellow.
Now the whites really look white even when putting my GN up next to my 60" Sharp quattron 240hz LED TV set at full backlight.
LOL
Thanks guys!, I can't test those options completely cuz I'm on official CM10.2 and I just have 2 types of settings
*Colour Calibration R-G-B from 0% to 100%
*Gamma correction R-G-B from -20 to 20
What I should do?
Jerber said:
Thanks guys!, I can't test those options completely cuz I'm on official CM10.2 and I just have 2 types of settings
*Colour Calibration R-G-B from 0% to 100%
*Gamma correction R-G-B from -20 to 20
What I should do?
Click to expand...
Click to collapse
Are you using the option in settings? If yes then download trickster mod from the play store. If you still cant set any color calibration just flash a custom kernel.
Sent from my Galaxy Nexus using XDA Premium HD app
I'm using Nephilim settings with a few modifications:
Contrast: - 15
Gamma: 5
Red: 6
Green: 4
Blue: 11
Color multipliers
Red 270
Green 250
Blue 340
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
mrgnex said:
Are you using the option in settings? If yes then download trickster mod from the play store. If you still cant set any color calibration just flash a custom kernel.
Sent from my Galaxy Nexus using XDA Premium HD app
Click to expand...
Click to collapse
Yes, I'm using the option in settings (Official CM10.2)
Trickster Mod has the color option but just the pro version :/
I'm facing some problems with CM10.2 (insane battery drain from "phone", inclusive in Idle mode, more that 40% in just one night :/...) so, Im thinking switch again to stock rom, maybe 4.1, so, there's some good kernel for 4.1 that include color settings?, Im tired of 4.3 problems...really!
Max94h said:
I'm using Nephilim settings with a few modifications:
Contrast: - 15
Gamma: 5
Red: 6
Green: 4
Blue: 11
Color multipliers
Red 270
Green 250
Blue 340
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
Click to expand...
Click to collapse
Thanks!
I think for now I prefer using your settings, they seem like a better compromise especially for a user like myself that has never changed any display color settings before, it still gives me the slightest warm whites, but not at all yellowish like it had been previously.
Guess my eyes need to get use to not seeing completely yellow whites first, then perhaps the ultra white settings I previously tested will be easier to view.
BTW
I'm running:
4.1.2 PA 2.57 ROM
Zen V10 kernel
Using this series of images as a boot animation?
https://memorado.com/assets/brain-test/spinning_dancer-198356d474975934480dece33e4951c6.gif
@Brian D ..... Did you mean something like this? The animation (Dancer.zip) is sized to fit the Moto G (720 x 1280) but I had to adjust the sizes for the Gif to fit with XDA ..... The animation also runs a little faster than the Gif ..... Just tap the Gif to see it work..... Usual instructions for the boot animation ..... It's NOT flashable (though I could make it so) just move it to /system/media and rename it to bootanimation.zip
metpolds said:
@Brian D ..... Did you mean something like this? The animation (Dancer.zip) is sized to fit the Moto G (720 x 1280) but I had to adjust the sizes for the Gif to fit with XDA ..... The animation also runs a little faster than the Gif ..... Just tap the Gif to see it work..... Usual instructions for the boot animation ..... It's NOT flashable (though I could make it so) just move it to /system/media and rename it to bootanimation.zip
Click to expand...
Click to collapse
Perfect. So you used all 34 frames. Guess that would be the only way to do it. I will give it a try. I think it makes for a more interesting boot animation. Thanks
FORMSF14 Bootanimations
Set created from animations by http://formtypemaker.appspot.com/
Including all possible color variations.
All credits going to https://plus.google.com/explore/FORMSF14
DOWNLOAD:
http://goo.gl/xt1Dpc
geekon said:
FORMSF14 Bootanimations
Set created from animations by http://formtypemaker.appspot.com/
Including all possible color variations.
All credits going to https://plus.google.com/explore/FORMSF14
DOWNLOAD:
http://goo.gl/xt1Dpc
Click to expand...
Click to collapse
Thanks so much for these boot animations I am going to try to resize some of them to make them work on my Galaxy Tab 3 7 inch
Thanks for your hard work!
Edit: Thanks so much I have resized them and they now work on my 600 x 1024 res tablet