Closed cburschka closed 7 years ago
Yes, some apps (including PlayStore, apparently) only check whether there is wifi or mobile data, but not any other kind of connectivity.
Sorry if I'm writing offtopic, but this behaviour is exactly what I get in my nexus 5 with AOSP 7.1. On the other hand, recently I have seen (unexpectedly) something different, with a Samsung Galaxy J2 Prime, stock android 6.0.1, and even without data nor wifi on all apps go through gnirehtet (play store, google apps, everything...). So I ask, is there any log I could get from the samsung phone so that to clarify why does it work there and then try to port it for everyone else?
The problem is probably related to setAsUnderlyingNetwork()
.
@gilcu3 If you know how to dev on Android, maybe you could check its behavior on your devices?
Sorry @rom1v I'm don't know how to dev on Android, I could follow steps if you provide them though, I have basic knowledge on java, adb, linux...
Its good enough to turn on your mobile data, even though your phone using gnirehtet. Your data wont reduce even you turn it on
I know, and being rooted I can even do fancy stuff as automating the process. But what if there is no coverage or I have no sim, (and have no hotspot available)? Those situations are indeed happening sometimes :|
On devices where the Play Store does not work correctly with gnirehtet, does this page appear as offline or online?
I loaded the page using chrome, and it shows:
You must go offline to view this page. Enable airplane mode.
I enabled airplane mode, and it shows the same. So it appears online. Anyway chrome can open any page through gnirehtet, only apps like Inbox and Play Store don't work
@rom1v Today the Play Store app updated to version 8.1.73.S-all [0] [FP] 165518514, and now I get internet in the play store through gnirehtet, working perfectly :)
Great 👍
This shows that it is a problem in the applications themselves, so I'm closing this issue.
Hi just wondering if you could close another 5 topics so people wondering how the hell this project is supposed to be issued will know as a genuine fact that you have no interest in having a usable project here. Could you close everything? That'd be great. Hey, I have an idea. How about being absolutely no help whatsoever. Thank you
Hi just wondering if you could close another 5 topics
If more duplicates are posted, yes, I will close them as duplicate.
how the hell this project is supposed to be issued will know as a genuine fact that you have no interest in having a usable project here
Are you talking about the Google Play issue?
How about being absolutely no help whatsoever. Thank you
You're welcome.
That wasn't my proudest moment. Appreciate your humor. Believe it or not I've been sober for awhile but, I guess I can still be a little....irrational...when tired and crabby. Still working on that self-awareness thing, obviously.
I'll be honest it feels good knowing I was sober and can't just like shrug and be like "um, I'm an asshole when I'm drunk ad nauseum x 1000 times" and yep that was just me being a kinda whiney bitch who should have hung it up a few hours earlier.
I just activated Mobile Data and solved the problem, installing the apks from google play with gnirehtet!!!!
Edit: If u have a rooted phone, use the Fake Wifi Reworked xposed module and it should work
@rom1v This issue seems to have other implications. Does gnirehtet setup VPN connection different than other apps ( e.g. https://github.com/itrump/shadowsocksRss/tree/master/android) ?
Play Store works as expected with those VPN apps except gnirehtet. All downloads are pending for a network connection. However, if a download is already running, switching to gnirehtet VPN works fine.
All these are tested on a Xiaomi6 phone with MIUI 10 9.1.24, Android 8
There is also a related issue. When opening netease-music without logging in, under gnirehtet network, it says "there is no network available", however after logging in, it works fine. (it's a Chinese spotify-like app https://www.coolapk.com/apk/com.netease.cloudmusic )
@amosbird
If you want to investigate, you could compare:
At first glance, I don't see any obvious difference that could explain that is works on ShadowSocksR but not in Gnirehtet.
@rom1v thanks. Comparing to ssr I removed setAsUndernlyingNetwork();
and it works as expected
netease-music works fine too
Comparing to ssr I removed
setAsUnderlyingNetwork();
and it works as expected
This is surprising, because the purpose of setAsUnderlyingNetwork();
was to make the application aware of connectivity. When I implemented it, it worked better with than without for many applications.
What is the point of Gnirethtet, when major Apps do not work with it? Wouldn't it make more sense to collaborate with the Anroid developers?
Comparing to ssr I removed
setAsUnderlyingNetwork();
and it works as expectedThis is surprising, because the purpose of
setAsUnderlyingNetwork();
was to make the application aware of connectivity. When I implemented it, it worked better with than without for many applications.
can someone give patched files or something for beginers who cant build it
Comparing to ssr I removed
setAsUnderlyingNetwork();
and it works as expectedThis is surprising, because the purpose of
setAsUnderlyingNetwork();
was to make the application aware of connectivity. When I implemented it, it worked better with than without for many applications. c99b1a7#diff-10904a1cf9037d4d44f3e5f5c7e492c8R75can someone give patched files or something for beginers who cant build it
may I kindly second this request. Google Play Store is the ONLY app here that does not find Internet via gnirehtet and complains about "No connection" :(
Greetings.
A workaround for the apps that do not work: Condition: You must have at least 2G network available.
Turn on mobile data.
In network settings, set the "Preferred network type" to 2G/3G. (If this option is not in the settings, call *#*#4636#*#*, click on Phone information and set Preferred network type to "GSM only".)
Optional (to prevent any data usage): Block apps' access to mobile connection in the settings. For Android 11: Settings > Apps & Notifications > YouTube (an example app) > Mobile data & Wi-Fi > Enable mobile connection (turn off this option). For me there is also a quicker way to disable all apps' network access at once via so called Mobile manager; this may differ from phone to phone, though.
It is also possible to skip the 2. step and do the third step for all apps. I thank all developers and contributors for this program.
Regards, Matej \ \ Device details: ZenFone 8, Android 11, stock References: Preferred Network Types Explained
@OP4LIFE neat, thank you - will test asap. Which ROM do you use, or if stock, with which phone have you tested this?
[UPDATE]: verified working even on my old phone with Android 7.1.1 👍
The original comment is now updated and includes device details.
@rom1v thanks. Comparing to ssr I removed
setAsUndernlyingNetwork();
and it works as expected
maybe a switch then passed a command line would make sense here?
Greetings.
A workaround for the apps that do not work: Condition: You must have at least 2G network available.
- Turn on mobile data.
- In network settings, set the "Preferred network type" to 2G/3G. (If this option is not in the settings, call ##4636##, click on Phone information and set Preferred network type to "GSM only".)
- Optional (to prevent any data usage): Block apps' access to mobile connection in the settings. For Android 11: Settings > Apps & Notifications > YouTube (an example app) > Mobile data & Wi-Fi > Enable mobile connection (turn off this option). For me there is also a quicker way to disable all apps' network access at once via so called Mobile manager; this may differ from phone to phone, though.
It is also possible to skip the 2. step and do the third step for all apps. I thank all developers and contributors for this program.
Regards, Matej Device details: ZenFone 8, Android 11, stock References: Preferred Network Types Explained
not working in tiktok
Not sure if this is a bug in the Play Store, but I generally find that updates can't be downloaded if wifi and data are both turned off. Instead of using the relay, the app will claim there is no connection available.
Briefly enabling the mobile data connection makes it work, and thereafter I can disable it again to download the updates via gnirehtet...