- 30 Mar, 2018 1 commit
-
-
Mygod authored
-
- 29 Mar, 2018 1 commit
-
-
Max Lv authored
Fix building with Windows. #1684
-
- 26 Mar, 2018 1 commit
-
-
Max Lv authored
-
- 24 Mar, 2018 5 commits
- 23 Mar, 2018 10 commits
-
-
Mygod authored
-
Mygod authored
-
Mygod authored
-
Mygod authored
-
Mygod authored
-
Mygod authored
-
Max Lv authored
Actually use underlying network
-
Mygod authored
-
Mygod authored
This commit should fix the problem where VPN connection is viewed as metered connections on Android P DP1. However as I only have an emulator to test, I can't tell if it really works but it should. An interesting observation is that the developer can call setUnderlyingNetworks(arrayOfNulls(1)) to make the VPN connection always unmetered. This is more of a quick hack instead of a real fix. Source: https://android.googlesource.com/platform/frameworks/base/+/adbf1d0/services/core/java/com/android/server/connectivity/Vpn.java#312 One may ask whether it's possible to fix this issue for Android 8.1. The short answer is not that I know of. After some intensive source code reading, I found out that this is the commit that "breaks" whether VPN is metered for Android 8.1: https://android.googlesource.com/platform/frameworks/base/+/43d2a1700b6eb1d804924c6a1e5e0161a13a5348%5E%21/ The key is that isActiveNetworkMetered() used to return getActiveNetworkInfo().isMetered() and now it uses the more up-to-date API getActiveNetwork(). However, getActiveNetworkInfo() ignores VPN connections while getActiveNetwork() prefers VPN connection. And since NetworkCapabilities for VPN Network is always metered by default, this ultimately causes the bug. One might be able to get around this bug by somehow calling NetworkAgent.sendNetworkCapabilities in the correct context. Fix #1666.
-
Mygod authored
-
- 22 Mar, 2018 2 commits
-
-
forDream authored
-
forDream authored
Signed-off-by:
forDream <gam2046@users.noreply.github.com>
-
- 17 Mar, 2018 1 commit
-
-
Mygod authored
-
- 09 Mar, 2018 3 commits
- 06 Mar, 2018 1 commit
-
-
Max Lv authored
-
- 02 Mar, 2018 1 commit
-
-
Max Lv authored
-
- 28 Feb, 2018 1 commit
-
-
Mygod authored
-
- 25 Feb, 2018 2 commits
- 24 Feb, 2018 1 commit
-
-
Max Lv authored
-
- 22 Feb, 2018 1 commit
-
-
Mygod authored
-
- 18 Feb, 2018 2 commits
- 17 Feb, 2018 1 commit
-
-
Mygod authored
-
- 15 Feb, 2018 1 commit
-
-
Mygod authored
-
- 14 Feb, 2018 2 commits
- 11 Feb, 2018 3 commits