Tweaking system file permissions via TWRP possible? - Android Q&A, Help & Troubleshooting

Is it possible to edit file permissions of voltage_max file located in sys/class/power_supply/battery via TWRP? In TWRP's File Manager I can only get to battery and no further. It's seemingly shown as a file instead of a folder.
And more importantly if its possible will the tweaked file permissions stick after booting into the ROM? I know with root access it's easy just wanted to know if via recovery it can be accomplished w/o root or not?
Thanks.

Bump.

Anyone?

Related

[Q] Problem with Rooting 407 Rom

I have installed the Deodexed 407 Rom, and installed Streakmod Recovery and also installed superuser.zip, so in theory, from what I have read my streak should now be rooted.
But when I try and edit a file, the build.prop file in /system with Astro File Manager I alter some of the settings and save it, but when I reopen the file the changes had not been saved. I have tried seeing if I can change the permissions on the file, but without success.
I would be grateful if someone could assist me in where I am going wrong, hopefully it is something simple or a wrong setting that I am not quite doing correct.
spanner44 said:
I have installed the Deodexed 407 Rom, and installed Streakmod Recovery and also installed superuser.zip, so in theory, from what I have read my streak should now be rooted.
But when I try and edit a file, the build.prop file in /system with Astro File Manager I alter some of the settings and save it, but when I reopen the file the changes had not been saved. I have tried seeing if I can change the permissions on the file, but without success.
I would be grateful if someone could assist me in where I am going wrong, hopefully it is something simple or a wrong setting that I am not quite doing correct.
Click to expand...
Click to collapse
You have to mount the system as ReadWrite and there was no need for a new thread. You should've posted in the rooting thread
Sorry, for not putting it in the rooting thread, but didn't want to clog a general rooting thread with a specific problem.
I have solved this now thanks, but not with Astro File manager as I still cannot seem to change the permissions with that app, but used advanced tools app instead.
Thanks again anyway.
Yes i had same problem trying do root operations with file expert. I used root file explorer instead. Weird thing being that even with rooting permissions ticked file explorer failed.
For most root-enabled browsers, just enabling root permissions won't give you write access. You'll need to find a second option to mount the /system directory as read/write. That's normally somewhere in the Settings menu or on the directory's long-press menu.
ChicoKiri said:
For most root-enabled browsers, just enabling root permissions won't give you write access. You'll need to find a second option to mount the /system directory as read/write. That's normally somewhere in the Settings menu or on the directory's long-press menu.
Click to expand...
Click to collapse
It's mainly dependant on the kernel, all custom kernels automatically mount system as RW and all stock kernels mount it as RO
At least root explorer tells you that it's read only if you attempt to modify it without remounting, I havnt used ASTRO in a long time so I cant comment on that
Root explorer better for me
Sent from my PC36100 using xda premium

[Q] Partial Root Access?

Is there any way to root a device in a way that the user only has write permissions on a few files, while all other files in the system folder would still be protected? Specifically, I ONLY want to access build.prop. Alternatively, is there a way to change the contents of a system file without rooting at all? Kind of like flashing a zip but without booting into recovery?
Nope. Just temp root instead of perma root if thats the case.

[Q] How do I remove ChargerPluggedIn.ogg? [SOLVED]

Hi,
I'm using the last Envi-ROM based in stock 23.0.1.A.0.167 and I would like to disable the charger plugged in notification so I tried to remove ChargerPluggedIn.ogg from /system/media/audio/ui but it says that it's an only read file and I can't do it. I'm root and I tried with RootExplorer, ES File Explorer, ADB (mv, chmod,...) but I'm not able to change the permissions neither the file nor /system folder.
Any idea?
Thanks in advance
So i just changed the permissions of that file with rom toolbox lite to 777 without issues. I also moved it up a directory without issue. Maybe try that app ( https://play.google.com/store/apps/...+lite&pcampaignid=APPU_EaWoVMe9Nce7mwWlnILYCw)
If you still have issues why don't you backup your phone and redownload envi-rom zip. Open the zip and navigate to the file and delete it. Then install that moded zip file and restore your data from the backup?
You can try to remove this file via file explorer in recovery, like for example aroma explorer.
Sent from Xperia Z2
Nope no good. Could only see /system/bin/ no other directories.
Thanks a lot for your comments. I tried toolbox with the same result as the previous tries. With aroma explorer I can only access to /system/bin/. So no luck for the moment. It seems that the only solution is install again the ROM without the file, but I still looking for other alternatives first.
Here is the solution: http://forum.xda-developers.com/xperia-z2/general/4-4-4-sony-ric-killer-t2953141

[problem] Phone stuck in a bootloop after editing build.prop (rooted with custom rec)

Dear fellas,
I replaced my build.prop file to an another one and my phone is not booting up anymore.
I have a rooted Xiaomi Mi 5s Plus, with custom recovery.
Can anyone advise what to do without wiping the phone completely and flashing a new ROM?
What I've tried doing:
- I had the original build.prop that the phone had before it got stuck.
- I used the file explorer in custom recovery, copied that file to the system folder in root.
- Rebooted the device, still no luck!
- After rebooting, when I reopen the recovery, and navigate to the system folder again, I don't find the file I copied to the system folder!
Any thoughts on the matter please? Thanks in advance!
Have you tried writing original Rom to the phone. Don't have much experience with that kind best I can suggest
Sent from my SM-G930V using Tapatalk
black_hawk1990 said:
Dear fellas,
I replaced my build.prop file to an another one and my phone is not booting up anymore.
I have a rooted Xiaomi Mi 5s Plus, with custom recovery.
Can anyone advise what to do without wiping the phone completely and flashing a new ROM?
What I've tried doing:
- I had the original build.prop that the phone had before it got stuck.
- I used the file explorer in custom recovery, copied that file to the system folder in root.
- Rebooted the device, still no luck!
- After rebooting, when I reopen the recovery, and navigate to the system folder again, I don't find the file I copied to the system folder!
Any thoughts on the matter please? Thanks in advance!
Click to expand...
Click to collapse
Try mount system read/write first then copy og build prop file in system partition and reboot or use aroma file manager.

[help] Redmi Note 9 pro [rooted] [magisk] file explorer

I run into following problem. I have successfully rooted my phone and installed magisk. Now what I try is to replace the bootanimation.zip...
But it fails at permissions. I granted superuser access via Magisk to the app (Es file explorer) and I also toggled the root option to in in this app. But whichever I try it fails neither can I delete or write to the system. I also tried different root explorers facing the same issue.
Those someone know how to solve this?
Thanks in advance
Graru1
Same issue here.
Sadly don't know an solution
Your /system partition where you want to replace the file is read only. Flash a custom rom or use this automatic script from this thread to rebuild your /system partition as read-write and you will be able to replace the files.

Categories

Resources