[Q] Over-right framework-res.apk not working? - Galaxy S II Q&A, Help & Troubleshooting

Hi,
I want to over-right the framework-res.apk file to mod the battery icon but in Root explorer it says the file is read-only and when I try Android Commander it says I need root to do this. I know I have root working as titanium backup works. So how comes I can't copy over this file?

You need to mount your system patition as r/w.
Before pasting the modified framework-res.apk, click on the "mount r/w" button at the top of the Root Explorer window. Then you'll be able to overwrite it.
Don't forget to click the button again (which is now "mount r/o") to remount the system partition as read only again.

AFK_Matrix said:
Hi,
I want to over-right the framework-res.apk file to mod the battery icon but in Root explorer it says the file is read-only and when I try Android Commander it says I need root to do this. I know I have root working as titanium backup works. So how comes I can't copy over this file?
Click to expand...
Click to collapse
Using root eksplorer to push framework.apk is a good way to get the boot loops, so remember to check that the new framewourk.apk it is the same version you are running.

stian230 said:
Using root eksplorer to push framework.apk is a good way to get the boot loops, so remember to check that the new framewourk.apk it is the same version you are running.
Click to expand...
Click to collapse
Right, it is actually very recommended to make this check even when using ADB or ODIN to push a new framework-res.apk version. I got myself into many bootloops skipping this test when I had my first Android phone

Related

Root: Replacing system sound files

