Unable to modify /system folder - OnePlus 6T Questions & Answers

I've looked all over and I'm unable to find a solution or even what's stopping me from modifying the /system folder in the root directory. I can remove files from that folder and all of it's subfolders but I'm unable to add any files into that directory. I am rooted on the T-mobile OnePlus 6t that has been converted to the international ROM. I know my root works cause I can perform other root functions. I also cannot modify the /system folder from TWRP either which is really strange to me. Also, when TWRP prompts me to install the app, it just reboots recovery since it's trying to install it as a system app which I can't do for this odd reason I have yet to find out. This issue all of a sudden showed up after an OTA update and re-rooting after. I have tried reinstalling TWRP, Magisk and Oxygen OS itself but the issue persists. I have also tried running "reboot disemmcwp" as root in a terminal window AND using adb but I guess that command no longer works. Any suggestions welcome as this is the last place I can find an answer to this issue.
Edit: found out I'm unable to uninstall system apps for some reason. So the issue isn't space related.

Toilet Clauger said:
I've looked all over and I'm unable to find a solution or even what's stopping me from modifying the /system folder in the root directory. I can remove files from that folder and all of it's subfolders but I'm unable to add any files into that directory. I am rooted on the T-mobile OnePlus 6t that has been converted to the international ROM. I know my root works cause I can perform other root functions. I also cannot modify the /system folder from TWRP either which is really strange to me. Also, when TWRP prompts me to install the app, it just reboots recovery since it's trying to install it as a system app which I can't do for this odd reason I have yet to find out. This issue all of a sudden showed up after an OTA update and re-rooting after. I have tried reinstalling TWRP, Magisk and Oxygen OS itself but the issue persists. I have also tried running "reboot disemmcwp" as root in a terminal window AND using adb but I guess that command no longer works. Any suggestions welcome as this is the last place I can find an answer to this issue.
Click to expand...
Click to collapse
Known issue that in the Newer OxygenOS versions there is no free space in /system. I'd download Solid Explorer and check the Free Space in the Root Directory.
Sent from my OnePlus6T using XDA Labs

Mannan Qamar said:
Known issue that in the Newer OxygenOS versions there is no free space in /system. I'd download Solid Explorer and check the Free Space in the Root Directory.
Click to expand...
Click to collapse
I've thought about that before. I use root explorer and can see there's more space than needed for the files I want to insert. Is there some buffer space needed in there and how much?

Toilet Clauger said:
I've thought about that before. I use root explorer and can see there's more space than needed for the files I want to insert. Is there some buffer space needed in there and how much?
Click to expand...
Click to collapse
Well, if you go to magisk and select core only mode then reboot you will be able to modify system

toolhas4degrees said:
Well, if you go to magisk and select core only mode then reboot you will be able to modify system
Click to expand...
Click to collapse
I was actually able to find the issue. Space was the issue. I guess there's a space buffer needed from what a file explorer says is left and what's actually left. I uninstalled a couple system apps I disable anyway and was able to insert files/apps into system again.

I made space easy I have the new OnePlus camera apk 125mb the old one is 67mb

Related

Cannot for the life of me get system r/w permissions

I've been running cm7 nightlies and now stable 7.0 for some time now. I have the new radio, ladios' kernel, and the sdcard read fix flashed.
I installed super manager and successfully deleted some of the stock cm7 media off my phone last week. Today, I came across the new GPS.conf files and wanted to try them.
Super manager couldn't switch the system to r/w despite saying "ok"
When I try to delete or write in the system with EStrongs file explorer, ghost commander, or android mate, they all give strange errors. The deleted files disappear but reappear after reboot. If I try to paste a file in system/etc I only get an error.
Superuser is successfully allowing permissions. I have the latest busybox. I have r/w enabled in each file manager.
I even tried an adb push test which first said "system is r/o only". The next try was "successful" but didn't do anything.
I'm still new with adb so I probably did something wrong. I typed in that r/w command, mount now shows: /dev/block/mtdblock3 on /system type yaffs2 (rw,relatime)
I can't figure out what changed and what I need to do to get r/w permissions. My only theory is that i had uninstalled and reinstalled super manager earlier and that somehow messed with my permissions.
You cannot permanently modify the system partition while the phone is booted into Android. The only way is to use adb while the phone is in recovery mode. Any changes you make while the phone is booted will be lost after a reboot.
Go check on those media files you thought you deleted. I bet you'll find they are still there.
Yes that worked. Thank you.
I thought I had read somewhere that you had to be booted to adb push.
I also thought that root managers advertising r/w capability would make permanent changes.
Next question:
Can I add and remove files from the cm7 zip before flashing it? Do I have to rezip it in any special or can windows 7 manage it fine?
EDIT: Ok I guess i need to sign it... lets see...
jamus28 said:
Yes that worked. Thank you.
I thought I had read somewhere that you had to be booted to adb push.
I also thought that root managers advertising r/w capability would make permanent changes.
Next question:
Can I add and remove files from the cm7 zip before flashing it? Do I have to rezip it in any special or can windows 7 manage it fine?
EDIT: Ok I guess i need to sign it... lets see...
Click to expand...
Click to collapse
You don't need to sign them on the aria
Sent from my Liberty using XDA App
jamus28 said:
Yes that worked. Thank you.
I thought I had read somewhere that you had to be booted to adb push.
I also thought that root managers advertising r/w capability would make permanent changes.
Click to expand...
Click to collapse
Those programs will work on some phones but not the Aria.
Next question:
Can I add and remove files from the cm7 zip before flashing it? Do I have to rezip it in any special or can windows 7 manage it fine?
EDIT: Ok I guess i need to sign it... lets see...
Click to expand...
Click to collapse
It really is as simple as adding or removing a few files from the zip file if you want to modify it.

Can't seem to make write changes to system

EDIT: Fixed by flashing latest factory images via fastboot, then the latest TWRP, then MagiskSU.
Hi there,
I'm rooted on stock 7.1.1 but I can't seem to make write changes consistently on the system partition. I was trying to rename NotoColorEmoji.ttf in /system/fonts so I could copy across the version with the iOS emojis, and somehow the rename worked so it's now named NotoColorEmojiOld.ttf - I managed to do this with root permissions in Solid Explorer. However, when I try and copy across the new NotoColorEmoji.ttf to the fonts folder, Solid Explorer says it's unable to do so. I've tried rebooting into TWRP, mounting system and using the file manager but it fails with Error 1. What's worse is I can't seem to rename NotoColorEmojiOld.ttf back to NotoColorEmoji.ttf either - neither Solid Explorer nor TWRP work for this despite both obviously having root access, both throw errors. As a result I have no emoji font file so all my emojis are blank boxes.
Any help in fixing this would be appreciated!
Try flashing a zip version of notocolor in twrp
CarteNoir said:
Hi there,
I'm rooted on stock 7.1.1 but I can't seem to make write changes consistently on the system partition. I was trying to rename NotoColorEmoji.ttf in /system/fonts so I could copy across the version with the iOS emojis, and somehow the rename worked so it's now named NotoColorEmojiOld.ttf - I managed to do this with root permissions in Solid Explorer. However, when I try and copy across the new NotoColorEmoji.ttf to the fonts folder, Solid Explorer says it's unable to do so. I've tried rebooting into TWRP, mounting system and using the file manager but it fails with Error 1. What's worse is I can't seem to rename NotoColorEmojiOld.ttf back to NotoColorEmoji.ttf either - neither Solid Explorer nor TWRP work for this despite both obviously having root access, both throw errors. As a result I have no emoji font file so all my emojis are blank boxes.
Any help in fixing this would be appreciated!
Click to expand...
Click to collapse
Are you using either phh superuser or magisksu?
Try changing your SELinux to Permissive with this app https://forum.xda-developers.com/showthread.php?t=2524485
bozinsky73 said:
Try flashing a zip version of notocolor in twrp
Click to expand...
Click to collapse
I get "set_perm: some changes failed, Updater process ended with ERROR: 7" and it doesn't work.
blitzkriegger said:
Are you using either phh superuser or magisksu?
Click to expand...
Click to collapse
Nope, just plain old systemless SuperSU.
collinjames said:
Try changing your SELinux to Permissive with this app https://forum.xda-developers.com/showthread.php?t=2524485
Click to expand...
Click to collapse
For some reason the app claims I don't have root permission despite the SuperSU dialog popping up and me granting it root.
CarteNoir said:
I get "set_perm: some changes failed, Updater process ended with ERROR: 7" and it doesn't work.
Nope, just plain old systemless SuperSU.
For some reason the app claims I don't have root permission despite the SuperSU dialog popping up and me granting it root.
Click to expand...
Click to collapse
Selinux didn't work for me at first on 7.1.1, I got the same error as you. But I went into twrp made sure system mounted, go into twrp terminal and cd into /system/bin and /system/xbin and in both of these directories type in (touch su) with out parenthesis. Reboot and see if that makes selinux changer works now.
Fe Mike said:
Selinux didn't work for me at first on 7.1.1, I got the same error as you. But I went into twrp made sure system mounted, go into twrp terminal and cd into /system/bin and /system/xbin and in both of these directories type in (touch su) with out parenthesis. Reboot and see if that makes selinux changer works now.
Click to expand...
Click to collapse
That got the app working and I was able to change SELinux to permissive, but I still can't make lasting changes to /system unfortunately.
Bumping - anyone else have any ideas? I'm not so much concerned with not being able to change emoji fonts as I am concerned with the ramifications of not having system write access - if anything breaks or comes up in the future that I need rw system for, I won't be able to fix stuff unless I sort this out.

[SOLVED] Unable to read/write internal storage

My OnePlus 5 is unable to read or write the internal storage. I don't see any file in Gallery or any other app that lists media files. File explorer shows how much space is used up but it says my storage is empty. Can't download files, can't create folders or files. Sometimes it fixes itself and I could access all my files. Or sometimes rebooting the phone fixes it. I tried some command lines in adb trying to fix permissions, but got no luck out of it. Somebody, please help!
P.S.: My phone is rooted with SuperSU, runs on the latest OOS build, has Xposed installed and I haven't tried switching roms.
Update: Uninstalling Xposed solved it.
zTweaked said:
My OnePlus 5 is unable to read or write the internal storage. I don't see any file in Gallery or any other app that lists media files. File explorer shows how much space is used up but it says my storage is empty. Can't download files, can't create folders or files. Sometimes it fixes itself and I could access all my files. Or sometimes rebooting the phone fixes it. I tried some command lines in adb, but got no luck out of it. Somebody, please help!
P.S.: My phone is rooted with SuperSU, runs on the latest OOS build and I haven't tried switching roms.
Click to expand...
Click to collapse
Flash this zip file via TWRP and see if it helps.
shadowstep said:
Flash this zip file via TWRP and see if it helps.
Click to expand...
Click to collapse
Let's see
zTweaked said:
My OnePlus 5 is unable to read or write the internal storage. I don't see any file in Gallery or any other app that lists media files. File explorer shows how much space is used up but it says my storage is empty. Can't download files, can't create folders or files. Sometimes it fixes itself and I could access all my files. Or sometimes rebooting the phone fixes it. I tried some command lines in adb, but got no luck out of it. Somebody, please help!
P.S.: My phone is rooted with SuperSU, runs on the latest OOS build and I haven't tried switching roms.
Click to expand...
Click to collapse
Try fixing contexts in TWRP
zTweaked said:
My OnePlus 5 is unable to read or write the internal storage. I don't see any file in Gallery or any other app that lists media files. File explorer shows how much space is used up but it says my storage is empty. Can't download files, can't create folders or files. Sometimes it fixes itself and I could access all my files. Or sometimes rebooting the phone fixes it. I tried some command lines in adb, but got no luck out of it. Somebody, please help!
P.S.: My phone is rooted with SuperSU, runs on the latest OOS build and I haven't tried switching roms.
Click to expand...
Click to collapse
Did you install Xposed? If yes, it gives this problem for which I had to uninstall Xposed.
Even I faced this issue in my unrooted device
Fix contexts in TWRP. I had this exact problem when the phone first came out.
zTweaked said:
Let's see
Click to expand...
Click to collapse
Is it the same when browsing your files with twrp ?
0xTJ said:
Try fixing contexts in TWRP
Click to expand...
Click to collapse
Doesn't work.
smartbuddy said:
Did you install Xposed? If yes, it gives this problem for which I had to uninstall Xposed.
Click to expand...
Click to collapse
Yes, I have xposed installed. How did you uninstall it? There's no uninstaller zip for Nougat yet. Did you just restore your rom?
nosphor said:
Is it the same when browsing your files with twrp ?
Click to expand...
Click to collapse
Haven't checked yet.
zTweaked said:
Yes, I have xposed installed. How did you uninstall it? There's no uninstaller zip for Nougat yet. Did you just restore your rom?
Click to expand...
Click to collapse
There is Uninstaller available for Xposed on Nougat :
Download and Flash this in TWRP, wipe cache and Reboot :
http://fastkit.org/xposed/classic/Uninstaller /xposed-uninstaller-20170719-arm64.zip
zTweaked said:
My OnePlus 5 is unable to read or write the internal storage. I don't see any file in Gallery or any other app that lists media files. File explorer shows how much space is used up but it says my storage is empty. Can't download files, can't create folders or files. Sometimes it fixes itself and I could access all my files. Or sometimes rebooting the phone fixes it. I tried some command lines in adb, but got no luck out of it. Somebody, please help!
P.S.: My phone is rooted with SuperSU, runs on the latest OOS build and I haven't tried switching roms.
Click to expand...
Click to collapse
I had this issue on the first boot after rooting using Magisk, a simple reboot fixed it. So maybe try rooting using Magisk? I know it's not a complete solution but just throwing a thought out there.
smartbuddy said:
There is Uninstaller available for Xposed on Nougat :
Download and Flash this in TWRP, wipe cache and Reboot :
http://fastkit.org/xposed/classic/Uninstaller /xposed-uninstaller-20170719-arm64.zip
Click to expand...
Click to collapse
Thanks, this fixed it
muddynoodle said:
I had this issue on the first boot after rooting using Magisk, a simple reboot fixed it. So maybe try rooting using Magisk? I know it's not a complete solution but just throwing a thought out there.
Click to expand...
Click to collapse
Uninstalling xposed fixed the issue
I have the same issue, thank you for the solution. I hope it was only because of xposed
zTweaked said:
My OnePlus 5 is unable to read or write the internal storage. I don't see any file in Gallery or any other app that lists media files. File explorer shows how much space is used up but it says my storage is empty. Can't download files, can't create folders or files. Sometimes it fixes itself and I could access all my files. Or sometimes rebooting the phone fixes it. I tried some command lines in adb, but got no luck out of it. Somebody, please help!
P.S.: My phone is rooted with SuperSU, runs on the latest OOS build and I haven't tried switching roms.
Click to expand...
Click to collapse
I've written a fix for this in the xXx no limits thread, go take a look. Easy can be done from terminal.
dladz said:
I've written a fix for this in the xXx no limits thread, go take a look. Easy can be done from terminal.
Click to expand...
Click to collapse
If it's fixing permissions via terminal then sorry, that didn't work. As I said, xposed was the problem. Uninstalling it fixes the problem.
Happend to me 2 times... a simple reboot solved it.
zTweaked said:
If it's fixing permissions via terminal then sorry, that didn't work. As I said, xposed was the problem. Uninstalling it fixes the problem.
Click to expand...
Click to collapse
]This fixed it for me.
Cannot download due to SD card missing" Error.
Simply open a terminal emulator and type in the following.
su
restorecon -FR /data/media/0
Reboot and it should work thereafter.
dladz said:
]This fixed it for me.
Cannot download due to SD card missing" Error.
Simply open a terminal emulator and type in the following.
su
restorecon -FR /data/media/0
Reboot and it should work thereafter.
Click to expand...
Click to collapse
Glad it worked for you. Sadly for me, fixing permissions or contexts didn't help. Anyways, I said it earlier, uninstalling Xposed fixed it.
@SynisterWolf please close this thread. The issue is fixed.
Yea I didn't have xposed installed you see, plus mine reoccurred. Was only trying to help.
---------- Post added at 01:30 PM ---------- Previous post was at 12:51 PM ----------
Re ran the command i wrote earlier, seems to isn't working for me either, great
dladz said:
]This fixed it for me.
Cannot download due to SD card missing" Error.
Simply open a terminal emulator and type in the following.
su
restorecon -FR /data/media/0
Reboot and it should work thereafter.
Click to expand...
Click to collapse
Oh man, thanks. I spent hours trying to solve this.

Bloatware?

Okay so recently I have rooted my E4 (Sprint) and can't seem to uninstall system apps. It comes with face book and all that other Sprint bloat. But when i use an app to try to uninstall them, they just stay there. Any help? I'm currently rooted with magisk 13.3 and have xposed installed along with busy box.
install root explorer app and try manually deleting apps (/system/app) (/system/priv-app)
This will work for sure
I mentioned this here https://forum.xda-developers.com/moto-e4/how-to/how-to-disable-bloat-wear-qualcomm-t3655452
kartik verma said:
install root explorer app and try manually deleting apps (/system/app) (/system/priv-app)
This will work for sure
Click to expand...
Click to collapse
I've tried using ES file explorer pro and the Facebook or Sprint apps aren't in any of those folders for some reason...
amarc78 said:
I mentioned this here https://forum.xda-developers.com/moto-e4/how-to/how-to-disable-bloat-wear-qualcomm-t3655452
Click to expand...
Click to collapse
Any way of doing this without a PC? I'm currently away from home and need something mobile
What app are you using to remove the apps? Titanium Backup? I've had TBU not uninstall some apps for whatever reason, but link2sd was able to remove apps. Might want to try it.
I've noticed some of the apps that are carrier installed are in the oem folder, deleted them and problem solved. This was on a metro PCS variant.
This is the oem folder, I used FX file explorer.
KyleBryant said:
This is the oem folder, I used FX file explorer.
Click to expand...
Click to collapse
I have the Sprint version but when I try to erase any app from those folders the device freezes
It was freezing on me when I was using root explorer pro, that's why I ended up switching to FX. Also when you rooted your device did you do a wipe and then flash noverity and then su because if you didn't do the wipe your phone might still be encrypted and it won't allow you to modify system folders.
KyleBryant said:
It was freezing on me when I was using root explorer pro, that's why I ended up switching to FX. Also when you rooted your device did you do a wipe and then flash noverity and then su because if you didn't do the wipe your phone might still be encrypted and it won't allow you to modify system folders.
Click to expand...
Click to collapse
I can't get it to work with FX either. It just freezes the phone. I don't get why it works for you.
Sent from my LGLS755 using XDA Labs
You could try deleting them in the file browser on twrp
That is how I had said I to do it in the thread I started explaining how to do it. This users problem is they can't find the option to mount the OEM folder in twrp to be able to see the contents in the file manager to edit it.
Sent from my Moto E (4) using XDA Labs
KyleBryant said:
It was freezing on me when I was using root explorer pro, that's why I ended up switching to FX. Also when you rooted your device did you do a wipe and then flash noverity and then su because if you didn't do the wipe your phone might still be encrypted and it won't allow you to modify system folders.
Click to expand...
Click to collapse
I formatted the system, flashed magisk then noverity
In order to make it work for me I had to format data in twrp then reboot twrp and then flash noverity first then your root of choice and then it worked.
I REALLY don't want to format again only to find out it may not work..
KyleBryant said:
In order to make it work for me I had to format data in twrp then reboot twrp and then flash noverity first then your root of choice and then it worked.
Click to expand...
Click to collapse
Wait what root options do I have? Does chain fire's root work?
thereallinkieishere said:
Wait what root options do I have? Does chain fire's root work?
Click to expand...
Click to collapse
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 first post in this thread explains how to root without TWRP.
Anything other than Magisk??
thereallinkieishere said:
Anything other than Magisk??
Click to expand...
Click to collapse
Pph superuser

Error 'system' not in /proc/mounts when trying to make cerberus as system app

Hi, a few days ago I manually updated my OP6T to the latest version manually (I can't do it normally because I'm rooted and the system shows me an error)
I use the Cerbeus anti-theft application, I like to turn it into a system application to have full control of my phone in cases of emergency (theft, for example).
The point is that I can install magisk 20v and root perfectly, but when I try to make cerberus or any application as a system application, it shows me the error 'system' not in / proc / mounts, I use link2sd, titanium back up, root explorer all the options does not work, i cant mount rewrite to erase system apps but i can't make normal apps to system app, I tried to update the ROM stock directly from the official website, but at the end, always shows me that error, can anyone help me with this problem?
Thank you! if you need more information tell me
I'm so sorry if my English is not too good, I'm still learning
Bootloader unlocked
Recovery TWRP fajita lastest version
There's a magisk module called systemize that should be able to do what you're wanting as far as turning it into a system app
jestyr8 said:
There's a magisk module called systemize that should be able to do what you're wanting as far as turning it into a system app
Click to expand...
Click to collapse
I was try to much things, really, i never see that module and i have youtube venced module and native OS recorder
Thank you for the tip !
linkoerk said:
I was try to much things, really, i never see that module and i have youtube venced module and native OS recorder
Thank you for the tip !
Click to expand...
Click to collapse
Just search the download list for systemize.
I've used it for a few apps that need system level access and it's worked great
Yes woked perfectly thank you very much
EDIT:
I tried a few days ago, All converted applications were removed with factory reset are they not supposed to be already in the system partition?
linkoerk said:
I tried a few days ago, All converted applications were removed with factory reset are they not supposed to be already in the system partition?
Click to expand...
Click to collapse
Someone can help me with this? i already try to put manually in priv-app with a explorer an random app and worked well when i do FR but do not work properly, never open correctly, and if i try to do the same with magisk or cerberus app show me an error ''Cant complete the action''
Thank you!
linkoerk said:
Someone can help me with this? i already try to put manually in priv-app with a explorer an random app and worked well when i do FR but do not work properly, never open correctly, and if i try to do the same with magisk or cerberus app show me an error ''Cant complete the action''
Thank you!
Click to expand...
Click to collapse
AFAIK Systemize Is the easiest and recommend way. About the things being removed after factory reset, that's normal as Systemize is System-Less. All changes it makes will be reverted after a Factory Reset.
Mannan Qamar said:
AFAIK Systemize Is the easiest and recommend way. About the things being removed after factory reset, that's normal as Systemize is System-Less. All changes it makes will be reverted after a Factory Reset.
Click to expand...
Click to collapse
Another way to make a user app to system app? Link2SD is not working anymore
linkoerk said:
Yes woked perfectly thank you very much
EDIT:
I tried a few days ago, All converted applications were removed with factory reset are they not supposed to be already in the system partition?
Click to expand...
Click to collapse
Magisk modules don't touch physically system partition. It's the only way to keep security verifications green. Magisk modules are in data partition and are 'mounted' is system ram disk
Hi again guys, now im trying again to make Cerberus as system app I was able to solve the problem about mounting system, through ADB I placed the APK manually in the system / priv-app folder, I gave it permissions with CHMOD 644 i restarted and effectively became system application Up to this point everything was in order, until I did a factory reset, I got stuck in the boot animation, To solve it I had to boot TWRP and manually remove the apk from the priv-app folder, with this the system boot normally (curious because the root permission was there Despite having restarted the System)
Someone have any ideas to solve it? I don't care about magisk and if the safety net are in red
Thanks!
Help guys, any ideas ?
linkoerk said:
Help guys, any ideas ?
Click to expand...
Click to collapse
use systemize to move the app + libs to /system/priv-app
copy the folder to /system/app (you cannot delete)
uninstall Magisk to kill the module
estou com o mesmo problema no Link2

Categories

Resources