TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.29k stars 1.57k forks source link

Cannot open root files #2205

Open anonymous-user opened 3 years ago

anonymous-user commented 3 years ago

Describe the bug

Amaze is unable to properly open root files for editing

To Reproduce Steps to reproduce the behavior:

  1. Open a text file file within root. For example: /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml
  2. Attempt to open the file
  3. A toast message with error will appear. The error varies depending on the app.

Expected behavior The file should open properly in the selected app

Screenshots

https://imgur.com/a/F6SG1K5

Smartphone (please complete the following information):

anonymous-user commented 2 years ago

Is there any update on this? I can use the Amaze text editor to open the files but not a third-party text editor (QuickEdit+). I am now running Android 12 and Amaze File Manager 3.7.0.

VishnuSanal commented 2 years ago

I can use the Amaze text editor to open the files but not a third-party text editor (QuickEdit+).

Is this a problem with Amaze, then?

anonymous-user commented 2 years ago

I can use the Amaze text editor to open the files but not a third-party text editor (QuickEdit+).

Is this a problem with Amaze, then?

Ok I decided to do more tests. I realized that QuickEdit did not have root access so I thought that was the issue. After granting root access I was still not able to open the file in QuickEdit from Amaze. However I was able to open the file from QuickEdit. So I think the issue is somewhere between Amaze and QuickEdit. I would need to try both more file managers and text editors.

VishalNehra commented 2 years ago

I can use the Amaze text editor to open the files but not a third-party text editor (QuickEdit+).

Is this a problem with Amaze, then?

Ok I decided to do more tests. I realized that QuickEdit did not have root access so I thought that was the issue. After granting root access I was still not able to open the file in QuickEdit from Amaze. However I was able to open the file from QuickEdit. So I think the issue is somewhere between Amaze and QuickEdit. I would need to try both more file managers and text editors.

Can you try one more thing? Go to properties of your file in amaze, change permissions to rw-r-r then open the file and see if it works. If the above doesn't work - Here's the thing. Android allows cross app file access through uris.. we temporarily give permission to other app to access the file based on the given uri. It's possible that android has a limitation to not be able to persist these permissions to root files.

anonymous-user commented 2 years ago

Ok you are right. It does not work. The permissions for a root file are reset afterwards. However I did test a couple more file managers.

Root Explorer fails. Solid Explorer works. Total Commander works. Material Files works.

So it does seem possible to make it work.