Ok so I have rooted my Hero and all is well. I've been trying to replace the sound files in system/media/audio/ui where the keyboard sounds are. I find that I cannot move a file into that folder, or apparently any of those folders. When I try to paste a copied or cut file using root explorer into the ui folder, the file just doesn't appear.
Why is this?
Switchbitch said:
Ok so I have rooted my Hero and all is well. I've been trying to replace the sound files in system/media/audio/ui where the keyboard sounds are. I find that I cannot move a file into that folder, or apparently any of those folders. When I try to paste a copied or cut file using root explorer into the ui folder, the file just doesn't appear.
Why is this?
Click to expand...
Click to collapse
have you tried with and without file extention?
Yes. Root explorer just won't let me move any files around in the phone memory. Do I have to do it using adb?
I have a feeling its Root Explorer not working properly in Hero.
I could do this easily on my magic, but I get the same thing - looks like its copied the file, but when I paste, nothing happens at all.
I did manage to delete the Stocks app. from the device (don't use it or need it) using root explorer but other attempts to copy and pasdte have failed.
I have however managed to successfully use Astro File Manager to copy a wallpaper file from the device memory and paste to the SDcard. Will explore Astro a little further and see if it can do more on the device.
Dayz
Phew, not just me being thick then....
I spent most of today trying to backup an .apk from /data/app-private to /sdcard. No luck with Root Explorer, adb pull or a 'cp' from the shell. "Remote file does not exist" was the result of the last two, but it's displayed by ls.
I think anything in app-private is a no go anyway as it contains copy protected apps. With regard to astro - it can copy from device in certain locations, and paste to sd to back up, but it can't delete from the device, and it can't copy or move files to the device.
Daisy xx
Dayzee said:
I think anything in app-private is a no go anyway as it contains copy protected apps.
Click to expand...
Click to collapse
Hmm, thanks Daisy. Will get on to the app's developer, as it was his advice to gain the ability to change location settings that I tried to follow.
Al
Shluggity said:
Phew, not just me being thick then....
I spent most of today trying to backup an .apk from /data/app-private to /sdcard. No luck with Root Explorer, adb pull or a 'cp' from the shell. "Remote file does not exist" was the result of the last two, but it's displayed by ls.
Click to expand...
Click to collapse
Try
Code:
adb shell
su
cat /data/app-private/some.app.apk > /sdcard/some.app.apk
exit
exit
adb pull /sdcard/some.app.apk some.app.apk
...it worked for me on a stock, rooted HTC Hero.
Switchbitch said:
Ok so I have rooted my Hero and all is well. I've been trying to replace the sound files in system/media/audio/ui where the keyboard sounds are. I find that I cannot move a file into that folder, or apparently any of those folders. When I try to paste a copied or cut file using root explorer into the ui folder, the file just doesn't appear.
Why is this?
Click to expand...
Click to collapse
Unless you made other changes than rooting, the /system partition is mounted read-only by default. As far as I know, you'll have to follow one of the root guides to mount it read-write (like you probably did to get /system/bin/su in place) and then do whatever changes you'd like.
Personally, I got tired of the boot audio real fast, so I changed useAudio in /system/media/boot_animation.xml from "1" to "0". Ahh, blessed boot silence...
nrkabul said:
Try
Code:
adb shell
su
cat /data/app-private/some.app.apk > /sdcard/some.app.apk
exit
exit
adb pull /sdcard/some.app.apk some.app.apk
...it worked for me on a stock, rooted HTC Hero.
Click to expand...
Click to collapse
And work it did for me also! Many thanks for your help - I really appreciate it.

Preventing StockROM from overwriting custom ROM....

I just rooted and installed Streakmod with the MultirecoveryFlasher.
Since the StockROM is overwriting my StreakMOD ROM everytime I reboot I'd like to rename the install-recovery.sh file.
So I installed root explorer, went to the file, and selected rename.
Yet I get "WARNING install-recovery.sh cannot be renamed becuase the file system is read-only."
I got root access according to "root checker" and "superuser".
Anyone know what I'm doing wrong?
SiNUS82 said:
I just rooted and installed Streakmod with the MultirecoveryFlasher.
Since the StockROM is overwriting my StreakMOD ROM everytime I reboot I'd like to rename the install-recovery.sh file.
So I installed root explorer, went to the file, and selected rename.
Yet I get "WARNING install-recovery.sh cannot be renamed becuase the file system is read-only."
I got root access according to "root checker" and "superuser".
Anyone know what I'm doing wrong?
Click to expand...
Click to collapse
In Root Explorer, above your list of folders on the left-hand side, you will see a small, grey button with Mount RO (Read Only) on it. Tap the button to change to Mount RW (Read/Write). This will allow you to edit files.
r1astas said:
In Root Explorer, above your list of folders on the left-hand side, you will see a small, grey button with Mount RO (Read Only) on it. Tap the button to change to Mount RW (Read/Write). This will allow you to edit files.
Click to expand...
Click to collapse
That was easy! Thanks dude!

Write files on system directory.

Hi all.
I'm trying to copy some files to the system partition after enabling write on read-only partitions and remounting it and everything is success, but when I restart the phone, files get deleted and partition back to original. I tried ES file explore and Total Commander.
Galaxy S2, cMIUI 2.10 JB
Hmm.. seems like a hard question!
Elancore said:
Hi all.
I'm trying to copy some files to the system partition after enabling write on read-only partitions and remounting it and everything is success, but when I restart the phone, files get deleted and partition back to original. I tried ES file explore and Total Commander.
Galaxy S2, cMIUI 2.10 JB
Click to expand...
Click to collapse
Elancore said:
Hmm.. seems like a hard question!
Click to expand...
Click to collapse
Hey,
no not a hard question but a bit confusing
So the copy to system works without probs?
Do u have root-enabled on it?
U can try Solid explorer once, too, to be sure.
CHEERS
I enabled root explorer and I mounted the file system to be writable, yes I have a rooted phone.
I can copy to system root folders anything (media files), the files stay there until I reboot the phone then they disappear, they get deleted maybe? how to disable that?
Thanks
Elancore said:
I enabled root explorer and I mounted the file system to be writable, yes I have a rooted phone.
I can copy to system root folders anything (media files), the files stay there until I reboot the phone then they disappear, they get deleted maybe? how to disable that?
Thanks
Click to expand...
Click to collapse
That listen like u have to save changes?!
Pls try the Solid explorer (for me the best explorer ever)
Copy files and have a look for root-acces request (should be asked for Solid, if it's new)
The copy/replace the file.
CHEERS
Thanks Hannibal for reply, I got no luck on doing it, they still get removed after reboot. Is there a way to flash these files that I want to copy to system as an update.zip?
Elancore said:
Thanks Hannibal for reply, I got no luck on doing it, they still get removed after reboot. Is there a way to flash these files that I want to copy to system as an update.zip?
Click to expand...
Click to collapse
Sure there's a way, but I can't help u with it, sorry.
With new Titanium Backup u can create flashable .zips but for sure only from isntalled apps.
Maybe u have a look at google. I remind for a tool which u just say what u wanna flash an it creates the flashable .zip.
Much success....
CHEERS
Edit: Sorry but couldn't answer u yesterday.
XDA had a prob for a while

[Q] Rooted Nook Tablet with Cm7 and rom manager issue

When I try to install the premium version of Rom Manager i get "youre trying to replace a system app , do you want to continue ?" .
I click yes and then get "App not installed"
Any help or suggestions plz ?
Thanks
do you have root access? because that is necessary to change any system app in any case. Super User should pop up if you do have root. If it does not, maybe you accidentally denied it root privileges on first start.
Yes im sure its rooted and i checked Superuser logs on rom manager.
"created allowed allowed" and its in the allowed list.
Im guessing the installation is failing because its a system app thats in use or something ?
Since its a system app and installed via CM7 i cant even delete it.
It doesnt show in the installed apps list.
Any help is appreciated.
There is a directory under the /system folder I believe(bin?). Under that directory are a series of apk files and I bet there is still a file there for the rom manager. If you remove that with root explorer or something similar you should be good to go.
troy9829 said:
There is a directory under the /system folder I believe(bin?). Under that directory are a series of apk files and I bet there is still a file there for the rom manager. If you remove that with root explorer or something similar you should be good to go.
Click to expand...
Click to collapse
/system/app is the folder you're looking for.
liquidzoo said:
/system/app is the folder you're looking for.
Click to expand...
Click to collapse
To anyone having a similiar problem this is how I solved it.
-remount system/app dir to RW
-delete offending APK
-remount /data/data to RW
-delete offending dir (in rommanger's case it was com.koushikdutta.rommanger
-reboot
-reinstall.

Build.prop not editing

Hi , on my HTC one max when I try to edit build.prop it gets saved but when I reset my device for applying changes it returns to stocked any one that can help me .
I am root, S-OFF.
sonu42197 said:
Hi , on my HTC one max when I try to edit build.prop it gets saved but when I reset my device for applying changes it returns to stocked any one that can help me .
I am root, S-OFF.
Click to expand...
Click to collapse
Make sure you are mounting /system as RW first. By default it is RO. If you have root explorer it's just easy as clicking the RW button but if not there is always terminal and a command you enter.
Ƒłƴнαłƒ205 said:
Make sure you are mounting /system as RW first. By default it is RO. If you have root explorer it's just easy as clicking the RW button but if not there is always terminal and a command you enter.
Click to expand...
Click to collapse
My system is RW and I have used each file manager but can you tell how to do this with terminal?
Please.
sonu42197 said:
My system is RW and I have used each file manager but can you tell how to do this with terminal?
Please.
Click to expand...
Click to collapse
Terminal I mentioned to mount your system as RW. Why not edit your build.prop on computer and push it to your device in recovery mode.
Ƒłƴнαłƒ205 said:
Terminal I mentioned to mount your system as RW. Why not edit your build.prop on computer and push it to your device in recovery mode.
Click to expand...
Click to collapse
Tried to do it with adb but it comes back to original one.
i was able to successfully change the build.prop file by using the file manager in twrp recovery.
i kept the modified file on my sd card, went into recovery, fired up the file manager, browsed to my sd card, selected the modded file, chose the copy option, then chose the /system folder as the destination. rebooted and the changed file stayed changed!
my device is rooted, bootloader unlocked, and s-on.
root explorer with r/w mounting didnt work for me...file would revert after reboot.
also tried "cp" command in terminal in recovery...didnt seem to copy successfully.
hope this helps!
Sent from my HTC One max using XDA Free mobile app

Categories

Resources