Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,032 Members 43,746 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
bajasur
Old
(Last edited by bajasur; 4th July 2014 at 06:49 PM.)
#1  
bajasur's Avatar
Recognized Contributor - OP
Thanks Meter 7,749
Posts: 2,678
Join Date: Sep 2012
Location: Silverado

 
DONATE TO ME
Default ☆☆[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.
Special thanks to @Cl3Kener for finding this MOD, and to @dwitherell for helping get it to work for us on the Galaxy Note 3!! Also, thanks to @dwitherell for helping find this mod!



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, 0x3e800000

    iput v9, p0, Lcom/android/server/wm/WindowManagerService;->mWindowAnimationScale:F

    .line 620
    const/high16 v9, 0x3e800000

    iput v9, p0, Lcom/android/server/wm/WindowManagerService;->mTransitionAnimationScale:F

    .line 621
    const/high16 v9, 0x3e800000

    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
Animation scale 0.25x
        Animation scale 0.5x
        Animation scale 1x
        Animation scale 1.5x
        Animation scale 2x
        Animation scale 5x
        Animation scale 10x
    
    
        0
.25
        .5
        1
        1.5
        2
        5
        10
    
    
        Animation off
Animation scale 0.25x
        Animation scale 0.5x
        Animation scale 1x
        Animation scale 1.5x
        Animation scale 2x
        Animation scale 5x
        Animation scale 10x
    
    
        0
.25
        .5
        1
        1.5
        2
        5
        10
    
    
        Animation off
Animation scale 0.25x
        Animation scale 0.5x
        Animation scale 1x
        Animation scale 1.5x
        Animation scale 2x
        Animation scale 5x
        Animation scale 10x
    
    
        0
0.25
        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
Animation scale 0.25x
        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.25x
        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.25x
        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!

AllianceROM
The Following 20 Users Say Thank You to bajasur For This Useful Post: [ Click to Expand ]
 
dwitherell
Old
#2  
dwitherell's Avatar
Recognized Contributor
Thanks Meter 8,098
Posts: 3,830
Join Date: May 2011

 
DONATE TO ME
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!
If you like what I've done... I like sammiches so feel free to buy me one!
The Following 4 Users Say Thank You to dwitherell For This Useful Post: [ Click to Expand ]
 
bajasur
Old
(Last edited by bajasur; 5th February 2014 at 02:50 PM.)
#3  
bajasur's Avatar
Recognized Contributor - OP
Thanks Meter 7,749
Posts: 2,678
Join Date: Sep 2012
Location: Silverado

 
DONATE TO ME
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
AllianceROM
The Following 2 Users Say Thank You to bajasur For This Useful Post: [ Click to Expand ]
 
bajasur
Old
#4  
bajasur's Avatar
Recognized Contributor - OP
Thanks Meter 7,749
Posts: 2,678
Join Date: Sep 2012
Location: Silverado

 
DONATE TO ME
Quote:
Originally Posted by csstamatin View Post
What's the difference between this and using the developer settings menu to adjust the animations speeds?

Sent from my SM-N900V using Tapatalk
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
AllianceROM
The Following User Says Thank You to bajasur For This Useful Post: [ Click to Expand ]
 
csstamatin
Old
#5  
Senior Member
Thanks Meter 15
Posts: 113
Join Date: Aug 2011
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 Following User Says Thank You to csstamatin For This Useful Post: [ Click to Expand ]
 
eZdubzitmk4
Old
#6  
eZdubzitmk4's Avatar
Recognized Contributor
Thanks Meter 4,126
Posts: 3,639
Join Date: Sep 2011
Location: RI

 
DONATE TO ME
Quote:
Originally Posted by csstamatin View Post
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
<---Click!
<-
The Following User Says Thank You to eZdubzitmk4 For This Useful Post: [ Click to Expand ]
 
ThdDude
Old
#7  
ThdDude's Avatar
Recognized Contributor
Thanks Meter 4,834
Posts: 2,303
Join Date: Sep 2010
Location: Kansas City

 
DONATE TO ME
I will give CL3 a link to this, he is no longer a part of XDA
(Click banner for project links)
"Look, let me explain something to you. I'm not Mr. Lebowski. I'm the Dude. So that's what you call me. That, or His Dudeness Duder or El Duderino, if, you know, you're not into the whole brevity thing."
The Following User Says Thank You to ThdDude For This Useful Post: [ Click to Expand ]
 
scrosler
Old
#8  
scrosler's Avatar
Recognized Developer
Thanks Meter 51,826
Posts: 23,666
Join Date: Feb 2007
Location: Fargo

 
DONATE TO ME
Quote:
Originally Posted by csstamatin View Post
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
Its not for end users its for developers who build ROMS.
The Following 3 Users Say Thank You to scrosler For This Useful Post: [ Click to Expand ]
 
Gunthermic
Old
#9  
Gunthermic's Avatar
Recognized Contributor / Themer
Thanks Meter 8,555
Posts: 3,047
Join Date: Mar 2011

 
DONATE TO ME
Quote:
Originally Posted by csstamatin View Post
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..


Wanna Chat? Looking for theming advice, answers..
Join me at -> guntherm66@gmail.com Use Gtalk to Join!
Team BlackOut Email: teamblackoutapps@gmail.com
Average Joes Team Memebers: Me, jonathanphx1, dan_joegibbsf, strongsteve
Team BlackOut Memebers: Me, B-Boy, DJ, Trapv and more
The Following 2 Users Say Thank You to Gunthermic For This Useful Post: [ Click to Expand ]
 
KennyG123
Old
#10  
KennyG123's Avatar
RC-RT Committee / Senior Moderator / Spider-Mod
Thanks Meter 26,204
Posts: 28,093
Join Date: Nov 2010
Location: Right behind you!

 
DONATE TO ME
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

Moderator Directory - - - FORUM RULES - - - Support Autism Awareness here

The Following 6 Users Say Thank You to KennyG123 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes