• We are moving to xdaforums.com!

    Posts made between now and when the migration is complete will not be carried over.
    You will be automatically redirected once the migration is complete.

How to copy file to root directory

Search This thread

KHALISTAN

Member
Jun 3, 2023
25
0
Hi. I have tried using root explorers to copy files to the root directory, but I am getting an error of permission denied eventhough my phone is rooted. Any advice, or suggestions?
 

simplepinoi177

Forum Moderator
Staff member
Hi. I have tried using root explorers to copy files to the root directory, but I am getting an error of permission denied eventhough my phone is rooted. Any advice, or suggestions?
I had to install custom fonts and was able to do this using Cx File Explorer (although it looks like MiXplorer seems to be the best premiere Android File Explorer currently; I intend to use it when the need arises) -- I just had to make sure to enable "root mode" (which I imagine most file explorers have something similar as protocol and for safety). You probably have to do that -- as @jwoegerbauer alluded to already.
In any case, it is definitely possible. Also be sure that your root manager (Magisk most likely) is granting root capabilities to the app/file-explorer as well...
 
  • Like
Reactions: KHALISTAN

simplepinoi177

Forum Moderator
Staff member
What's the best way to mount as rw?
Sorry if I'm butting in -- as you directed your question to @jwoegerbauer -- but I'm thinking his post/statement was a expert/complicated way of explaining why it wasn't working.
Essentially, "mounting" is sort of equivalent to obtaining "root access mode"/"root mode" -- like I've described previously. Most of the time, there is a setting that can be set in any/all third-party root file explorer -- Root Explorer by Speed Software has a literal "Mount R/W" button, in
ES File Explorer there's an option to "Select 'Mount R/W'" in the "Root Explorer" setting in the “Tools” section, CX Explorer there's a "root access mode" to be ticked, in X-plore File Manager there's "Superuser + mount writable" in configuration, in Amaze File Manager there's "Root Explorer" in Behavior setting, etc.
Unless jwoegerbauer meant the totally complicated way of attempting to change the permissions/"mounting" through adb commands and/or other executions from a terminal type environment (the 2 that come to mind, i'm sure there are more)....

Hope this helps....
 
  • Like
Reactions: KHALISTAN

KHALISTAN

Member
Jun 3, 2023
25
0
Sorry if I'm butting in -- as you directed your question to @jwoegerbauer -- but I'm thinking his post/statement was a expert/complicated way of explaining why it wasn't working.
Essentially, "mounting" is sort of equivalent to obtaining "root access mode"/"root mode" -- like I've described previously. Most of the time, there is a setting that can be set in any/all third-party root file explorer -- Root Explorer by Speed Software has a literal "Mount R/W" button, in
ES File Explorer there's an option to "Select 'Mount R/W'" in the "Root Explorer" setting in the “Tools” section, CX Explorer there's a "root access mode" to be ticked, in X-plore File Manager there's "Superuser + mount writable" in configuration, in Amaze File Manager there's "Root Explorer" in Behavior setting, etc.
Unless jwoegerbauer meant the totally complicated way of attempting to change the permissions/"mounting" through adb commands and/or other executions from a terminal type environment (the 2 that come to mind, i'm sure there are more)....

Hope this helps....
Thank you, no, you're not butting in. I appreciate your feedback. I have tried mount rw on es explorer, but I will try your method with the cx explorer in a few hours here. On the es explorer, even after mounting rw, it is showing that I don't have permission, that's why I was asking for the best way to do this, because that way didn't work for me. I didn't know if there was a better method.
 

simplepinoi177

Forum Moderator
Staff member
Thank you, no, you're not butting in. I appreciate your feedback. I have tried mount rw on es explorer, but I will try your method with the cx explorer in a few hours here. On the es explorer, even after mounting rw, it is showing that I don't have permission, that's why I was asking for the best way to do this, because that way didn't work for me. I didn't know if there was a better method.
That is unusual....

I've mentioned it before, but again you should confirm & double-check that your root manager (Magisk most likely) has it that those apps are given "superuser" access, not denied, and/or you should see some sort of toast notification when you launch the root explorer apps. Most of the time (at least with Magisk, it's been a long time since I used SuperSU and Kingroot), there is a prompt to "grant" access -- I have mine automatically set.

Your other apps that require root work right (although one can easily run root apps without root and only run into issues when doing specific particular usage)? If anything, have you checked any root checker apps -- make sure you're getting all you can out of your root access....?
 
  • Like
Reactions: KHALISTAN

KHALISTAN

Member
Jun 3, 2023
25
0
Yea. I saw the pop up to grant root access to es explorer, but it wouldn't let me copy. Actually, I am trying to copy fotakill to my system/app folder because I wont want any ota updates. The last time I got an ota update, they took away my unlocked bootloader, and root. I have spent about 2 weeks trying to get everything back. I am having some connection issues with bluetooth on newer versions of android, so thats why I am trying to stay low
 
  • Sad
Reactions: simplepinoi177

jwoegerbauer

Senior Member
Dec 11, 2022
1,733
7
346
Freestate of Bavaria, Germany
Moto G10
What's the best way to mount as rw?
Android 10+ prevents apps or pretty much anything from mounting system as R/W. Yes, even if you are rooted.
Top John Wu, the creator of Magisk has covered this in a series of tweets.
RIP to any mods or root apps that modify system.

To answer your question: You can try to achieve this by booting into Revovery mode and afterwards establish an ADB-connection and run the appropriate ADB shell commands.

1686295756841.png


Worthwhile to know:
Since Android Q, adb shell no longer requires manually mounting /system.
 
Last edited:

KHALISTAN

Member
Jun 3, 2023
25
0
Android 10+ prevents apps or pretty much anything from mounting system as R/W. Yes, even if you are rooted.
Top John Wu, the creator of Magisk has covered this in a series of tweets.
RIP to any mods or root apps that modify system.

To answer your question: You can try to achieve this by booting into Revovery mode and afterwards establish an ADB-connection and run the appropriate ADB shell commands.

View attachment 5928879

Worthwhile to know:
Since Android Q, adb shell no longer requires manually mounting /system.
That explains it. I was trying to do this in android 10
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    What's the best way to mount as rw?
    Android 10+ prevents apps or pretty much anything from mounting system as R/W. Yes, even if you are rooted.
    Top John Wu, the creator of Magisk has covered this in a series of tweets.
    RIP to any mods or root apps that modify system.

    To answer your question: You can try to achieve this by booting into Revovery mode and afterwards establish an ADB-connection and run the appropriate ADB shell commands.

    1686295756841.png


    Worthwhile to know:
    Since Android Q, adb shell no longer requires manually mounting /system.
    1
    Hi. I have tried using root explorers to copy files to the root directory, but I am getting an error of permission denied eventhough my phone is rooted. Any advice, or suggestions?
    I had to install custom fonts and was able to do this using Cx File Explorer (although it looks like MiXplorer seems to be the best premiere Android File Explorer currently; I intend to use it when the need arises) -- I just had to make sure to enable "root mode" (which I imagine most file explorers have something similar as protocol and for safety). You probably have to do that -- as @jwoegerbauer alluded to already.
    In any case, it is definitely possible. Also be sure that your root manager (Magisk most likely) is granting root capabilities to the app/file-explorer as well...
    1
    What's the best way to mount as rw?
    Sorry if I'm butting in -- as you directed your question to @jwoegerbauer -- but I'm thinking his post/statement was a expert/complicated way of explaining why it wasn't working.
    Essentially, "mounting" is sort of equivalent to obtaining "root access mode"/"root mode" -- like I've described previously. Most of the time, there is a setting that can be set in any/all third-party root file explorer -- Root Explorer by Speed Software has a literal "Mount R/W" button, in
    ES File Explorer there's an option to "Select 'Mount R/W'" in the "Root Explorer" setting in the “Tools” section, CX Explorer there's a "root access mode" to be ticked, in X-plore File Manager there's "Superuser + mount writable" in configuration, in Amaze File Manager there's "Root Explorer" in Behavior setting, etc.
    Unless jwoegerbauer meant the totally complicated way of attempting to change the permissions/"mounting" through adb commands and/or other executions from a terminal type environment (the 2 that come to mind, i'm sure there are more)....

    Hope this helps....
    1
    Thank you, no, you're not butting in. I appreciate your feedback. I have tried mount rw on es explorer, but I will try your method with the cx explorer in a few hours here. On the es explorer, even after mounting rw, it is showing that I don't have permission, that's why I was asking for the best way to do this, because that way didn't work for me. I didn't know if there was a better method.
    That is unusual....

    I've mentioned it before, but again you should confirm & double-check that your root manager (Magisk most likely) has it that those apps are given "superuser" access, not denied, and/or you should see some sort of toast notification when you launch the root explorer apps. Most of the time (at least with Magisk, it's been a long time since I used SuperSU and Kingroot), there is a prompt to "grant" access -- I have mine automatically set.

    Your other apps that require root work right (although one can easily run root apps without root and only run into issues when doing specific particular usage)? If anything, have you checked any root checker apps -- make sure you're getting all you can out of your root access....?