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

Need help for android #316

Closed
mnaveedpaki opened this issue Jul 9, 2024 · 7 comments
Closed

Need help for android #316

mnaveedpaki opened this issue Jul 9, 2024 · 7 comments

Comments

@mnaveedpaki
Copy link

mnaveedpaki commented Jul 9, 2024

Describe the goal

I want to implement wstunnel for wireguard on android.
I am developing wireguard vpn app on android studio but it is not working in some countries due to their firewall.

Describe what does not work

I have compiled binary files for all android architecture but every time it shows an error segmentation fault
Maybe I am not following the correct way. If there is any guide available please mention it.

Describe your wstunnel setup

Desktop (please complete the following information):

  • OS: android
@erebe
Copy link
Owner

erebe commented Jul 9, 2024

You may want to check this issue #292 (comment)

The android binary should be packageable inside an android app.

Beside that i can't help you much, don't have experience in android développement

@mnaveedpaki
Copy link
Author

I have tried wstunnel on termux, it works on termux but there is no implementation guide available for android studio or how to implement in android app.

@mnaveedpaki
Copy link
Author

You may want to check this issue #292 (comment)

The android binary should be packageable inside an android app.

Beside that i can't help you much, don't have experience in android développement

can you just guide me how can i generate .so files?

@erebe
Copy link
Owner

erebe commented Jul 13, 2024

I don't think you can generate a .so out the project, because there is no library declared.
I should refacto the project to split the code between a lib and a binary using thid lib, for it to be possible.

So my take is that you only can if you invoke the binqry/exec it from your app.

But again, i am no an droid developper so take it with a grain of salt.

@mnaveedpaki
Copy link
Author

i can not invoke binqry/exec from the app because android security does not allow to execute binqry/exec directly.
You need .so shared files.

@mnaveedpaki
Copy link
Author

On server side it is implemented. is there any way how can i implement on android?
can i use websocket?

@mnaveedpaki
Copy link
Author

I did it myself.
Thanks for this awesome project

@erebe erebe closed this as completed Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants