[TUTORIAL]CRT animation in any stock Gingerbread

Search This thread

neophyte1983

Senior Member
Jul 8, 2011
701
125
I run under KPO Stock and made only the step with the framework-res.apk i not touched the build.prop and the crt animation works and i have the normal boot animation *wonder* pretty cool so i must not modify the build.prop really cool.
 
Last edited:

Lijop

Senior Member
Aug 30, 2011
548
88
Kerala, Kottayam
Google Pixel 6 Pro
Did you follow the bootanimation tutorial in this forum...bootanimation should not cause bootloop.

@skynet you are wrong. it will cause a bootloop. you will get crt on odex but for boot animation you need to be deoxeded.

---------- Post added at 02:45 PM ---------- Previous post was at 02:43 PM ----------

I met a bootloop if I use custom bootanimation.

reflash firmware using odin. deodex and use customboot
 

mani.1

Member
Oct 6, 2011
28
0
HelP !!!

Hi, i have a galaxy ace with with S5830JPKP9 2.3.3 stock firmware and i EXACTLY followed the "method 2" to enable crt on my phone... everything went down great, the apps began to force close as i copied the framework and build files.. but when i rebooted to see if it worked, my phone went into a bootloop (with a white screen NOT the boot animation, but the boot sound was working)... I then flashed my phone to make it work again and it is fine now.... Please tell me what did i do wrong!!! Your help would be higly appreciated.. Thanks. :eek:
 

skynet28

Senior Member
Mar 24, 2011
312
481
Bhubaneswar
Hi, i have a galaxy ace with with S5830JPKP9 2.3.3 stock firmware and i EXACTLY followed the "method 2" to enable crt on my phone... everything went down great, the apps began to force close as i copied the framework and build files.. but when i rebooted to see if it worked, my phone went into a bootloop (with a white screen NOT the boot animation, but the boot sound was working)... I then flashed my phone to make it work again and it is fine now.... Please tell me what did i do wrong!!! Your help would be higly appreciated.. Thanks. :eek:

Looks like you had not set permissions after you copied framework-res.apk if you had compiled properly. Obviously there would be force closes if you replace framework-res.apk. But you had to change the read/write permissions to -rw -r -r or "chmod 644 framework-res.apk" using adb.
 
Last edited:

mani.1

Member
Oct 6, 2011
28
0
no man, there isn't on stock firmware by default... samsung disabled it for some reason

---------- Post added at 09:29 PM ---------- Previous post was at 09:25 PM ----------

Looks like you had not set permissions after you copied framework-res.apk if you had compiled properly. Obviously there would be force closes if you replace framework-res.apk. But you had to change the read/write permissions to -rw -r -r or "chmod 644 framework-res.apk" using adb.

i used root explorer to copy files instead of adb... I dont know how to set up adb.. and another thing is that like you said, there were force closes so it means the files were copied alright with the correct permissions, "-rw" to be exact, in root explorer..
 

mani.1

Member
Oct 6, 2011
28
0
hmmm... anyway does anyone understand what i might be doing wrong in the procedure? please help me, really want that crt animation thingy.. thanks.
 

skynet28

Senior Member
Mar 24, 2011
312
481
Bhubaneswar
hmmm... anyway does anyone understand what i might be doing wrong in the procedure? please help me, really want that crt animation thingy.. thanks.

Or you can upload your framework-res.apk and build.prop. I can make you a cwm flashable zip for crt screen off animation if you can't do it.

And for the crt "on" animation I tried hard....edited framework xml and different smali files as per source(it required far more changes than crt off) but could not succeed.
We have been with crt screen off animation for long.
Anybody else had luck with crt screen on animation?
In cm7 you see this option but it does not work.
 
Last edited:

vRevenant

New member
Oct 22, 2011
4
0
I'm doing this on my D2G, and everything went as you said, but i cannot find the line in my build.prop?

Edit: I just rebooted phone, without editing build.prop, and i have the crt animation, without losing my boot animation. Thank you for the guide.
 
Last edited:

mani.1

Member
Oct 6, 2011
28
0
Or you can upload your framework-res.apk and build.prop. I can make you a cwm flashable zip for crt screen off animation if you can't do it.

And for the crt "on" animation I tried hard....edited framework xml and different smali files as per source(it required far more changes than crt off) but could not succeed.
We have been with crt screen off animation for long.
Anybody else had luck with crt screen on animation?
In cm7 you see this option but it does not work.

oh okay, that would be wonderful.. One problem though, please tell me how to set up cwm on my ace "gingerbread.JPKP9 2.3.3" stock firmware... and please tell me how to make a backup using it and how to restore the firmware... and if i restore my backup, would all of the stuff be the same, i mean like settings, contacts, apps?
 

