Skip to content
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

Can you give me a contact email? #2

Open
wlynxg opened this issue Dec 7, 2023 · 11 comments
Open

Can you give me a contact email? #2

wlynxg opened this issue Dec 7, 2023 · 11 comments

Comments

@wlynxg
Copy link

wlynxg commented Dec 7, 2023

No description provided.

@neilyoung
Copy link
Owner

foreverneilyoung at googlemail dot com

@neilyoung
Copy link
Owner

Why did you ask?

@wlynxg
Copy link
Author

wlynxg commented Dec 8, 2023

Why did you ask?

I took a look at calling net.ListenUnix on Android, and there was indeed a permission problem. I looked at the Android code and found that LocalSocket and LocalServerSocket can be created in the Android SDK. What I want from your email is that if there is any progress, I will let you know via email so that you don’t have to bother other people by replying to previous issues.

@neilyoung
Copy link
Owner

OK, thanks. I'm available. Indeed, LocalSocket is obtainable under Android w/o further permissions. I just added INTERNET

@neilyoung
Copy link
Owner

But again: This problem is most likely not caused by my net.Listen, but by a lot of other calls to net, issued from the LiveKit SDK

@neilyoung
Copy link
Owner

For instance the failing call to "set answer" ends finally in the PION WebRTC SDK, which uses net calls...

@neilyoung
Copy link
Owner

Do you think there will be a progress in this matter soon? I'm about to abandon go and gomobile at all. Looks like dead beef.

@wlynxg
Copy link
Author

wlynxg commented Dec 20, 2023

Do you think there will be a progress in this matter soon? I'm about to abandon go and gomobile at all. Looks like dead beef.

I feel that if you must use unix socket, it is better to use c which is more convenient. You can also use cgo. If you just want a local network you can create a localhost socket and this will work

@neilyoung
Copy link
Owner

I'm sorry, but you did misunderstand this case. The problem is in GOMOMBILE or GO, sure, but it is not UnixSocket. This works. I can open the socket, the GO module can listen to it, I can communicate with the GO module. 100% in Python, 100 % in Android <= 10, not on Android > 10 in due to this permission thing.

A couple of days ago I opened a discussion in PION SDK, which might better explain the problem I have.

pion/webrtc#2636

@neilyoung
Copy link
Owner

neilyoung commented Jan 4, 2024 via email

@wlynxg
Copy link
Author

wlynxg commented Jan 5, 2024

Happy New Year To You,
I think go's advancement of gomobile is relatively slow, and to some extent I think gomobile may be difficult to fix this problem. Because this problem is strongly related to the Android version, this problem will only appear after Android 11, but the Android version can only be obtained through the Android interface.
On the other hand, if a new security policy appears in Android later, then go will need to add new policies. This kind of thing is difficult to control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants