Need to change root file permissions - LineageOS Questions & Answers

Hi, I need to give read and write access to a couple little files in my root directory, but I can't find a file manager app that will do this. Among the ones I have tried are Root Explorer, which was recommended, and File Manager Root from Fdroid, but neither work. Can someone recommend an app or another way to do this? Thanks!

reidun76 said:
Hi, I need to give read and write access to a couple little files in my root directory, but I can't find a file manager app that will do this. Among the ones I have tried are Root Explorer, which was recommended, and File Manager Root from Fdroid, but neither work. Can someone recommend an app or another way to do this? Thanks!
Click to expand...
Click to collapse
In modern android versions the /system partition is read only. Either you create an overlay with magisk, or you boot recovery. Twrp has a file manager or you use adb shell.

Related

[Q] Help! I'm having trouble mounting my /system directory as r/w but my s-off

I've used unrevoked forever to get my s-off, but eveytime I try to delete/rename/copy a file to the /system directory I get an error. Anyway to fix this? I'm new XD
use the app root explorer , it allows you to enable write ability.
Root Explorer isnt free, and I can't buy it cuz...im 15
But I did try an app called "mount /system (rw/ro)". It tells me that the /system directory has been set to r/w, but when I use astro to browse to the folder, everything is still marked -ro
true true see ur PM. Does that app of your provide a file directory search or manager?
Astro doesn't have root capabilities. Use ES File Explorer (you have to enable root access in settings) or use Super Manager.
plainjane said:
Astro doesn't have root capabilities. Use ES File Explorer (you have to enable root access in settings) or use Super Manager.
Click to expand...
Click to collapse
I second ES File Explorer. I use it for all my system reading/writing needs in root.
quantumma said:
I've used unrevoked forever to get my s-off, but eveytime I try to delete/rename/copy a file to the /system directory I get an error. Anyway to fix this? I'm new XD
Click to expand...
Click to collapse
try running "Fix Permissions" in ClockworkMod then reboot
thats what did it for me when i had this issue
yup, use ES file explorer (I prefer root explorer, but as you noted, it's not free). You could also start learning to use adb to push/pull to system if you want. It comes in handy, knowing how to use adb. Definitely good to learn at some point.

ES manager not mounting and reading system files

hello
i rooted and installed ARHD for my galaxy nexus and it came with ES manager.
its a nice free file explorer and it can show system files and such, i granted it super permissions but i still cant delete that one file that lets me boot into CWM from the fastboot menu, so i have to flash CWM using my computer terminal everytime i want to use it.
any other free apps that can do the same thing ?
beirouty said:
hello
i rooted and installed ARHD for my galaxy nexus and it came with ES manager.
its a nice free file explorer and it can show system files and such, i granted it super permissions but i still cant delete that one file that lets me boot into CWM from the fastboot menu, so i have to flash CWM using my computer terminal everytime i want to use it.
any other free apps that can do the same thing ?
Click to expand...
Click to collapse
ES works fine for me... what file are you trying to delete?
And have you mounted system as read/write in ES Settings?
Hi,
I'm also using ES File Explorer with Android 4.0 SDK on emulator. I need to read the event0 file in /dev/input. When I try to open it with ES Note Editor, I get this error: Failed to open the file (java.io.IOException at com.estrongs.android.pop.app.h.run(Unknown source) at java.lang.Thread.run(Thread.java:856)). The emulator is rooted, i also tried to enable Root Explorer in ES settings, it failed because this functionality is not supported for my phone? Also the mount file system option in ES settings is disabled.
Can anyone help me? Is the 4.0 platform the problem, should I use an older one? Or is something different the problem?
Thanks.

[Q] Why can't I copy to 'notifications' folder?

I am running Paranoid Android 4.5 beta. I am trying to copy a sound file to /system/media/audio/notifications but it fails. I have root and I made sure it is mounted as R/W in root explorer but I can't do it. I can copy a file to my 'ringtones' folder. Any thoughts?
I just think its the way KK handles things...try different apps
I tried es file explorer and the terminal emulator and the error is it's a read only file system even though Root explorer says it is read write. Does anyone know how to change it?
bird333 said:
I tried es file explorer and the terminal emulator and the error is it's a read only file system even though Root explorer says it is read write. Does anyone know how to change it?
Click to expand...
Click to collapse
I fixed this problem on my note 10.1 gnabo rom with an xposed module. Now I can use my sd how I want not how google thinks I should
Any other thoughts?
Try this: https://play.google.com/store/apps/details?id=com.mrbimc.selinux

How do I set /system as Rw?

I keep trying to edit build.prop on my 5x as I've done on previous devices in the past. Going through file explorers setting it to Rw doesn't actually change it. Does anyone know how to actually set it as rw so it can be modified? I'm trying to add eis, if anyone else has tried.
Thanks!
Atemi1337 said:
I keep trying to edit build.prop on my 5x as I've done on previous devices in the past. Going through file explorers setting it to Rw doesn't actually change it. Does anyone know how to actually set it as rw so it can be modified? I'm trying to add eis, if anyone else has tried.
Thanks!
Click to expand...
Click to collapse
are you sure you are properly rooted? what method did you use?
do other root apps work as intended, which file explorers are you talking about, are you on stock?
just asking, since there are root procedures around through which you funnily enough end up with a r/o rooted device. also the more relevant information you give, the easier it is to help.
Broken303 said:
are you sure you are properly rooted? what method did you use?
do other root apps work as intended, which file explorers are you talking about, are you on stock?
just asking, since there are root procedures around through which you funnily enough end up with a r/o rooted device. also the more relevant information you give, the easier it is to help.
Click to expand...
Click to collapse
I followed a guide in November, don't remember which. All done through adb. All root apps work fine, xposed, titanium Backup, etc. I've tried stock, es file explorer and FX file explorer. Also for giggles I tried Rom Toolbox Pro. Also, in twrp it does say I'm not encrypted.
When trying to edit the file, it only gives me a cannot modify file error.
Atemi1337 said:
I followed a guide in November, don't remember which. All done through adb. All root apps work fine, xposed, titanium Backup, etc. I've tried stock, es file explorer and FX file explorer. Also for giggles I tried Rom Toolbox Pro. Also, in twrp it does say I'm not encrypted.
When trying to edit the file, it only gives me a cannot modify file error.
Click to expand...
Click to collapse
Did you mount system rw before trying to edit the file?
In ES it's under Tools > turn root explorer on, then tap it and mount rw
Same for me...
berndblb said:
Did you mount system rw before trying to edit the file?
In ES it's under Tools > turn root explorer on, then tap it and mount rw
Click to expand...
Click to collapse
Using ES worked perfectly. No other actually worked. Many thanks!

Question LOCKSCREEN OGG FILE LOCATION

Hello I have been trying to look for the lockscreen.ogg file location. It has seemed to changed in Android 12 if I'm not mistaken. It was located in System/Media/UI but it seems that is no longer even there with Android 12. Does anyone have any idea where this is? Thank you!
Try system/product/media
Ronny220 said:
Try system/product/media
Click to expand...
Click to collapse
That is exactly the spot I was looking for. For some reason I cant get root explorer to mount R/W to overwrite the old file. Root Explorer does have SU access as well. Any ideas?
stalls said:
That is exactly the spot I was looking for. For some reason I cant get root explorer to mount R/W to overwrite the old file. Root Explorer does have SU access as well. Any ideas?
Click to expand...
Click to collapse
There are one or more Magisk Modules that will make it appear for all intents and purposes that you've overwritten or changed a file. It will do what you need. Because root is systemless, you can't (and shouldn't want to) actually change or delete any system files for real. I don't know the name(s) of the Magisk Modules that will do that, as I haven't had a need, but many users in this section have suggested others use such modules to do something similar to what you want to do.
running "settings list global" on adb shell gave me this location "lock_sound=/product/media/audio/ui/Lock.ogg" I was gonna check on root explorer but forgot im not rooted right now but hopefully that is it.
I just am trying to change the sound when locking the phone.
stalls said:
I just am trying to change the sound when locking the phone.
Click to expand...
Click to collapse
Can you rename the stock file to lock.oggbak and then paste the new sound in obviously with the name lock.ogg?
Thebear j koss said:
Can you rename the stock file to lock.oggbak and then paste the new sound in obviously with the name lock.ogg?
Click to expand...
Click to collapse
You can not because root explorer is not able to switch to r/w. But I tried anyways and failed
stalls said:
You can not because root explorer is not able to switch to r/w. But I tried anyways and failed
Click to expand...
Click to collapse
you have to create a magisk module yourself and replace the file, with the one you want.
google around for a template of a simple magisk module, recreate the directory inside the magisk module where the file you want to replace sits on the phone (system/product/media/audio/ui), drop the new sound file there, zip the magisk module template and flash via magisk manager and do a reboot.
dynamic partitions donĀ“t allow for r/w mounting. replacing the file systemlessly via magisk during bootup is the only way.

Categories

Resources