Termux write permissions pretext:
as gmail no longer allows me to send zip files, i have been looking into other ways to get my java source directories from android to laptop and back again, depending whether I'm at home or not (folder hierarchy must be preserved). I have been trying to set up git on my android phone and have been using termux as the command shell to do this.
the problem:
I am unable to create a directory for which BOTH termux and the java ide have read write access. I have setup storage permissions in termux. If the IDE can write termux can't, and in another location termux can write but the IDE can't.
What I need is a folder location that both apps have full read write permissions. (I am not too bothered if these permissions extent to other folders)
I do not want to root my device.
Nokia 7.2 Android 10
I have achieved a solution by making the project folder in the main storage (/emulated/0/ProjectName) instead of on the sd card.
In termux i navigated to (...ProjectName/src/com/package/) and ran 'mkdir test'. In the ide i then created 'test.txt' in the newly made test directory. This all worked fine, although i have not linked git to this directory it proves that write access is there for both apps.
Before i was attempting to use a folder in the sd card which would not allow the permissions. I did not change anything else regarding settings and permissions between these two attempts, but some were changed prior to the initial attempt in the sd card, which may have played a role. If you are having the same issue feel free to comment and i will go through all other settings i changed before this. or maybe someone with better knowledge of android can comment as to why this worked.
edit: quote: &quot;Some phones prevent third party apps from accessing the sd card but with the appropriate permissions all apps can access the internal storage.&quot;