This tutorial is written for those interested in modifying the framework-res.apk to enable/disable CRT-Off effect on ICS (Samsung) ROMs using Windows 7. I'm sure it doesn't vary that much with other operating systems. I have used many tutorials from XDA (sources below) - but I will compile everything into one easy guide. Hope this helps! Otherwise, you can get the CWM flashable ones here.
What you need
- APKTool: apktool.jar, aapt.exe, apktool.bat, apktool1.4.3.tar.bz2
- APK Multi-Tool
- XML Editor: Notepad++ or Windows Notepad
- WinRAR or 7-zip
Update: You can also use this modified ApkTool. - thanks sileshnair.
Instructions
I will be splitting this tutorial into several steps to break down the processes (and possibly provide easier troubleshooting help).
Setting up the Files You Need
1. Download all the files needed above.
2. Install necessary programs (winRAR, 7-zip, Notepad++, APK Multi-Tool, etc.)
APK Multi Tool should ask you to choose a default folder. Just make sure you know where it is.3. Create a folder where you can access. (for me: My Documents/Flash/APKTool)
4. Place: apktool.jar, aapt.exe, apktool.bat, and apktool1.4.3.tar.bz2 into that folder.
Decompile
1. Obtain framework-res.apk from your phone. This can be done using Root Explorer and going to: system/framework/
2. Place framework-res.apk into the folder where you placed apktool.jar (and the rest of them).
3. Exit the folder (so that you are looking at it as "APKTool"). Hold-shift and right-click the folder (APKTools), and select "open command window here.
4. A command prompt should pop up. Type the following:
apktool if framework-res.apkapktool d frameowrk-res.apk
This should decompile the framework, allow it to run and close after it completes.
Editing CRT-Off Effect
1. Once the decompiling completes, go back into "APKTools" folder and you should see another folder (framework-res).
2. Open it, and go to: framework-res/res/values.
3. Right-click bools.xml and either press "edit" or "edit with Notepad++".
4. Find the line that says "(bool name="config_animateScreenLights">true</bool) (I changed the first and last part into brackets because it would comflict with the forum code, it should be "<" and ">" respectively).
5. Change the "true" to "false".
6. Save and close.
Compiling
1. Go back into APKTools folder where you had apktool.jar, apktool1.4.3.tar.bz2, etc.
2. Unzip apktool1.4.3.tar.bz2, and unzip again, inside should be a file called "apktools.jar". Replace the original one in "APKTool" folder.
3. Leave the folder (like you did in decompiling) and hold shift and right-click the folder and select "open command window here".
4. Type the following in the command window:
apktool b framework-res5. Now go to: APKTool/framework-res/dist/
6. There should a file created called "framework-res.apk", right-click and open with winRAR or 7-zip.
7. In winRAR, click "Extract To" and press OK. (Pretty sure you can extract in 7zip too).
8. This should create a new folder called "framework-res". Go inside it where you see the files (assets, res, AndroidManifest, resource.arsc).
9. Go find your original framework-res.apk (located in the root APKTool/ folder) and right-click and open with winRAR (or 7zip).
10. Select "META-INF" and "AndroidManifest.xml" and extract it to the folder created in step 8.
11. Select-all the files within the folder (of step 8) (it should now contain: assets, res, META-INF, AndroidManifest, resource.arsc) and right-click and "add to archive" (again, with winRAR - sure 7zip is something else).
12. In the prompt, change the following: Archive format = zip, Compression method = store. Press OK.
13. This should once again create a framework-res.zip file in the folder.
14. Press alt (assuming you are using Window 7) > Tools > Folder Options. Press the view tab, and uncheck "hide extensions for known file types.
15. Rename "framework-res.zip" to "framework-res.apk".
Now this "framework-res.apk" file is ready to be pushed to your phone's system/framework folder. Your phone should hang, restart it, and you now have CRT-Off effect! If you want to make a CWM flashable - below is the tutorial.
Making a CMW-Flashable File
1. Go below and download my template.zip. Extract the folder "template".
2. Take the completed framework-res.apk from earlier and place it in: template/system/framework.
3. In the template/ root directory, select META-INF and system and right-click, add to archive.
4. In the prompt, change the following: Archive format = zip. You can rename it to whatever you wish "LPS_CRTOff_On.zip".
5. Take the zip file to where your APK Multi Tool directory and place it in the "place-apk-here-for-signing" folder.
6. Open APK Multi Tool application from the start menu > programs.
7. Press any key to continue, and press 19 (Sign an apk (Batch Support)(inside place-apk-here-for-signing folder only)).
8. It should close when it is done, the zip is now ready to be flashed with your phone.
And there we go. I tried! LOL. Good luck. =) If I wasn't very clear, you can go back to my sources and derive what I did from them.
Sources
- [MOD] Decompile and Rebuild ICS framework-res.apk without errors by stars2
- [Tutorial] How to add CRT TV off effect by tweezit
- [TUTORIAL] How to create an CWM installable .zip (Mod) by FlorisNL
Thanks, thanks and thanks. This is the first method that works for me to decompile framework-res.apk and systemui.apk. Thank you.
Nice writeup thanx !
But isn't it easier to just use apk-multitool for the entire thing ?
I know i always do it like this (even when it still was called apk manager)
Brotuck said:
Nice writeup thanx !
But isn't it easier to just use apk-multitool for the entire thing ?
I know i always do it like this (even when it still was called apk manager)
Click to expand...
Click to collapse
I tried it with ICS roms and it did not work for me. Thus - having to use the apktool instead. =(
This apkmanager will work on ICS roms. Tested. All credit to Wanam.
sileshnair said:
This apkmanager will work on ICS roms. Tested. All credit to Wanam.
Click to expand...
Click to collapse
Sweet thanks!
@krazykat
On bools.xml:
<bool name="config_animateScreenLights">false</bool>
It is set to 'false' by default.
Any idea on this? Thanks in advance.
More info: Xperia Neo V, official ICS 4.0.4 by Sony
dafuq is CRT-OFF?
Thanks you so much @ OP
It was a very simple task.
:highfive:Hello,
i used this tut from this link below and sucsefully removed unlock text on my sgw with REBEL ROM
here is the link:
http://forum.xda-developers.com/showthread.php?t=1561369
the only differnce at me was the line to delete it into CircleLockScreen.smali.
.line 159
......
.......
Click to expand...
Click to collapse
i'm newbe but its very simple
If you like it press Thanks Button :fingers-crossed::fingers-crossed: by dev LegendK95 for this tut
P.S: At first i have error at cmd window and had to rename folder.
You can download the Unlock.rar file from DL Link unpack it on your PC push your android-policy.jar file into folder and follow the post from Dev.The Folder include all files you need to mod
DL:
http://dl.dropbox.com/u/70025396/Unlock.rar
IF YOU WANT CHANGE LOCKSCREEN TEXT AND ANOTHER ONE THIS IS TUTORIAL HOW I DO THAT SUCCSEFULLY!!!
You need:
1.APK Manager or APK tool installed on your PC and Notepadd++ for editing .xml files and 7Zip to open .apk files
2.Copy your original framework-res.apk into Input Folder
3.rund script.bat for Windows user right click run as admin.
4.Choose first option 22 to set the current project
5.Choose 9 to decompile framework-res.apk
6.now you goto folder /projects/framework-res.apk/res/values/strings.xml and open it with Notepad++
7.Now you can edit what you want to change.(THIS IS ONLY FOR ENGLISH!!!)
7a. Ctrl+f and searc for "swipe to unlock" and change text
7.b I look by Ibanez7 some silly Screenshot where he changed
RECOVERY---> BOOTLOOP or
DOWNLOAD --> HARDBRICK :laugh::laugh:
you can change if you want those things just a few lines under Unlocktext line,you see it.
see here :
http://dl.xda-developers.com/attach.../4/8/0/6/5/uploadfromtaptalk1340385533687.jpg
If your system language is e.g German as by me you must goto
values-de/strings.xml and make changes there.
All changes made now we must recompile framework-res.apk
8. Choose 11 to recompile and wait
8a. Choose Y for system file and choose Y at second question.
8.b we have 2 folders now build and keep folders
9.We made changes of .xml files so we goto keep folder on the root and delete resources.arsc from keep folder and push any button
9a. into input folder we have file unsignedframework-res.apk
9b. Choose 12 to resign the file.
When i put those file into system/framework folder i have a lot of FC so i do a follow step.(IT'S VERY IMPORTANT)
10. Choose original framework-res.apk rightclick -->7Zip--->Open (let this window open)
11. Goto Apk Manager Folder then to projects/framework-res.apk/built/apk and pick the resources.arsc file and drag and drop copy into 7 Zip Opened window.Apply it.
12.Close 7Zip Window.
13.Push framework-res.apk file from input folder NOT signedframework-res.apk
into system/framework and overwrite the original one.
14 Reboot once and thats all
Enjoy :highfive::highfive::highfive:
C ya
If you like it press -----> Thanks Button
help!!
AsmirGT said:
:highfive:Hello,
i used this tut from this link below and sucsefully removed unlock text on my sgw with REBEL ROM
here is the link:
http://forum.xda-developers.com/showthread.php?t=1561369
the only differnce at me was the line to delete it into CircleLockScreen.smali.
i'm newbe but its very simple
If you like it press Thanks Button :fingers-crossed::fingers-crossed: by dev LegendK95 for this tut
P.S: At first i have error at cmd window and had to rename folder.
You can download the Unlock.rar file from DL Link unpack it on your PC push your android-policy.jar file into folder and follow the post from Dev.The Folder include all files you need to mod
DL:
http://dl.dropbox.com/u/70025396/Unlock.rar
IF YOU WANT CHANGE LOCKSCREEN TEXT AND ANOTHER ONE THIS IS TUTORIAL HOW I DO THAT SUCCSEFULLY!!!
You need:
1.APK Manager or APK tool installed on your PC and Notepadd++ for editing .xml files and 7Zip to open .apk files
2.Copy your original framework-res.apk into Input Folder
3.rund script.bat for Windows user right click run as admin.
4.Choose first option 22 to set the current project
5.Choose 9 to decompile framework-res.apk
6.now you goto folder /projects/framework-res.apk/res/values/strings.xml and open it with Notepad++
7.Now you can edit what you want to change.(THIS IS ONLY FOR ENGLISH!!!)
7a. Ctrl+f and searc for "swipe to unlock" and change text
7.b I look by Ibanez7 some silly Screenshot where he changed
RECOVERY---> BOOTLOOP or
DOWNLOAD --> HARDBRICK :laugh::laugh:
you can change if you want those things just a few lines under Unlocktext line,you see it.
see here :
http://dl.xda-developers.com/attach.../4/8/0/6/5/uploadfromtaptalk1340385533687.jpg
If your system language is e.g German as by me you must goto
values-de/strings.xml and make changes there.
All changes made now we must recompile framework-res.apk
8. Choose 11 to recompile and wait
8a. Choose Y for system file and choose Y at second question.
8.b we have 2 folders now build and keep folders
9.We made changes of .xml files so we goto keep folder on the root and delete resources.arsc from keep folder and push any button
9a. into input folder we have file unsignedframework-res.apk
9b. Choose 12 to resign the file.
When i put those file into system/framework folder i have a lot of FC so i do a follow step.(IT'S VERY IMPORTANT)
10. Choose original framework-res.apk rightclick -->7Zip--->Open (let this window open)
11. Goto Apk Manager Folder then to projects/framework-res.apk/built/apk and pick the resources.arsc file and drag and drop copy into 7 Zip Opened window.Apply it.
12.Close 7Zip Window.
13.Push framework-res.apk file from input folder NOT signedframework-res.apk
into system/framework and overwrite the original one.
14 Reboot once and thats all
Enjoy :highfive::highfive::highfive:
C ya
If you like it press -----> Thanks Button
Click to expand...
Click to collapse
it keeps me sending annoying FC screens.. i follow all the directions carefully, what should i do
thenks
You are responsible for your actions not me.
SGH-I747/M ONLY
SGH-I747/M ONLY
SGH-I747/M ONLY
SGH-I747/M ONLY
SGH-I747/M ONLY
Hi all Im new to the dev scene here on xda but recently I flashed Likewise S5 on my SGH-I747M you can find the link below. So likewise runs on @ibuddlers kernel and its a really good kernel but i was tired of the same "SAMSUNG GALAXY SIII" boot logo before the animation. So i looked around and found a thread to change the logo (link also below). I wanted to change my logo but not drasticaly. I was looking at some new devices booting up on youtube eg. S6,M9 and found they all had this "POWERED BY ANDROID" logo on the bottom of the booting screen. Thats what I put in and im going to show you guys how.
Requirements:
-Android kitchen
http://forum.xda-developers.com/attachment.php?attachmentid=3229484&d=1427333849
-Windows Imge Editor
http://forum.xda-developers.com/attachment.php?attachmentid=2313470&d=1381334320
-IMG to TAR tool
https://www.mediafire.com/?3bnt4ifsznmocog
-kernel of your choice the "boot.img" file
-Odin Flasher tool and knowledge of how to use it
LETS BEGIN:
STEP 1 : UNPACK THE KERNEL
-Extract android kitchen to the desktop in a folder called "aIMGchanger"
-Extract Windows Image Editior to the desktop in a folder called "wIMGtool"
-Put boot.img in the "aIMGchanger" folder
-Open CMD in the "aIMGchanger" folder and type the following command
Code:
unpackimg boot.img
STEP 2: FIND THE IMAGE AND CONVERT IT TO PNG
-Now go to the aIMGchanger\ramdisk folder
-Look for the ".rle" file mine was "initlogo.rle"
-Copy that file and paste it in the "wIMGtool" folder you created earlier (remember its name)
-Open CMD in the "wIMGtool" folder and type the following command
Code:
rle2png nameoftthrle.rle 000x000
nameoftthrle.rle = write the name of your rle
000x000 = write your phone's resolution
FOR EXAMPLE MINE WOULD BE:
Code:
rle2png initlogo.rle 720x1280
-Close the CMD Window now
-There should now be a .png file in the "wIMGtool" folder
-Edit it with the photo editor of your choice and place it back in the "wIMGtool" folder
STEP 3: Convert the PNG back to RLE
-Open CMD in the "wIMGtool" folder and type the following command
Code:
png2rle nameofttherle.png
nameoftthrle.rle = write the name of your rle
STEP 4: PLCAE THE RLE BACK IN AND REPACK THE BOOT.IMG
-Now you should have a file like this "nameofyourrle.rle.png.rle"
-Rename it to the orignal file name you remember from STEP 2
-Place it back in the aIMGchanger\ramdisk folder
Open CMD in the "wIMGtool" folder and type the following command
Code:
repackimg
-Rename the "image-new.img" to "boot.img"
STEP 5: CONVERT IMG TO TAR AND FLASH VIA ODIN
-Extract the IMG to TAR tool and place your new boot.img inside the extracted folder
-Run "ImgToTar.MD5.bat"
-There should now be a boot.tar file in the IMGtoTartool folder
-Open Odin and Flash it
-Enjoy
LINKS:
Orignal Thread:
http://forum.xda-developers.com/showthread.php?t=2476783
LIKEWISE S5
http://forum.xda-developers.com/showthread.php?t=2725192
MY CUSTOM RLE WITH "POWERED BY ANDROID" IS UPLOADED HERE AND YOU GUYS CAN USE IT
bro i need help
Hi guys,
I have found Ironman system sounds supporting my Win Xperience Ironman theme. Just flash the zip using any recovery ( CWM, TWRP).
#Changelog:
*Unlock,lock,low battery and check box sounds will change
*New ringtones and notifications audio added
#Please make a backup of the stock sounds before flashing this file( In case you need them back)
#To Make Backup:
Step 1: Open any root browser
Step 2: Go to system/media
Step 3: Copy the folder 'audio'
Step 4: Extract zip file ( Ironman) to any location and paste the 'audio' folder inside IRONMAN/system/media and select replace all
Step 4 (alternative) : Before pasting the 'audio' folder first delete the audio folder from the media folder of the zip file extracted and then paste the folder .
This ensures no conflicting issues or addition of other sounds
Step 5: Archive the whole folder and give it another name ( eg. Stocksounds.zip)
Your stock backup is ready!! Just flash this zip whenever you need your stock system sounds back!! ??
Requirements:
#Custom recovery
#Rooted Device
#Zip file manager ( Zipper)
#Xperia Device 5.0+ ( Any other device will do but my theme is for Xperia lollipop device that's y I mentioned it)
Lets not talk about blah blah blah and start the guide....
Things You Will Need
Stock Recovery
Recovery which you want to port (CWM,TWRP,MIUI,LEWA,,,etc) NOTE :- This Recovery Image Will Be For That Device Which is a clone Device of yours Eg. Devices with Same Processors and No. of Cores etc...
Android Kitchen installed with Cygwin Link(if you did'nt installed) :- http://forum.xda-developers.com/showthread.php?t=1801690
Finally A Working Brain
1 Line Explains Everything
We just Have to Copy the 'zimage' file inside the stock recovery and replace the 'zimage' in the recovery you are porting
Procedure
Open Cygwin and type
cd kitchen
Click to expand...
Click to collapse
Hit Enter
Then type
./menu
Click to expand...
Click to collapse
Make a Working Folder In Kitchen
Place your stock recovery.img in working folder
In Cygwin Select Advanced options and then select Tools for boot/recovery images
Select Extract
After Extracting go to your kitchen directory and you will find a newly created folder named as Bootxxxx
Copy 'zimage' file anywhere to your computer
Now delete the Bootxxxx Folder and also delete stock recovery.img from working folder
Place the recovery.img you want to port in the working folder
Now do the same steps to extract this recovery
A new folder named Bootxxxx is once again created in the Kitchen Directory
Now Replace the 'zimage' in the Bootxxxx with the one you copied before
Now select to repack your newly created recovery
Flash It Using Fastboot/Bootloader mode and jump if it works
Hope I Helped You Creating Your Own Recoveries
Good Luck :good: