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

Search This thread

propc

Senior Member
Feb 21, 2010
258
130
Google Pixel 2
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
 

Attachments

  • reframe.zip
    554 bytes · Views: 12,669
Last edited:

hugerth

Senior Member
Nov 27, 2010
172
10
Ż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?
 

hugerth

Senior Member
Nov 27, 2010
172
10
Żywiec
Now I have system back (after about 2h) with working xRecovery and... God!.. why I haven't noticed it before...
 

deconfrost

Senior Member
Feb 24, 2010
714
123
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:
  • Like
Reactions: Disastery

bugmenever

Senior Member
Apr 10, 2010
313
3
Thank you for you work. I hope to see this work :) Just rebooted my phone after applying your script.
 

oubsty

Senior Member
Jan 23, 2010
83
9
St John's
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

Can u tell me where to find the adb shell

Sent from my E15i using XDA App
 
  • Like
Reactions: redsock

mzmz83

Senior Member
Nov 19, 2010
171
21
Berlin
Use Super One Click, it comes with adb. Copy cmd.exe to SOC folder. Now start cmd, now type 'adb shell' (click enter) and then the other commands.

Sent from my E15i using Tapatalk
 

oubsty

Senior Member
Jan 23, 2010
83
9
St John's
Use Super One Click, it comes with adb. Copy cmd.exe to SOC folder. Now start cmd, now type 'adb shell' (click enter) and then the other commands.

Sent from my E15i using Tapatalk
This is what I see when I open superoneclick t shows Root, shell Root, Unroot, allow non market apps....

Now in superoneclick folder that it comes in when u open it this is what u see
Superuser.apk
Superoneclick
Su
Sqlite3
Regeagainsttecage
Bushels
Addbwinusbapi
Adbwinapi
Ashland
Adblinux
Adb. Application
But when I try to open adb app it does not open a screen comes up then it closes so there is where am stuck at:-( :-( can u help me out from there??????





Sent from my E15i using XDA App
 

mzmz83

Senior Member
Nov 19, 2010
171
21
Berlin
You have to copy cmd.exe to the SuperOneClick folder, then you have to open the cmd.exe, not the superonecklick.exe.
 

Boshe

Senior Member
Dec 16, 2010
530
37
I'm trying to replace framework and when I type in shell I got:
cd /sdcard
#
sh reframe.sh
sh: Can't open reframe.sh
#
 
Last edited:

DroidDotBot

Senior Member
Jul 16, 2008
87
2
preston
Help

# sh reframe.sh
sh reframe.sh
sh: Cannot open reframe.sh
#

any ideas :(

got SuperOneClick 1.5.5 ( busybox )
root explorer ( only thing in superuser )
SE's PC companion running in background [ keeps asking for mount, but is ignored ]
got Android full SDK installed - drivers, ADB, 'the works'
root'd succesfully -(( WORLD-1-8_2.0.1.A.0.47 )) White-DarkBlue / Pink
4Gb Kingston HC4 sdc4/4gb 18 - un partitioned.

I wish to remove some bloat, and change to a custom theme.

{EDIT} - how to access recovery mode?, got customization = home-back-back-home-back-home-home-back

Dalvik Debug Monitor won't run, adb error2

thanks in advance.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 45
    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
    6
    All people who are having trouble changing framework there is a way for changing it on your phone no need of a computer. But your phone must be rooted.

    1.download and install android terminal emulater from the market.
    2. Copy the files reframe.sh and framework-res.apk to the root of your sdcard.
    3. Now open android terminal emulater on your phone and type the following commands.
    su
    (it will ask for superuser permission please allow it)
    cd /sdcard
    sh reframe.sh

    You will see the script running it wont take more than a minute .your phone will reboot and DONE...


    Sent from my E15i using XDA App
    2
    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.:D
    1
    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
    1
    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