Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,781 Members 47,137 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
propc
Old
(Last edited by propc; 31st December 2010 at 03:19 PM.)
#1  
propc's Avatar
Senior Member - OP
Thanks Meter 129
Posts: 257
Join Date: Feb 2010

 
DONATE TO ME
Default [TUTORIAL] Easy method to change framework-res.apk with shell script

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, 10301 views)

Nexus S i9023
The Following 44 Users Say Thank You to propc For This Useful Post: [ Click to Expand ]
 
hugerth
Old
#2  
Senior Member
Thanks Meter 10
Posts: 171
Join Date: Nov 2010
Location: Żywiec
Is there any method to get back original framework from SDCard, and paste it to /system, when my phone doesn't want to boot?
 
propc
Old
#3  
propc's Avatar
Senior Member - OP
Thanks Meter 129
Posts: 257
Join Date: Feb 2010

 
DONATE TO ME
Quote:
Originally Posted by hugerth View Post
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

Nexus S i9023
The Following User Says Thank You to propc For This Useful Post: [ Click to Expand ]
 
hugerth
Old
#4  
Senior Member
Thanks Meter 10
Posts: 171
Join Date: Nov 2010
Location: Żywiec
Can't install... ok... I reflash 1.6 and root it again, install 2.1 and xRecovery for the future...
 
propc
Old
#5  
propc's Avatar
Senior Member - OP
Thanks Meter 129
Posts: 257
Join Date: Feb 2010

 
DONATE TO ME
Quote:
Originally Posted by hugerth View Post
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.

Nexus S i9023
The Following 2 Users Say Thank You to propc For This Useful Post: [ Click to Expand ]
 
hugerth
Old
#6  
Senior Member
Thanks Meter 10
Posts: 171
Join Date: Nov 2010
Location: Żywiec
Now I have system back (after about 2h) with working xRecovery and... God!.. why I haven't noticed it before...
 
apemania
Old
#7  
Member
Thanks Meter 2
Posts: 40
Join Date: Dec 2010
i wanna ask how to recover the framework-res.apk from the xrecovery??
 
propc
Old
(Last edited by propc; 31st December 2010 at 02:50 PM.)
#8  
propc's Avatar
Senior Member - OP
Thanks Meter 129
Posts: 257
Join Date: Feb 2010

 
DONATE TO ME
mount /system and use adb push

edit:
new script. revised operation

Nexus S i9023
 
deconfrost
Old
(Last edited by deconfrost; 1st January 2011 at 05:20 PM.)
#9  
deconfrost's Avatar
Senior Member
Thanks Meter 42
Posts: 516
Join Date: Feb 2010

 
DONATE TO ME
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
Sony Xperia Z1 C6903 64GB Sandisk microSDXC RomAur 8 Meteor 4G
Sony Xperia Z C6603 8GB SanDisk MicroSDHC monxDIFIED Meteor 4G
Asus G75 Fedora 20/Win 7 Ultimate Dual Boot
The Following User Says Thank You to deconfrost For This Useful Post: [ Click to Expand ]
 
bugmenever
Old
#10  
Senior Member
Thanks Meter 3
Posts: 310
Join Date: Apr 2010
Thank you for you work. I hope to see this work Just rebooted my phone after applying your script.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes