How to Manually Enable CRT Animation
The CRT animation is disabled by default in most Android builds that aren't strictly Vanilla. Luckily, turning it on is a relatively simple process, but does require a little hacking. Still, if you have the tools set up, it's a two minute job!
Requirements
- Working ADB setup - SDK (GUIDE HERE)
- Working apktool setup (GUIDE HERE)
- Text editor (Notepad ++ or similar)
- About 5 minutes of your time
Method
1. Start by pulling framework-res.apk off your phone by opening up a command prompt and typing:
adb pull /system/framework/framework-res.apk
2. Next we need to decompile the framework. To do this we need apktool. From the same command prompt or a new one, type:
apktool d framework-res.apk
d means decompile. You can add a path to it if you want it to end up in a specific folder, by adding it to the end of the command “apktool d framework-res.apk folder_name” else it will end up in a folder named “framework-res”.
3. Open up the folder framework-res and navigate to res/values/ and open up the file bools.xml.
4. Search for “animateScreenLights” and change its default value of true to false.
5. Save and close the file.
6. Back to the command prompt, type :
apktool b framework-res framework-res-new.apk
7. VERY IMPORTANT : Add “-new.apk” so you know what you're looking for. Generally it is not a good idea just to push this build framework file back to the phone. Instead, open both the framework-res.apk and framework-res-new.apk and copy the Resources.arsc from the NEW one to the old one. You can pull framework-res.apk to another location on your hard drive, or copy it before pulling the file to ensure you have a backup.
8. Now to send it back to your phone using the command :
adb push framework-res-new.apk /system/framework/framework-res.apk
You may need to mount system as read write to push the file. In order to to do this, do:
adb shell
su
cat /proc/mounts
Locate /system in the list, and make a note of the mount point. It will be something like: mmcblk0p1, mtdblock1, stl9, etc. After, type:
mount -o rw,remount /dev/block/MOUNTPOINT /system
(There are loads of variations of this command knocking about, which over complicate it. This is all you need to type for pretty much any device.
If everything worked okay your phone should now boot and should display the CRT OFF animation when you turn off your screen. If it does get stuck in a boot loop or if you get warnings/errors when you compile something went wrong. Try a data wipe, or restore the backup. If you did get warnings/errors you might have to add your phones framework to apktool (see the apktool guide on this site for an explanation).
No comments:
Post a Comment
thank you