erebe / wstunnel

Tunnel all your traffic over Websocket or HTTP2 - Bypass firewalls/DPI - Static binary available
BSD 3-Clause "New" or "Revised" License
3.9k stars 345 forks source link

Need help for android #316

Open mnaveedpaki opened 2 weeks ago

mnaveedpaki commented 2 weeks ago

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):

erebe commented 2 weeks ago

You may want to check this issue https://github.com/erebe/wstunnel/issues/292#issuecomment-2211833902

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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

mnaveedpaki commented 1 week ago

I did it myself. Thanks for this awesome project