[Android 4.0][GUIDE]Port ICS transition animations on EVERY ROM & EVERY PHONE

Search This thread

capez

Senior Member
Aug 2, 2010
159
931
29
Rovigo, Castelnovo B. - Italy
Because some people asked me, I wrote this tutorial that explains how to port ICS transition animations on EVERY ROM & especially on EVERY PHONE!!!.

1) First of all, you need to download and install APK MANAGER:

http://forum.xda-developers.com/showthread.php?t=695701

2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.

3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".

4) In the apk manager folder, double click on the file "Script". A cmd window will open.

5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
The script will decompile the framework-res.apk.

6) Now go to your apk manager folder, go to Projects\framework-res.apk\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.

7) Download this:

http://www.mediafire.com/?1qjwtotg1r8umm1

8) Copy the files from the folder "anims" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes. Then copy also the files from the folder "other_files" to the anim folder.

9) Now go to your apk manager folder, go to Projects\framework-res.apk\res\values\. Edit the file integers.xml and put these two lines under the line of "shortAnimTime":

<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>


Save.

10) Return to Script. Enter "11" (Compile apk) and enter.
The script will rebuild the framework-res.apk.

11) You are asked if this is a system application. Enter "y" and enter. Then a second question appears. Enter newly "y".

12) Then after it processes, Don't press anything & DON'T CLOSE THIS WINDOW!!! A new folder "keep" is created in the apk manager folder. Go inside it and delete the file "resources.arsc". Now go inside keep\res\anim\ and delete every file with the same name as every file of the "anims" folder of the zip downloaded.
Then return to Script and press enter. It processes, then if everything went ok, in the folder "place-apk-here-for-modding" a file "unsignedframework-res.apk" is created. Copy it outside and rename it "framework_res.apk".

13) Now you can create a flashable zip or you can simply push it to your system (but you have to sign the apk). :D

CONGRATRULATIONS!!! YOU ARE DONE!!!

And if you think this tutorial is useful, CLICK THANKS!!! :)

Now I'm satisfied and i can continue studying phylosophy for tomorrow test...:mad:

P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post and also give credit to me!!! :D

Video of this mod working:

http://www.youtube.com/watch?v=vf1U_30Ngfk
 
Last edited:

richiebm

Senior Member
Sep 22, 2010
102
25
Rotation animations??

I already installed the CM7 transition animation zip from your other thread.. So, thank you in case I haven't appreciated your work :)

Does this one have screen rotation animation too?
 

magicman0

Senior Member
Jan 20, 2009
168
5
Princeton, NJ
Works great

Great guide. It worked for me.

Oddly though, I replaced my framework-res.apk through root explorer, set all the correct permissions, and when I rebooted, my google accounts were deleted, along with my contacts and google music library.

Not a problem though, Ill just have to relogin to them.
 
  • Like
Reactions: digkong

nmeuret

Senior Member
Aug 10, 2010
1,701
1,116
Montpellier
Great, it works very well. I maybe found a more simple way to do it :

1. Dowload ApkTools package I've done here :
http://www.multiupload.com/Q6YSAF2MH3
2. Unzip it to your harddrive and put your FrameWork-res.apk in it,
3. Click on "decomp.bat"
4. A new "unpack" directory has been created, with decompiled files in it,
5. Download this:
http://www.mediafire.com/?1qjwtotg1r8umm1
6. Copy the files from the folder "anims" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes. Then copy also the files from the folder "other_files" to the anim folder.
7. Now go to your apk manager folder, go to Projects\framework-res.apk\res\values\. Edit the file integers.xml and put these two lines under the line of "shortAnimTime":

<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>

Save.

8. Patch the anim files in it, and edit the xml,
9. When finished, just click "recomp.bat" to get a new compiled file "framework-res2.apk",
10. Juste rename the file and put it in a update zip file, you can use this one and replace the framework file in it by yours :
http://www.multiupload.com/PPMFV9Y316

Should work !!!

PS : If your framework-res.apk contains .9.png files, decompilation will fails. No problem with standard CM7 framework-res.apk, but some custom themed ROM can have the problem. Don't know how to fix that, maybe the 1st solution with APK MANAGER work better !?
 
Last edited:

capez

Senior Member
Aug 2, 2010
159
931
29
Rovigo, Castelnovo B. - Italy
Great, it works very well. I maybe found a more simple way to do it :

1. Dowload ApkTools package I've done here :
http://www.multiupload.com/Q6YSAF2MH3
2. Unzip it to your harddrive and put your FrameWork-res.apk in it,
3. Click on "decomp.bat"
4. A new "unpack" directory has been created, with decompiled files in it,
5. Patch the anim files in it, and edit the xml,
6. When finished, just click "recomp.bat" to get a new compiled file "framework-res2.apk",
7. Juste rename the file and put it in a update zip file, you can use this one and replace the framework file in it by yours :
http://www.multiupload.com/PPMFV9Y316

Should work !!!

PS : If your framework-res.apk contains .9.png files, decompilation will fails. No problem with standard CM7 framework-res.apk, but some custom themed ROM can have the problem. Don't know how to fix that, maybe the 1st solution with APK MANAGER work better !?

Maybe this is the problem someone is having...Someone must compare your version and mine, to see which one works and which not. (Obviously with a non-cyanogenmod rom :))
 

nmeuret

Senior Member
Aug 10, 2010
1,701
1,116
Montpellier
Update done for CM7 Nightly 176 (latest) :

http://www.multiupload.com/J88VTO2SU6

---------- Post added at 07:01 PM ---------- Previous post was at 06:59 PM ----------

Maybe this is the problem someone is having...Someone must compare your version and mine, to see which one works and which not. (Obviously with a non-cyanogenmod rom :))

Well, in the APK MANAGER post they say :

>Optimize pngs (ignores .9.pngs)

So it should work better !! (but as I'm lazy, I still use APKTOOL one click solution ;) )
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 303
    Because some people asked me, I wrote this tutorial that explains how to port ICS transition animations on EVERY ROM & especially on EVERY PHONE!!!.

    1) First of all, you need to download and install APK MANAGER:

    http://forum.xda-developers.com/showthread.php?t=695701

    2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.

    3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".

    4) In the apk manager folder, double click on the file "Script". A cmd window will open.

    5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
    The script will decompile the framework-res.apk.

    6) Now go to your apk manager folder, go to Projects\framework-res.apk\res\anim\.
    In this folder there are the animations of your rom. They consist in some .xml files decompiled.

    7) Download this:

    http://www.mediafire.com/?1qjwtotg1r8umm1

    8) Copy the files from the folder "anims" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes. Then copy also the files from the folder "other_files" to the anim folder.

    9) Now go to your apk manager folder, go to Projects\framework-res.apk\res\values\. Edit the file integers.xml and put these two lines under the line of "shortAnimTime":

    <integer name="config_activityShortDur">150</integer>
    <integer name="config_activityDefaultDur">220</integer>


    Save.

    10) Return to Script. Enter "11" (Compile apk) and enter.
    The script will rebuild the framework-res.apk.

    11) You are asked if this is a system application. Enter "y" and enter. Then a second question appears. Enter newly "y".

    12) Then after it processes, Don't press anything & DON'T CLOSE THIS WINDOW!!! A new folder "keep" is created in the apk manager folder. Go inside it and delete the file "resources.arsc". Now go inside keep\res\anim\ and delete every file with the same name as every file of the "anims" folder of the zip downloaded.
    Then return to Script and press enter. It processes, then if everything went ok, in the folder "place-apk-here-for-modding" a file "unsignedframework-res.apk" is created. Copy it outside and rename it "framework_res.apk".

    13) Now you can create a flashable zip or you can simply push it to your system (but you have to sign the apk). :D

    CONGRATRULATIONS!!! YOU ARE DONE!!!

    And if you think this tutorial is useful, CLICK THANKS!!! :)

    Now I'm satisfied and i can continue studying phylosophy for tomorrow test...:mad:

    P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post and also give credit to me!!! :D

    Video of this mod working:

    http://www.youtube.com/watch?v=vf1U_30Ngfk
    12
    I have created a easy patching using Achep's Patcher, so the patcher + xml is added, so here u go guys!

    If u had bootlooped, re-try doing it...

    Credits to Achep and capez
    6
    Finally DONE!!! :)
    4
    My next work will be porting the ICS Launcher (maybe it will be a little difficult),
    and drawable HDPI...To have a stock-like ICS experience on every gingerbread phone!!! :)
    3
    Found it on my old computer and uploaded it to my mediafire, enjoy :)

    http://www.mediafire.com/download/s66s0oz6t6wptwq/ICS_transition.zip

    Please can someone reupload the ANIM FOLDER? Link on mediafire is expired.
    Thank you!

    Yes, I'd appreciate it to!!

    Thanks.

    please, can you upload amins file,the link is dead!

    Can someone please re-upload ??