3 ms·
So basically, it's not practical to do this.
by jqpabc123 3y ago
So basically, it's not practical to do this.
- jeroenhd 3y agoI've done it to monitor my phone for weird traffic, but I wouldn't recommend it unless you're dedicated and willing to deal with janky tooling. Magisk + mitmproxy + Frida + an isolated WiFi network works pretty well for traffic monitoring. With mitmproxy you can also write scripts to fake APIs (which can help you with your attempt to fake the network connectivity status).
- jqpabc123 3y agoI'm looking to allow users with stock, unmodified software stack to easily connect to a local only wifi network with minimal headaches. Magisk, etc. is not an option.
- jeroenhd 3y agoWhat's keeping you from connecting to the WiFi? As far as I know, Android and iOS can connect to offline networks just fine. You may need to disable the "network quality" test for that particular network, but I'm pretty sure stock Android stay connected just fine.
- jqpabc123 3y agoIt can be done --- just not easily or intuitively. To start, you have to enable "airplane mode" on your android phone. This shuts down all communication. If you don't do this your phone will try to use your wireless service for all communication. Next, you have to selectively enable wi-fi. If there are any other wireless networks in the area that you connect to automatically, you have to disable them, otherwise, your phone will connect and use one of them first. Finally, with all other communication options disabled, you can connect to and force your phone to reluctantly use the local network with no internet access.