skynet28

Senior Member
Mar 24, 2011
312
481
Bhubaneswar
oh okay, that would be wonderful.. One problem though, please tell me how to set up cwm on my ace "gingerbread.JPKP9 2.3.3" stock firmware... and please tell me how to make a backup using it and how to restore the firmware... and if i restore my backup, would all of the stuff be the same, i mean like settings, contacts, apps?

You can find cwm,flashing and rooting in the development section. For cwm you just have to download the zip from that thread and flash it from recovery(HOME+POWER) mode. Yes you can restore everything .
 

mani.1

Member
Oct 6, 2011
28
0
You can find cwm,flashing and rooting in the development section. For cwm you just have to download the zip from that thread and flash it from recovery(HOME+POWER) mode. Yes you can restore everything .

k thanks soo much for the info, i'll post you my framework and build so you could make up a flashable zip for me as soon as i install cwm... we keep you posted.. thanks again :)
 

lazz121

Member
Aug 21, 2010
13
0
Hey, I'd like to try this on my HTC Stock Rom 2.3.3 (unrooted).

But at Step 6 the line in the xml already says "false":
<bool name="config_animateScreenLights">false</bool>

Should I continue anyway?
 

ethancottier

Senior Member
May 10, 2011
187
65
Birmingham
It didn't work on my HTC ChaCha. I decompiled framework-res.apk. I edited the bools.xml correctly, recompiled it (altho I got a lot of warnings). Then I took the resources file out of the build folder, and put it into the original framework-res.apk.

Then I put framework-res.apk into a flashable zip, flashed it in cwm recovery. Checked the permissions (they were already set correctly). But still no CRT animation :(

EDIT: I also tried replacing framework-res.apk in Root Explorer, but as soon as I did that, I got a bootloop :/
 
Last edited:

PsyGik

Senior Member
Jan 8, 2012
471
144
Bhai, excellent tutorial! Hats off to you, if I could press the thanks button million times even it'd be less! :D
 

supergrobi94

Inactive Recognized Themer
Feb 9, 2012
1,403
1,909
Hello,

does it works on 2.3.6 too?

Is it possible that someone makes a zip file which you can install via CWM or is this the one and only way to get the crt animation on StockROMs? :confused:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    You can enable crt screenoff animation in any stock gingerbread rom(2.3.3/2.3.4 odex/deodex)

    You will need-
    a)METHOD 1-APK Manager from here http://xdaforums.com/showthread.php?t=695701 METHOD 2-APK tool-windows-http://code.google.com/p/android-apktool/downloads/detail?name=apktool-install-windows-r04-brut1.tar.bz2&can=2&q= and APKtool.jar-http://code.google.com/p/android-apktool/downloads/detail?name=apktool1.4.1.tar.bz2&can=2&q=
    b) .zip manager ( 7-zip or winrar for windows and archive manager for linux)
    c) text editor ( Notepad++ in windows or gedit/write in linux )
    d) framework-res.apk from /system/framework that you want to modify and build.prop from /system.
    e)Root explorer/Fileexpert or adb to pull framework-res.apk and build.prop

    First thing using root explorer or adb pull the above files to your computer.Then do the following..
    For editing framework-res.apk you can use
    Method-1
    1) Once you extract APKManager you should have a folder called "APKManager," somewhere.Put apkmanager to the root of your C Drive.


    2) Within that folder there's another folder called "place-apk-here-for-modding". Place you desired framework-res.apk into that folder.

    3) Navigate back to the root of "APKManager", and double-click "Script.bat"in windows or "Script.sh" in linux

    4) Press option 9 to decompile the apk. (It may take some time)

    5) Once finished, navigate to "APKManager\projects\framework-res.apk\res\values".

    6) Inside look for a file called "bools.xml". Open it using your notepad++ or gedit
    and find and change the
    "<bool name="config_animateScreenLights">true</bool>" to "<bool name="config_animateScreenLights">false</bool>"




    7) Remember to save! Not "save as," but save.

    8) Double-click "Script.bat" or "Script.sh"again, and choose option 11 to build the apk

    9) Say "y" to first option.The program will ask if it is a system app..say yes.Then again yes to copy. Then it will extract to keep folder.Then an option will come to delete the resources.arsc

    10) Open the keep folder, and delete resource.arsc before saying yes to the last option.

    11) Say "y" to the last option.

    12) It will ask you to press any key, do that, and it will finish.

    13) Navigate to the "place-apk-here-for-modding" folder, and you'll see a new file called, "unsignedframework-res.apk" open it with a .zip manager, and take the resource.arsc file from it, and transfer it to your original framework-res.apk without extracting it,i.e,through 7-zip/winrar/archive manager(Which should be in the same folder)

    14) Now push the modified original framework-res.apk(with new resource.arsc) onto your phone /system/framework using adb or copy by root explorer/fileexpert, and set permissions using root explorer to -rw -r -r or use chmod 644 framework-res.apk using adb. There wil be force-closes using root explorer when copying..just ignore that and set permissions and reboot.


    15) Now pull build.prop from /system to your computer

    16) Open build.prop(in samsung ROMs) and modify the line.
    'debug.sf.hw=1' is the line in the file. Replace it by '#debug.sf.hw=1'. Indirectly you are just changing the line into a comment by adding a #

    17) Now take this file and replace your original build.prop. You can do this by using adb or root explorer and set permssions similarly as in above.

    18)Reboot and go to settings>>display>>animations and choose all animations. Enjoy your crt screenoff animation.;)

    19) You will lose your boot animation once you do this(in samsung ROMs) . Enable custom boot animation here-http://xdaforums.com/showthread.php?t=1161423.But you have to deodex your firmware to use custom boot animation.

    METHOD 2
    1) Download APKTOOL
    On Windows, download apktool-windows and apktool.jar
    Extract the file contents in each archive into your Windows folder:
    C:\Windows

    2) Save your framework-res.apk file to a place that you know
    like to: C:\hktw\framework-res.apk
    Open the command prompt
    On Windows, press the Start button, type: cmd, press the Enter button

    3) You’ll need to change the directory of your commands to the one where you saved your .apk file
    Type the “cd” command and then the directory where you saved your file.
    cd C:\hktw
    Now you need to tell apktool to decompile the framework…
    apktool d -f framework-res.apk
    You should see in your .apk folder a new folder has been created: “framework-res”

    4) Inside of that folder you can now see all of the decompiled parts of your .apk
    Edit res/values/bools.xml
    Change "<bool name="config_animateScreenLights">true</bool>" to "<bool name="config_animateScreenLights">false</bool>"

    5) When you’re done editing, you’ll need to recompile the .apk
    cd C:\hktw
    apktool b -f framework-res
    Note the inclusion of the “.apk” during decompilation, and the exclusion of the “.apk” during recompilation

    6) After you’ve sent the recompile command, apktool will work and eventually create two new folders called “dist” and “build”
    Inside of the “build” folder will be the recompiled parts of your .apk

    7) Open the original .apk file using WinRAR of 7zip
    Drag and drop the “resources.arsc” file inside of “build/apk” to the root of your original .apk

    8) Now place that modified framework-res.apk in your /system/framework.

    9) Then follow steps 15-19 of method 1. Thats it.

    Thanks to these forums for the tutorial-
    http://xdaforums.com/showthread.php?t=1138800
    http://xdaforums.com/showthread.php?t=695701
    http://xdaforums.com/showthread.php?t=1140461
    1
    It works! Tested with the S5830BVJKP2 Brazilian FW I only had issues with the apk manager, it was saying:

    Please make your decision:9
    Please Select A Project To Work On (Option #22)

    So I used the apktool. If I could I would thank you 10 times :D
    This is for selecting default apk to be used in project.
    When it shows press any key..Then enter 22 .Now if you have placed the apk in modding folder it will give option like
    1-framework-res.apk
    So Enter 1 and then on next option enter 9. Decompilation will start.
    1
    After point 14, when I'm trying to reboot, I have boot animation all the time and my GT-S5830 aren't run. Why? Have I done something wrong? Thanks for replies!

    PS: I have 2.3.4

    Try with apktool. I use the above methods to modify all apks and they work well. Please refer to threads related to apkmanager and apktool in xda. Proper knowledge is required to decompile and compile correctly.Also you may check with permissions.
    1
    I have done everything step by step like in tutorial method 2 and the same problem. (I'm trying to reboot, I have boot animation all the time and my GT-S5830 aren't run)
    If you have done all steps properly,are permissions of framework-res.apk set to -rw -r -r ?
    Or if using adb have you done chmod 644 framework-res.apk?
    1
    I don't know :/ I just replaced the file. Can you tell me how to set permissions to -rw -r -r step by step?
    1.If you are using root explorer then after copying from the menu you can select permissions from the pop up after mounting as r/w long pressing the apk select
    read/write ,read ,read (rw -r -r ) for owner ,group and others respectively.
    It is difficult since after copying lots of force closes occur.
    2.If by adb

    Code:
    $ adb shell
    $ su
    # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
    # cd /system/framework
    #chmod 644 framework-res.apk