Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internet working only in the browser #397

Open
EvgeniDel opened this issue Jun 16, 2021 · 6 comments
Open

Internet working only in the browser #397

EvgeniDel opened this issue Jun 16, 2021 · 6 comments

Comments

@EvgeniDel
Copy link

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?

@rom1v
Copy link
Collaborator

rom1v commented Jun 16, 2021

#393 (comment)

@EvgeniDel
Copy link
Author

#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.

@rom1v
Copy link
Collaborator

rom1v commented Jun 16, 2021

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.

@robtech21
Copy link

Can confirm this is also an issue with Android 5

@evolu1
Copy link

evolu1 commented Jul 2, 2021

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.

@LeeBinder
Copy link

LeeBinder commented Feb 4, 2022

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 #328 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants