Zend certified PHP/Magento developer

Android Reverse Tethering With Broken Radio

I have exactly the problem mentioned in this GitHub comment:

For my use case, this is a problem that cannot be worked around by connecting to WiFi. My phone’s antenna, or possibly a related component, is broken (water damage). Everything on the phone works well except mobile data, WiFi, Bluetooth, and GPS. Functions that require wireless connectivity are completely non-operative.

Gnirehtet works great on my phone for apps like Chrome; I can browse the web just fine when it’s running. Other apps that seem to be trying to intelligently detect when the phone is “connected”, including most messaging apps, still aren’t functional even with Gnirehtet connected.

I’m on Android 12.

I would be very curious to hear if anyone knows what might need to be done in Gnirehtet to make it work for my use case, where the workaround of connecting to (any) WiFi network is simply not an option.

For a reverse tethering app that connects your Android device to the Internet (see gnirehtet), how do I make it so that apps on a device with a broken radio antenna (no wifi, mobile connection etc) that query for connectivity are responded to with a connection available message.

I have tried adding setUnderlyingNetworks(...) when the VpnService is set up on gnirehtet but was not successful.

I have also searched for an adb command that might be able to fake a connection available response to apps on a device to little success.