Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
im_iceman
Old
(Last edited by im_iceman; 19th June 2011 at 09:38 PM.)
#1  
im_iceman's Avatar
Senior Member - OP
Thanks Meter 126
Posts: 2,212
Join Date: Apr 2010
Location: Alsager
Default [TUT] How to mod your own framework-res.apk to include the CRT screen off animation

First of all... Thanks go to sbong for bringing this to my attention and helping me through it.. including proving me with some of the files I needed to make this work..

Also thanks to the devs who created the util's needed to do this mod.

Ok - So I've already modded my framework-res.apk in UOT kitchen so I didn't want to re-do all those mods... and as much as anything else I wanted to be able to do this myself..

Adding the CRT animation to your phone.
  • You'll need root access
  • You'll need to replace the apktool in the OTHER directory once you've installed apkmanager with the one attached below.

1. Get your framework-res.apk from your phone and put it in the "modding" folder
2. Run apk manager, decompile option 9 [NOT USING DEPENDENCY OPTION]
3. Go into projects\framework-res\res\values\bools.xml [EDIT]
4. Make config_animateScreenLights to false [SAVE and EXIT]

5. Go back to script and select compile option 11.
6. Say y [System app]
7. Say n [don't need to retain anything else]

8. Delete AndroidManifest.xml and Meta-Inf folder from unsignedframework-res.apk
9. Copy and paste AndroidManifest.xml and Meta-Inf folder from original framework-res.apk into unsignframework-res
.......... open the apk files using 7 zip or similar. Do not extract them..
.......... Copy and paste from inside the original apk to inside the new one.

10. You'll find unsignedframework-res.apk in "place-apk-here-for-modding" folder
10a. RENAME IT to framework-res.apk
11. Copy the new framework-res.apk onto your phone in the SYSTEM folder
12. Change the permissions to RW-R--R--
13. Move the file into the FRAMEWORK folder.

Reboot...
Done..

Tested and works on my arc. (Finally!)

Video of the animation...

[EDIT - Added the apktool here as the original link is now dead.]
Attached Files
File Type: zip apktool.zip - [Click for QR Code] (1.05 MB, 2211 views)
Are you a silly Billy???

Previous Phones - Samsung Tocco; SE Xperia X10; Sony Ericsson Xperia Pro; SE Xperia arc -Bootloader UNLOCKED

Current Phone- Sony Xperia T - Stock.. for once!

Tablet- Sony Tablet S - SGPT111GB/S - looking to upgrade to something decent!
The Following 13 Users Say Thank You to im_iceman For This Useful Post: [ Click to Expand ]
 
kistigun
Old
#2  
kistigun's Avatar
Senior Member
Thanks Meter 218
Posts: 759
Join Date: Nov 2008
Location: Weert

 
DONATE TO ME
Hi mate, can you upload the jar file again?
Sagem MC830->Ericsson T10s->Nokia 3310->Nokia 6610->Sony Ericsson K710i->Sony Ericsson W850i->Sony Ericsson W910i->Sony Ericsson Xperia X1i->Sony Ericsson Xperia X10i->Nokia E72 ->Sony Ericsson Xperia Arc->Nokia 113

Sony Xperia S runnning OpenSEMC - 0.6 & Asus Eee Pad Transformer TF101 running EOS4 + katkernel

If I helped you please hit the 'Thanks' button!
 
im_iceman
Old
#3  
im_iceman's Avatar
Senior Member - OP
Thanks Meter 126
Posts: 2,212
Join Date: Apr 2010
Location: Alsager
Done! 10chrs
Are you a silly Billy???

Previous Phones - Samsung Tocco; SE Xperia X10; Sony Ericsson Xperia Pro; SE Xperia arc -Bootloader UNLOCKED

Current Phone- Sony Xperia T - Stock.. for once!

Tablet- Sony Tablet S - SGPT111GB/S - looking to upgrade to something decent!
The Following User Says Thank You to im_iceman For This Useful Post: [ Click to Expand ]
 
279Paddy
Old
#4  
Senior Member
Thanks Meter 3
Posts: 125
Join Date: Sep 2010
hey ice....sent you a pm!

here's my framework....thanks a lot in advance
Attached Files
File Type: apk framework-res.apk - [Click for QR Code] (4.84 MB, 236 views)
 
animboo
Old
#5  
animboo's Avatar
Senior Member
Thanks Meter 16
Posts: 197
Join Date: Feb 2011
Location: Quezon city
Quote:
Originally Posted by im_iceman View Post
First of all... Thanks go to sbong for bringing this to my attention and helping me through it.. including proving me with some of the files I needed to make this work..

Also thanks to the devs who created the util's needed to do this mod.

Ok - So I've already modded my framework-res.apk in UOT kitchen so I didn't want to re-do all those mods... and as much as anything else I wanted to be able to do this myself..

Adding the CRT animation to your phone.
  • You'll need root access
  • You'll need to replace the apktool in the OTHER directory once you've installed apkmanager with the one attached below.

1. Get your framework-res.apk from your phone and put it in the "modding" folder
2. Run apk manager, decompile option 9 [NOT USING DEPENDENCY OPTION]
3. [NOT REQUIRED?] Drag twframework-res.apk into the script.
4. Go into projects\framework-res\res\values\bool.xml [EDIT]
5. Make config_animateScreenLights to false [SAVE and EXIT]
6. Go back to script and select compile option 11.
7. Say y [System app]
8. Say n [don't need to retain anything else]
9. Delete AndroidManifest.xml and Meta-Inf folder from unsignedframework-res.apk
10. Copy and paste AndroidManifest.xml and Meta-Inf folder from original framework-res.apk into unsignframework-res
11. U'll find unsignedframework-res.apk in "place-apk-here-for-modding" folder
12. Copy the unsignedframework-res.apk onto your phone in the SYSTEM folder
13. Change the permissions to RW-R--R--
14. Move the file into the FRAMEWORK folder.

Reboot...
Done..

Tested and works on my arc. (Finally!)

Video of the animation...

[EDIT - Added the apktool here as the original link is now dead.]
noobish question here mate, hope you can help me.
First: After compiling the framework-res.apk, how do you edit and overwrite meta.inf and androidmanifest.xml? and when you use the apk manager, their is no meta.inf folder when decompiling framework-res.apk
2nd: Do you need to rename your unsignedframework-res.apk to framework-res.apk?
Why Walk When You Can Fly..
 
im_iceman
Old
#6  
im_iceman's Avatar
Senior Member - OP
Thanks Meter 126
Posts: 2,212
Join Date: Apr 2010
Location: Alsager
just copy and paste the androidmanifest and meta.inf files from your original framework-res.apk into the new one..

and yes - rename it to framework-res.apk
Are you a silly Billy???

Previous Phones - Samsung Tocco; SE Xperia X10; Sony Ericsson Xperia Pro; SE Xperia arc -Bootloader UNLOCKED

Current Phone- Sony Xperia T - Stock.. for once!

Tablet- Sony Tablet S - SGPT111GB/S - looking to upgrade to something decent!
 
animboo
Old
(Last edited by animboo; 9th June 2011 at 06:22 PM.)
#7  
animboo's Avatar
Senior Member
Thanks Meter 16
Posts: 197
Join Date: Feb 2011
Location: Quezon city
Quote:
Originally Posted by im_iceman View Post
just copy and paste the androidmanifest and meta.inf files from your original framework-res.apk into the new one..

and yes - rename it to framework-res.apk
do you mean to extract the apk again then after copying the files, zip the apk again still using the apk manager?
Why Walk When You Can Fly..
 
im_iceman
Old
#8  
im_iceman's Avatar
Senior Member - OP
Thanks Meter 126
Posts: 2,212
Join Date: Apr 2010
Location: Alsager
No..open the apk files using 7 zip or similar. Do not extract them..

Copy and paste from inside the original apk to inside the new one.

Sent from The arc using XDA premium..
Are you a silly Billy???

Previous Phones - Samsung Tocco; SE Xperia X10; Sony Ericsson Xperia Pro; SE Xperia arc -Bootloader UNLOCKED

Current Phone- Sony Xperia T - Stock.. for once!

Tablet- Sony Tablet S - SGPT111GB/S - looking to upgrade to something decent!
The Following User Says Thank You to im_iceman For This Useful Post: [ Click to Expand ]
 
animboo
Old
#9  
animboo's Avatar
Senior Member
Thanks Meter 16
Posts: 197
Join Date: Feb 2011
Location: Quezon city
Quote:
Originally Posted by im_iceman View Post
No..open the apk files using 7 zip or similar. Do not extract them..

Copy and paste from inside the original apk to inside the new one.

Sent from The arc using XDA premium..
ok thanks..going to try using winrar.
Why Walk When You Can Fly..
 
kistigun
Old
#10  
kistigun's Avatar
Senior Member
Thanks Meter 218
Posts: 759
Join Date: Nov 2008
Location: Weert

 
DONATE TO ME
i've tried this but i got a bootloop
Sagem MC830->Ericsson T10s->Nokia 3310->Nokia 6610->Sony Ericsson K710i->Sony Ericsson W850i->Sony Ericsson W910i->Sony Ericsson Xperia X1i->Sony Ericsson Xperia X10i->Nokia E72 ->Sony Ericsson Xperia Arc->Nokia 113

Sony Xperia S runnning OpenSEMC - 0.6 & Asus Eee Pad Transformer TF101 running EOS4 + katkernel

If I helped you please hit the 'Thanks' button!

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...