-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: It is impossible to open termux's files in another apps. #7437
Comments
Have you tried |
Sorry, looks like I am stupid, but I really did not see |
The You can drop the You can also pass Edit: |
I did not even think to judge :) |
Lolz ;) Yeah, additionally pass |
Ok. But I need to know if it will let me do that. But did not see anything about write permissions. |
The |
Thank you. Looks like it will work in my case. I will check it a bit later. |
You are welcome. Good luck! |
Should I know anything else about sharing Unix socket? |
In my case it was
I think now I can try to share Unix socket. Thank you very much. |
Is this the reason why I can't find termux files on my phone with zarchiver |
@Deligt4l No. |
@Deligt4l Termux stores files in private directory which normally can by accessed only either by Termux itself or root user. Other apps can access Termux files only via special Android APIs called "Storage Access Framework". See https://wiki.termux.com/wiki/Internal_and_external_storage#Access_Termux_from_a_file_manager for examples on how to access Termux home directory in SAF-using applications. |
Ok. I figured out how to deal with regular files. But when I am trying to pass there Unix socket there is a problem in a receiver app:
If I get it right it opens file with a regular |
I think it is also possible to connect/bind sockets after modifying this function: |
The I don't have much idea on how Moreover, whatever design is finally decided, be it this or some other if you don't want to use p.s My responses can take time, often days and weeks, lot of things going on. |
Closing since opening files is actually possible. |
@agnostic-apollo I meant openFile can check if Anyway I think I found another solution. But anyway thank you very much for help. |
That should be doable.
You can already write if you pass
You can directly read the file with
That is probably not going to be possible across processes due to permission issues, check here.
Welcome. |
Actually it is not possible. ContentProvider checks if path starts with
I'm already trying to use a solution described in this link. |
The |
Problem description
I tried a few ways of opening file in another apps but none of them worked.
What steps will reproduce the bug?
What is the expected behavior?
Files inside Termux's file system should be openable in other apps.
System information
The text was updated successfully, but these errors were encountered: