Closed TheDarkW3b closed 7 months ago
Actually you can move files to ~/storage/shared/some_dir
.
For this you just need to give termux storage permission via this command termux-setup-storage
Trying doing this and most probably it will work.
termux-setup-storage
doesn't work for me.
I did it by implementing a local webserver.
If you agree assign it to me under iwoc2024
termux-setup-storage
doesn't work for me. I did it by implementing a local webserver. If you agree assign it to me underiwoc2024
Okay we can use server method for now( we might replace it later ). I'm assigning this for you under IWOC2024
I think it should be labelled as hard. Finding the issue is a work in itself and then looking/implementing a optimized fix. Termux users can employ to achieve similar results without introducing new complexities such as allowing for storage and haven't used any third party library(which seems a lot of concern for you). Please analyse the PR and let me know
I think it should be labelled as hard. Finding the issue is a work in itself and then looking/implementing a optimized fix. Termux users can employ to achieve similar results without introducing new complexities such as allowing for storage and haven't used any third party library(which seems a lot of concern for you). Please analyse the PR and let me know
You are right, I labelled it as hard. Sorry for inconvenience caused.
When opening an HTML file through Termux on an Android device, you may encounter permission issues related to the Termux sandbox environment and the security policies of the Chrome browser.
Termux operates within a restricted environment on Android, and certain actions that require broader permissions are restricted.
So this line eventually fails(it reaches the last case in android as both above conditions becomes false):
Due to permission, one just can't hit the following url
content://com.termux.files/data/data/com.termux/files/home/jee_counsellor/output/<fileName>.html
Security Policies of Chrome:
Solution could be: