shamanec / GADS-devices-provider

Set up iOS/Android devices for remote control with GADS UI and Appium test execution
MIT License
31 stars 4 forks source link

reverse USB tethering #47

Open janisblaus opened 3 months ago

janisblaus commented 3 months ago

Hey, great project!

I have a specific use case - I would need to reverse tether iOS so the device gets its network connection from USB, the main goal is to proxy that connection through socks5 or anything else while maintaining WDA control.

I'm now planning to try to use iOS -> Lightning cable -> USB -> RJ-45 connection which is reported to be working but dunno how I will be able to connect to WDA then, but that would be the least of the problems as my main goal would be to have a way to catch the traffic and route it via remote socks5 server.

In your opinion, how impossible this idea is?

Could there be a better way how to achieve socks5 on ios device without using VPN traffic apps like shadowrocket?

shamanec commented 3 months ago

Thanks!

I am not quite familiar with socks5 but I think that iOS does not have native support for it and I would assume there is no way to do it without some 3rd party apps like you mentioned. Whats the big idea? You just need to catch the device internet traffic? What about basic HTTP proxy instead of socks5?

In general WDA can work without internet. For example in the context of this project in particular I just forward the WDA port over USB to the host and access it through the host network, it should work even if the the device has no internet connection at all.

Considering accessing WDA over the network when using reverse tethering, if the WDA port is forwarded like I mentioned above, then it should work as well I believe. If no port forwarding is used, I am not really sure but I would assume WDA will be available on the IP address assigned by the reverse tethering but I haven't used anything like this in a while and I don't want to mislead you :D