Shell - write file to external storage - permission denied
Posted: 2021-12-10, 22:15 UTC
Hello.
Is there any way to allow a shell command to write files to external storage?
I have a button that runs this command:
It works on internal storage, but on external storage I get "permission denied" in every dir except:
/Android/data/com.ghisler.android.TotalCommander
I am not rooted.
Running Android version 7.
Total Commander has been granted "Storage" permission in Android settings.
Is there any way to allow a shell command to write files to external storage?
I have a button that runs this command:
Code: Select all
sh ls > filelist.txt
/Android/data/com.ghisler.android.TotalCommander
I am not rooted.
Running Android version 7.
Total Commander has been granted "Storage" permission in Android settings.