[Galaxy 3 Android Development] sekhargreen:
:: Modding & Mods ::

ICS Transition Animations

A simple tutorial to get ICS transition animations on any ROM

Full credits to Capez only

Download APK Multi Tool (previously known as APK manager) from here

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

CONGRATRULATIONS!!! YOU ARE DONE!!!

Video of this mod working:

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

Enable / Disable media scanning on boot

To enable media scanning on boot:

su
pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

To disable media scanning on boot:

su
pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

Caution: I personnaly tried it on our Galaxy 3. But it is looped in Bootanimation.

Please test and confirm anybody, if possible.

Swapping out PNG's in .apk

Full credits to itiskonrad

***Swapping out PNG's***

Okay, so say you have an icon or an image in your phone that you just don't like and would like to swap out with something (or swap out with nothing, so you can't see it at all). Here is what you'll need:

7zip for your computer

Root explorer for your phone

Some kind of image editor. I'm partial towards Paint.net. =) (Only if you're actually going to edit an image. If you're just going to swap it out for something else, you obviously won't need this.)

Here is a good example of something where I really felt like I needed to change some images we can use that I just discovered last night while calling to activate my credit card over the phone. Here is the dialer when you start the phone:

Notice those handy letters next to the numbers =)

Once I started the call to the credit card company, it asked me to verify myself by inputting, using the keypad, the letters of my mother's maiden name. So I opened the dialer, and what did I see?

For whatever STUPID STUPID REASON, they REMOVE the letters next to the numbers on the keypad that opens DURING the call, making it extremely difficult for me to type my mother's maiden name in the time permitted, given that no, I don't off the top of my head know where the letters sit on the dialer. So I felt this needed fixing =)

1.) Copy the apk you want to modify from your phone (using root explorer) and transfer to your computer

In this case, I wanted my Phone.apk, which is in /system/app. The vast majority of system apps are in this folder with the major exception of framework-res.apk, which is the phone’s BIG cajone in /system/framework, and as such, should be handled with utmost care. Messing with framework-res.apk incorrectly is an EASY way to brick your phone in a heartbeat.

2.) Unzip the apk using 7zip and look for your PNG's!

Keep the original, untouched, zipped apk somewhere safe on your computer. You’re going to need one to modify and another copy for safekeeping in case you want to revert back to the stock apk, or something goes wrong. Unzipping the apk just makes searching for the PNG you’re looking for much easier, since you can change the folder view in windows to give you a thumbnail of each of the items. And lookee, lookee, here they are in phone/res/drawable-hdpi, right next to other dial buttons with those handy letters!!

3.) Edit your PNG's however you want.

In this case, the work is pretty much done for us! I just swapped out the PNG's without the letters for copies of the ones with the letters, and just changed the names of the files to the original versions, like so:

4.) Using 7zip, right click on the original, untouched apk, choose 7zip, and open archive. DO NOT EXTRACT.

Open archive will let you explore the apk without having to extract it and lose the proper packaging of the apk.

5.) Select all your newly modified PNG’s and drag and drop them into the correct location in the open archive of the original apk, letting them overwrite the old PNG’s.

6.) Put this newly modified apk back onto your phone. Using root explorer, copy the new apk into the /system folder of your phone.

7.) CHANGE THE PERMISSIONS of the apk to match those of the original apk in /system/app.

In this case, long press on the phone.apk, select permissions, and select the check boxes as follows- Owner: Read, Write; Group: Read; Others: Read. This matches the permissions of phone.apk in /system/app

8.) Move the new apk into /system/app, and let it overwrite the original!

9.) Restart your phone!

Voila! Now when I call my credit card company and have to type in names, I can!

Regional Fonts (Indian)

Download Desifonts.zip

Copy to sdcard. Go to CWM Recovery.

Install it.

Reboot.