gnirehtet icon indicating copy to clipboard operation
gnirehtet copied to clipboard

Internet coming in via wireless issue

Open BigDogBoy opened this issue 6 years ago • 1 comments

One of the games I (and am currently having issues with, when reverse tethering) play, has to have a report, that Internet is coming in via wireless. I wonder if you could implement a fix for that, in the future, so the (or any other device running android) phone, is fooled into thinking that Internet coming in, by way of the tunneled connection(s), is coming via wireless.

BigDogBoy avatar Aug 17 '19 04:08 BigDogBoy

Problem Summary Some Android apps (like the game mentioned) require the device to report that the internet is coming in via Wi-Fi, not USB or VPN. When using Gnirehtet, Android thinks it’s on a VPN connection—not Wi-Fi—so the app refuses to work properly.

Why This Happens Apps often check the active network type using Android’s ConnectivityManager.

Gnirehtet uses a VPN interface (TUN) to redirect traffic, which:

Does not register as Wi-Fi

May cause apps (especially games or video apps) to block connections or show “no internet”

Some apps are also region-locked or anti-cheat protected, and may block VPN usage intentionally.

Possible Workarounds

  1. Use “Fake Wi-Fi” Xposed Modules (requires root): If your device is rooted, you can use:

Xposed + FakeWifiConnection module Tricks Android and apps into thinking you're on Wi-Fi even when using a VPN or USB.

Also try:

Magisk modules like Wi-Fi Bonding

ADB shell commands (below) on rooted devices:

settings put global wifi_on 1 2. Disable App’s VPN Detection (Advanced & risky): Use tools like Shamiko, LSPosed, or XPrivacyLua to hide VPN usage from specific apps.

Again, requires root and advanced config.

  1. Modify Gnirehtet to Register as Wi-Fi (Theoretical): Could involve:

Spoofing system connectivity broadcasts

Modifying the NetworkCapabilities reported by the TUN interface

This would require modifying AOSP or system services — not practical for most users.

Current Limitation As of now, Gnirehtet cannot spoof Wi-Fi natively because Android’s system APIs don’t allow third-party VPNs to register as Wi-Fi. Only OEMs or system-level apps can spoof this behavior.

Feature Request Summary Requested Enhancement:

"Make the tunneled USB connection appear to apps as if it’s a real Wi-Fi connection."

Feasibility:

Not feasible without root access or modifying the Android OS, due to system security limitations.

Final Suggestion If this is critical for your use case:

Root your device

Use Xposed + FakeWifiConnection module

Disable all other network interfaces (cellular, real Wi-Fi)

Launch Gnirehtet and your app again

VaradGupta23 avatar Jul 15 '25 06:07 VaradGupta23