[Galaxy Ace S5830 Themes and Apps] bfo12:
Since I never found any good tutorials for me to enable the crt animation on the galaxy ace (or maybe there are some and im just stupid) I decided to make a tutorial of my own. NOTE : this is the way i did it and it worked so it should also work for you.

WARNING : THIS METHOD INVOLVES MODIFYING YOUR FRAMEWORK-RES.APK FILE, IF YOU DON'T WISH TO POTENTIALLY HAVE TO RE-FLASH YOUR STOCK ROM THEN TURN BACK NOW.. YOU HAVE BEEN WARNED

Anyway to the point.

Prerequisites :

[*] A galaxy ace :D

[*]A PC :D:D

[*] Enabled USB debugging on your phone - Go to settings-->applications-->development and check USB debugging

[*] Your phones USB cable so you can connect it to your PC and the proper drivers installed - or a SD card slot in your PC

(If your on your stock rom just connect to Samsung kies and install the drivers from the menu options, im pretty sure its under tools)

[*]A rooted Ace - http://xdaforums.com/showthread.php?t=1282011

[*] CWM recovery - I have attached it. To flash it boot in recovery (Hold power and home button when you see samsung logo let go of home button). Then select apply update from sd card

[*]Root explorer on the ace - Can be obtained from the Google play store for free

[*]Knowledge of how to navigate through a command prompt environment - http://www.watchingthenet.com/how-to-navigate-through-folders-when-using-windows-command-prompt.html

[*] 7zip - http://www.7-zip.org/download.html

[*]apktools - I've attached an archive of it extract it to any location you want (The C:\ folder would be preferable because then theres less command prompt navigating to do)

[*] A text editor - Notepad will do

[*] Android SDK - (Optional and Recommended) : In case we fail and cant navigate with our phone (But we wont fail hopefully ). Can be downloaded here - http://developer.android.com/sdk/index.html

Ok Assuming we meet all the requirements

Step 1 : Get a copy of your framework-res.apk on your sd card. Do this by starting up root explorer on your phone, navigate to system - framework, scroll down and you should see framework-res.apk. Keep your finger pressed on it and you should see some options, select copy. Now press back twice and find the sdcard folder. Paste it anywhere you want (I made a folder for it so its easier to manage).

Step 2 : : Connect your phone up to your PC:

If you have sd card slots in your PC then unmount your sdcard from your phone by going to settings-SD card and Phone storage , take out your SD card and stick it in the SD card adapter that you should have gotten with your phone and stick that in the SD card slot in your PC

If you don't have an SD card slot then simply connect your phone to your PC via USB. When you connect it you should get a notification saying that the USB is connected, if you didn't you may need to install the drivers. On your phone drag down the notification bar and tap on "USB connected" and then tap "Connect storage to PC"

Step 3 : Now that your phone or SD card is connected you will need to navigate to where you put your framework-res.apk. cut it and paste it to a folder on your computer of your choice (somewhere easy to find). Now make a copy of it (yes that was not a typo we will need the original copy of framework-res if we fail, but we shouldnt fail). Anyway copy and paste it to the folder that you extracted "apktools". So for me that was "C:\Android\apktool" Yes i made a folder called android in C (easier to manage).

Step 4 : Now that we have a copy of framework-res.apk in the apktools folder we can modify it to enable the crt animation (at this point you can choose to disconnect your phone or SD card from your PC and connect it later or leave it in). Now we need to start up command prompt. This is where our years of command prompt navigating come into place :D. At this moment you should see "C:\Users\<Your Username>", you will need to navigate to where you extracted apktools, if you extracted it in "C:\" or somewhere else easy then this should be a walk in the park for you. If you extracted in "C:\" just type "cd C:\" then "cd apktool" and your there. For others, well....Go on to step 5 in a couple minutes ;)

At the end of it you should see something like "C:\.......\apktool" (not the dots obviously)

Step 5 : now that you have framework-res.apk in the folder where you extracted apktools and you have command prompt open lets get started. First we will need to install framework to your system so we can compile correctly. To do this type "apktool if framework-res.apk" in command prompt. If you were successful you should see something like "I : Framework installed to C:\......."

Step 6: We will now need to decompile framework-res.apk. To do this type "apktool d framework-res.apk framework1". If it decompiled succesfully then there should be a folder called "framework1" where you extracted apktool.

Step 7 : Now we get to make that modification we need. Click on "framework1" --> "res" -- > "values". Find a file called "bools.xml" right click on it and click edit. Now we are looking for this line :

<bool name="config_animateScreenLights">true</bool>. Once you have found it change "<bool name="config_animateScreenLights">true</bool>" to "<bool name="config_animateScreenLights">false</bool>" now we save it (Do not click "save as" just click save)

Step 8 we will now need to recompile framework-res.apk. So open up the handy dandy command prompt and type "apktool b framework1 framework-res-new.apk". If all went well you should see a file called "framework-res-new.apk (Dont worry about all the writing in the command prompt window you saw, if you saw any). framework1 is the folder with our edited file

" NOTE: We are NOT using framework-res-new.apk as our new framework-res.apk IT WILL NOT WORK

Step 9 : This is where we are going to use 7zip. You have to open your original apk (the one we copy pasted into the apktool folder) with 7zip. right click on "framework-res.apk". Click "Open" and a window should show up check the box that says to open with a list of installed programs. You will need to browse to the folder you installed 7zip and click on "7zFM", then click "Ok". Now that we have our original "framework-res.apk" open in 7zip need to navigate to the "framework1" folder. Click on "Build -->apk" and there should be a file called "resources.arsc". Drag and drop this file in the 7zip window. You should get a confirmation box. Click "Ok" (There is already one in the 7zip window, the one we are dragging and dropping will replace it).

Step 10: Once we have replaced the "resources.arsc" file we can close the 7zip window. Now heres where the android SDK comes in handy. The rest of this tutorial will be split up into 2 parts; People with the android SDK and people without it

People with Android SDK

NOTE : you have the USB cable to your phone then you can continue on with this, if you only have the SD card however you will need to go to the "People without Android SDK" section to continue.

You will need to copy and paste the "framework-res.apk" (The one in the apktool folder) to the "platform-tools" folder in the android sdk folder. If you installed it in the default location it should be here - "C:\Program Files (x86)\Android\android-sdk\platform-tools", if you have copy pasted it in the "platform-tools" folder you should see a file called "adb"("adb" is a file located in the platform-tools folder).

Now connect your phone to your PC and boot your phone in recovery mode. Select mounts and storage and select mount/system.

Open up command prompt and navigate to the "platform-tools" folder where you pasted "framework-res.apk". Your command prompt window should look something like this : "C:\.....\platform-tools". Now to make sure your phone is connected properly type in "adb devices", you should see your device under list of attached devices. Now that your phone is in recovery mode, you have the "framework-res.apk" in your "platform-tools" folder and you have mounted the system type in

adb shell mv system/framework/framework-res.apk system/framework/framework-res.old

This will make a backup of your original "framework-res.apk". Then type

adb push framework-res.apk system/framework

This will replace your original "framework-res.apk" with the one you modified. Once that is done, unmount/system, clear the cache partition and clear the dalvik cache (select "advanced -->clear dalvik cache") and then reebot the system. This will take a few minutes because we cleared the dalvik cache so please be patient. We are not done yet.

If your phone is not responding once you reboot it then you will need to boot in recovery, connect your phone to your PC, mount/system, open up command prompt and type

adb shell rm system/framework/framework-res.apk

adb shell mv system/framework/framework-res.old system/framework/framework-res.apk

reboot

(Personally this has never happened to me but these commands will replace your old "framework-res.apk, so your phone will start responding) You may need to repeat the steps to get your CRT animation working because something in your framework-res.apk probably screwed up (again its just a hunch as it has never happened to me)

If your phone is responding or you repeated the steps to get it responding then you can follow these steps. Once the phone has rebooted Open up root browser and navigate to "system-->framework" and change the permissions of framework-res.apk to "rw-r--r--".Then find your build.prop file, highlight it and click edit (you may want to make a backup of it first). Find the line that says "debug.sf.hw= 1 and add a "#" at the front so it looks like this "#debug.sf.hw= 1" essentially you are just commenting the line out. Were almost done. Go to "Settings-->Display-->Animation" and check "All animations" And then reboot your phone. Once your phone is rebooted enjoy your new CRT animation. If it worked for you dont forget to press the "thanks" button :D:D

People without Android SDK

If you were directed here from "People with android SDK" because you didnt have the USB cable then stick your sd card in the computer using the adapter (please tell me you have the adapter..)

WARNING : IF THIS METHOD DOES NOT WORK AND YOUR PHONE DOESNT RESPOND YOU MAY NEED TO RE-FLASH A STOCK ROM THEN GO BACK TO A CUSTOM ROM IF YOU HAVE ONE, YOU MAY WISH TO TURN BACK AND ABANDON TRYING TO GET THE CRT ANIMATION, BUT ASSUMING YOU HAVE FOLLOWED THE STEPS PROPERLY IT SHOULD WORK PLUS YOU HAVE COME THIS FAR

If you have your USB cable then connect your phone up to the computer (Im assuming you know how to do this now). locate the "framework-res.apk file in the "apktool" folder the copy/paste it anywhere on your SD card ( i made a folder for it). Make sure you have a backup of the original framework-res.apk. Now that you have the modified framework-res.apk in your SD card open up root browser, find your modified framework-res.apk and move it to "system-->framework", it will replace the original one, so be sure to have a backup then change the permissions of framework-res.apk to "rw-r--r--". Once this is done go into "system" and find your build.prop file, highlight it and click edit (you may want to make a backup of it first). Find the line that says "debug.sf.hw= 1 and add a "#" at the front so it looks like this "#debug.sf.hw= 1" essentially you are just commenting the line out. Were almost done. Go to "Settings-->Display-->Animation" and check "All animations" And then reboot your phone. Once your phone is rebooted enjoy your new CRT animation. If it worked for you dont forget to press the "thanks" button :D:D

A special thanks to the following threads and forums for helping me help you

http://androidforums.com/esteem-all-things-root/520917-guide-how-properly-decompile-recompile-apks-apktool.html

http://xdaforums.com/showthread.php?t=1185231&page=4

http://xdaforums.com/showthread.php?t=1225565

If you have any questions or it didnt work please post them and ill try answer them to the best of my slightly noobish ability :D