gnirehtet icon indicating copy to clipboard operation
gnirehtet copied to clipboard

Internet working only in the browser

Open EvgeniDel opened this issue 4 years ago • 6 comments

After updating to Android 11 (and MIUI 12.5) I have Internet connection only when using my browsers. All other apps don't have access to the Internet. Any ideas how to fix that?

EvgeniDel avatar Jun 16 '21 15:06 EvgeniDel

https://github.com/Genymobile/gnirehtet/issues/393#issuecomment-848556356

rom1v avatar Jun 16 '21 15:06 rom1v

#393 (comment)

I have Internet when connected to wifi, but I want to use gnirehtet only. I didn't have this issue before the update.

EvgeniDel avatar Jun 16 '21 16:06 EvgeniDel

OK, then probably the apps check for wifi/mobile access, and the old MIUI ROM returned true when a VPN was enabled and now it returns false (just a guess).

In any case, I don't know what gnirehtet could do.

rom1v avatar Jun 16 '21 17:06 rom1v

Can confirm this is also an issue with Android 5

robtech21 avatar Jun 24 '21 14:06 robtech21

OK, then probably the apps check for wifi/mobile access, and the old MIUI ROM returned true when a VPN was enabled and now it returns false (just a guess).

So this relates to #393 @najum98 and #349 @simonferndriger I experience the same thing on Android 10 custom ROM. Some apps work, some do not.

gnirehtet is a wonderful great tool!!! It would be nice to have a solution for this issue. I understand an app needs to think it has WiFi/mobile access in order to work with gnirehtet. So I thought... can we simulate an existing WiFi connection while the physical WiFi chip is off, in order to make the app think it has WiFi access?

I looked for a solution and found two apps: https://github.com/chylek/FakeWifi https://github.com/lemonsqueeze/FakeWifiConnection Both are based on the Xposed Framework, which is discontinued and not available for newer Android versions. So I tried the apps with the EdXposed framework and the 2nd app FakeWifiConnection works for me on a rooted device.

Solution

  1. install Magisk app (newest version Magisk.apk from https://github.com/topjohnwu/Magisk/releases/)
  2. 4th symbol in the Magisk app: Modules -> install from memory: riru-v25.4.4-release.zip from https://github.com/RikkaApps/Riru/releases
  3. 4th symbol in the Magisk app: Modules -> use the online search to install "Riru -EdXposed" v0.5.2.2 from solohsu, MlgmXyysd
  4. install EdXposedManager.apk from https://github.com/ElderDrivers/EdXposedManager/releases go into EdXposedManager, the app should show a blue checkmark with "EdXposed Framework is active", provide root access when needed, maybe system reboot is needed
  5. install FakeWifiConnection.apk from https://github.com/lemonsqueeze/FakeWifiConnection/raw/master/FakeWifiConnection/bin/FakeWifiConnection.apk
  6. go into EdXposedManager, menu top left, modules, activate Fake Wifi Connection, maybe system reboot is needed
  7. go into FakeWifiConnection, select apps you want to fake WiFi for, save
  8. use gnirehtet and be happy :-)

I hope this helps others to utilize gnirehtet to its full potential. Faking a WiFi connection while the physical WiFi chip is off is a nice workaround and exactly what I want. It would be nice to have a newer and more compatible app, maybe without framework, to fake WiFi and make this process easier.

evolu1 avatar Jul 02 '21 09:07 evolu1

Thank you @evolu1 All apps are online via gnirehtet & Fake Wifi Connection, except Google Play Store, even after showing all apps incl. system apps and ticking ALL of them apart from gnirehtet itself.

All apps updated in Play Store via Wi-Fi before. Even updating Google Play Store to the latest 27.6.18-19 did not change that.

Nokia 6.1 with LineageOS 18.1 (Android 11), Magisk 24.1 + Zygisk, latest LSPosed Zygisk edition, Fake Wifi Connection v.1.2 (I doubt downgrading to the now outdated Riru + EdXposed would change anything in that regard).

If there is a working solution, I'd be thrilled to hear about it 👍

[EDIT] see https://github.com/Genymobile/gnirehtet/issues/328#issuecomment-1040942818

LeeBinder avatar Feb 04 '22 02:02 LeeBinder