☆☆[MOD][GUIDE] - How to build/default Screen Animation speed to .25x!!☆☆

Search This thread

bajasur

Retired Forum Moderator
Sep 19, 2012
4,041
10,523
San Clemente
☆☆[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!

:)
 
Last edited:

csstamatin

Senior Member
Aug 8, 2011
227
33
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
 
  • Like
Reactions: micmars

eZdubzitmk4

Senior Member
Sep 1, 2011
3,689
4,212
RI
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

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
 

Gunthermic

Retired Forum Moderator
Mar 19, 2011
3,534
12,584
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

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..
 
  • Like
Reactions: micmars and bajasur

KennyG123

Senior Moderator / Mod Committee / Spider-Mod
Staff member
Nov 1, 2010
39,953
54,764
Right behind you!
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
 

tdunham

Inactive Recognized Contributor
Jun 21, 2008
13,686
36,465
TampaBay
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
 
  • Like
Reactions: bajasur

Top Liked Posts

  • There are no posts matching your filters.
  • 33
    ☆☆[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!

    :)
    6
    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
    5
    Seriously? Asking about a ROM in a GUIDE thread?
    There is a PM system here, please use it
    Thread cleaned
    Thanks
    FNSM
    4
    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!
    3
    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