Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TUTORIAL] Easy method to change framework-res.apk with shell script

OP propc

27th December 2010, 11:05 PM   |  #1  
propc's Avatar
OP Senior Member
Thanks Meter: 129
 
257 posts
Join Date:Joined: Feb 2010
Donate to Me
More
I created script to change framework-res.apk

--New-- Script with safer operation uploaded.

Requirements
-rooted
-busybox installed

1-copy framework-res.apk that you want to replace to the root of your sdcard (make sure it's in root)
2-extract reframe.zip(attachment) to root of your sdcard

in adb shell, use this command:
Code:
su
cd /sdcard
sh reframe.sh
your phone will reboot. and done! your framework-res.apk replaced safely.
Original framework-res.apk backed up as framework-res.apk.orig in /sdcard
Attached Files
File Type: zip reframe.zip - [Click for QR Code] (554 Bytes, 10432 views)
Last edited by propc; 31st December 2010 at 04:19 PM.
The Following 44 Users Say Thank You to propc For This Useful Post: [ View ]
29th December 2010, 06:02 PM   |  #2  
Senior Member
Żywiec
Thanks Meter: 10
 
171 posts
Join Date:Joined: Nov 2010
More
Is there any method to get back original framework from SDCard, and paste it to /system, when my phone doesn't want to boot?
29th December 2010, 06:18 PM   |  #3  
propc's Avatar
OP Senior Member
Thanks Meter: 129
 
257 posts
Join Date:Joined: Feb 2010
Donate to Me
More
Quote:
Originally Posted by hugerth

Is there any method to get back original framework from SDCard, and paste it to /system, when my phone doesn't want to boot?

Use xrecovery..

Sent from my E15i using XDA App
The Following User Says Thank You to propc For This Useful Post: [ View ]
29th December 2010, 06:28 PM   |  #4  
Senior Member
Żywiec
Thanks Meter: 10
 
171 posts
Join Date:Joined: Nov 2010
More
Can't install... ok... I reflash 1.6 and root it again, install 2.1 and xRecovery for the future...
29th December 2010, 06:48 PM   |  #5  
propc's Avatar
OP Senior Member
Thanks Meter: 129
 
257 posts
Join Date:Joined: Feb 2010
Donate to Me
More
Quote:
Originally Posted by hugerth

Can't install... ok... I reflash 1.6 and root it again, install 2.1 and xRecovery for the future...

ops.if you have working rootshell, you can replace it using rootshell. but, since you've go back to 1.6, it doesn't matter. just install xrecovery in the future, quite useful.
The Following 2 Users Say Thank You to propc For This Useful Post: [ View ]
29th December 2010, 09:35 PM   |  #6  
Senior Member
Żywiec
Thanks Meter: 10
 
171 posts
Join Date:Joined: Nov 2010
More
Now I have system back (after about 2h) with working xRecovery and... God!.. why I haven't noticed it before...
31st December 2010, 10:56 AM   |  #7  
Member
Thanks Meter: 2
 
40 posts
Join Date:Joined: Dec 2010
i wanna ask how to recover the framework-res.apk from the xrecovery??
31st December 2010, 12:04 PM   |  #8  
propc's Avatar
OP Senior Member
Thanks Meter: 129
 
257 posts
Join Date:Joined: Feb 2010
Donate to Me
More
mount /system and use adb push

edit:
new script. revised operation
Last edited by propc; 31st December 2010 at 03:50 PM.
1st January 2011, 06:06 PM   |  #9  
deconfrost's Avatar
Senior Member
Thanks Meter: 42
 
520 posts
Join Date:Joined: Feb 2010
Donate to Me
More
D:\adb>adb remount
remount failed: Operation not permitted


any help here? I need to replace the framework


nm, forgot to chmod 06777 /system/framework
Last edited by deconfrost; 1st January 2011 at 06:20 PM.
The Following User Says Thank You to deconfrost For This Useful Post: [ View ]
10th January 2011, 01:56 PM   |  #10  
Senior Member
Thanks Meter: 3
 
310 posts
Join Date:Joined: Apr 2010
More
Thank you for you work. I hope to see this work Just rebooted my phone after applying your script.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes