Comments (2)
I suspect that something on your smartphone is causing this problem because it works on my devices, I have not receive other bug reports and I changed the code for "internet detection" a "long" time ago (07.05.2021 with version 73.1.3).
I see that you are using a VPN. Can you try it without it?
I narrowed the bug down to this part:
private fun isInternetAvailableNewWay(cm: ConnectivityManager): Boolean {
val activeNetwork = cm.activeNetwork ?: return false
val capabilities = cm.getNetworkCapabilities(activeNetwork) ?: return false
return capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) &&
capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)
}
This method evaluates to false/"no internet" if:
- ConnectivityManager.activeNetwork is null. According to the documentation this can happen, if there is no default network.
- ConnectivityManager.getNetworkCapabilities is null. According to the documentation this can happen, if the network is unknown.
- the current network doesn't have the
- NET_CAPABILITY_INTERNET (
Indicates that this network should be able to reach the internet.
) or - NET_CAPABILITY_VALIDATED (
Indicates that connectivity on this network was successfully validated. For example, for a network with NET_CAPABILITY_INTERNET, it means that Internet connectivity was successfully detected.
) capability.
- NET_CAPABILITY_INTERNET (
Maybe you have disabled the internet detection on your smartphone (afaik Android phones are pinging Google servers to detect, if they have access to the Internet)? Maybe something different?
from ffupdater.
You're right, of course, AFAICT. I'll open this with them. Thanks!
from ffupdater.
Related Issues (20)
- Where is Tor nightly? HOT 4
- Multiple updates from notification with already downloaded files installed first one every time. HOT 1
- Add lynket browser
- Failing to find update for FFupdater while running in background HOT 1
- "Delete APK after successful update" does not work anymore HOT 7
- Tor browser alpha fails constantly HOT 6
- Self-Updated to 79.1.1, Now All Apps are Marked Not Installed by FFU HOT 18
- This error occurred during Installation. HOT 3
- Crash when attempt Klar update HOT 2
- Chromium: "Available" version number is not consistent with "Installed" HOT 1
- Add kiwi browser dev
- Update loop with Brave browser HOT 14
- Tor Browser Alpha ”Temporary Network Failure” HOT 4
- Ignore background errors if a simple HEAD-request to main url is not successful
- Firefox Android CI links has been changed starting from version 126 HOT 6
- External download manager support HOT 2
- java.lang.IllegalArgumentException: Invalid path HOT 6
- Background download/update crash report HOT 5
- Please add a method to bypass the Google Play store update. HOT 9
- Use Mozilla CI instead of Github HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffupdater.