Can't modify files in system WITH root - Android Q&A, Help & Troubleshooting

The title says it all I guess. ? I have a Moto Z2 Force with Lineage 16. My situation:
- Flashed successfully su add-on
- Flashed successfully Magisk (which confirms I have root with super su installed).
Every file manager I tried fails in delete, rename or modify any file in system/ . But I can see for all of them "xxx file manager has granted root super su permission"
Or they either are successful in, for example, rename the file but its a fake success cause I just have to refresh the folder or use another file manager and the file is intact, or it gives me immediately error...
The file, as well the folder itself, is already mounted in R / W.

Nobody...?

The problem have something to do with the selinux permission.
Use aroma file manager in TWRP or test magik core only mod in settings first.

Related

[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

Alternate method of installing GAPPS without TWRP?

If you boot into the stock recovery it gives you the option to "install update.zip to System." Would it be possible to rename the Google Apps package update.zip and install with the stock recovery?
No, the gapps hasn't the needed sign.
You can flash play store without a custom recovery, you need root however.
Grab es file explorer apk from somewhere, install. Give it root permissions through security app, open es file explorer, turn on the root browser option.
Copy this file to /system/priv-app/
https://drive.google.com/file/d/0B0tq0BySLo6sclZkTEhEWXV0YW8/view?usp=docslist_api
Set permissions to the same as everything else in that folder. ( just look at another apk properties in that folder , then set the one you just copied there likewise)
Restart your phone. Boom you have play store.
There's an app called Google installer. You can find it over at xiaomi forum. It installs all google play service store and all needed framework

something blocks all system write permissions after trying to change some files

here is the scenario, I root my xperia Z1C (final stock firmware android 5.1.1) with kingoroot, then I try to replace superuser with supersu
for example with this guide:
https://forum.xda-developers.com/an...g/replace-kingoroot-supersu-manually-t3573361
I can set all write permissions in the system folder, use softwares like Link2SD with no problem,
but as soon as I try to change some system files (related to changing supersu), for example executing the following command:
Replace: /common/install-recovery.sh => /system/etc
my file manager (x-plore) returns a copy fail error and afterward all write permissions in system folder are denied.
even more strange thing happens if I root my phone with kingroot, and use this guide to replace it with supersu:
https://forum.xda-developers.com/a310/general/how-to-remove-replace-kingroot-kinguser-t3308989
script successfully installs the supersu and uninstall the kingroot, but after that all system write permissions are denied again, link2sd fails to install any app in system, even supersu can't install itself in system.
I appreciate any help, I think it's the cause of many other problems which rooted users are facing.

Unable to rename files in Oreo

Hi,
I tried to rename root's .ogg files on my Samsung Note 9(Oreo) and unable to do it. I found limited information here. I can rename the .ogg files in the older Android though.. What I have tried so far from these app and failed;
1. ES explorer
2. root explorer
3. mixplorer
4. total commander
Permission for "RW" only can set on "mixploer", and "root explorer" but after tried to copy over the root folder, it prompted failed to copy. Although I can set ES exploere to "RW" mode but it fools you to believe it has rename the file but in reality it was unable to, what a screw up.. Anyone has successfully rename files in root folders?
I did not try this in "safe mode" though..
If you had Magisk rooted phone, try ExSDcardEnable module. Or can you move file to internal storage for rename?
adeii said:
If you had Magisk rooted phone, try ExSDcardEnable module. Or can you move file to internal storage for rename?
Click to expand...
Click to collapse
I was tried to rename the files at internal storage but not able to. I can copied files out to ext memory card or pen drive. After that I was not able to move back to override the current file/files.
Magisk is installed but can't find "ExSDcardEnable module".. Is it in the Magisk manager?
This file ".ogg" is at "system\media\audio\xxxx.ogg" and unable to edit. Looks like the ownership of Oreo harder to make change now..
user109 said:
Magisk is installed but can't find "ExSDcardEnable module".. Is it in the Magisk manager?
This file ".ogg" is at "system\media\audio\xxxx.ogg" and unable to edit. Looks like the ownership of Oreo harder to make change now..
Click to expand...
Click to collapse
Well, at least you have remount /systen as read/write with "mount -o rw,remount /system" or in TotalCommander is easier.
Yes, it is downloadable module in Magisk Man. Latest is ExSDCard Write Access Enabler v3.5 (Sorry for bad name). The new access path for our externals SDCards: /mnt/media_rw/SDCARDNUMBER/
adeii said:
Well, at least you have remount /systen as read/write with "mount -o rw,remount /system" or in TotalCommander is easier.
Yes, it is downloadable module in Magisk Man. Latest is ExSDCard Write Access Enabler v3.5 (Sorry for bad name). The new access path for our externals SDCards: /mnt/media_rw/SDCARDNUMBER/
Click to expand...
Click to collapse
@adeii,
May I know if I need to install it from TWRP? Or run by Magisk manager will do?
user109 said:
@adeii,
May I know if I need to install it from TWRP? Or run by Magisk manager will do?
Click to expand...
Click to collapse
By running from Magisk Manager -> Plugins -> sign "+" -> choose *.zip plugin, after automatic install, reboot phone.
Or MM -> Downloads -> search for ExSDcard -> Click on ExSDcard write access enabler -> Install then reboot.
@Hi adeii,
I installed the "ExSDCard Write Access Enabler" by download through the Mgisk manager's download and wonder if correct. I attached a screenshot here.
I tried to use the total commander to rename the ".ogg" files but failed after I have re-mount the R/W. I wonder if I did correctly by adding the folder as shown in the screenshot.
Did anyone successfully overwrite the files in Oreo? I run out of lucks... Not much information about this issues also.. From Jelly Bean to Marshmallow I have no problem to overwrite files(I did not try on Nougat). But Oreo, until now I still have no way to overwrite a simple file like .ogg.. :crying:

A7 2017 secure folder does not work with smali pather

Hello, sorry for my bad english. My phone is rooted and has TWRP installed. I am using Smali patcher. Masick and twrp installed the latest version. Secure folder version is 1.2.32.1. I cant update it. I couldn't delete it with root file managers. The updated apk file is not installed because I cannot delete it. After doing the patch, I open the secure folder and it does not open for a long time and gives an error. Es file manager root partition does not work because shortly after granting root it says "root permission could not be obtained, function temporarily unavailable." busybox and root browser work fine. Where did I go wrong, what should I do?

Categories

Resources