Fixed
Status Update
Comments
rg...@google.com <rg...@google.com> #2
It might help to give a little more detail in the repro steps; for example a Nexus 6 running 7.1.2 (shamu-userdebug N2G05) fits the description but while connected to any of several different VPNs on Wifi or 4G it is still able to download things from Play Store without problem.
Specifically could you help narrow down the steps with:
* What exact build numbers and devices can you confirm this reproduced on?
* Which VPN apps can you confirm this reproduced on?
* What fields does the VpnService.Builder have set when creating the connection? (ie. is DNS explicitly set to 8.8.8.8 or fall-through, are any apps excluded from the network, etc.)
* What kind of network is the phone connected to? Is it ipv4-only?
A bugreport from adb would answer about half of this straight away if you are able to take one.
ad...@google.com <ad...@google.com>
ad...@google.com <ad...@google.com>
ad...@google.com <ad...@google.com>
lo...@covenanteyes.com <lo...@covenanteyes.com> #3
Working on more info - coming soon.
pe...@googlemail.com <pe...@googlemail.com> #4
Same problem with IPv6Droid. The issue might not be related to DNS at all, but could be a bug to detect required connectivity. I.e. an active VPN seems to fool DownloadManager to believe, no WLAN was available.
Regarding your questions: one device is Asus ZenPad, software detais see atachment. Here, Downloads simply seem to stay queued until VPN is switched off.
Another device is Sony Xpera Z3+, Android 7. Here you even get flickering in the notification bar, the Download arrow appearing for a split second every second or so.
The behaviour is triggered by any application using DownloadManager, so it seems.
Please refer to the code onhttps://github.com/pelzvieh/IPv6Droid/blob/1.0_Maintainance/IPv6Droid/src/main/java/de/flyingsnail/ipv6droid/android/VpnThread.java
Regarding your questions: one device is Asus ZenPad, software detais see atachment. Here, Downloads simply seem to stay queued until VPN is switched off.
Another device is Sony Xpera Z3+, Android 7. Here you even get flickering in the notification bar, the Download arrow appearing for a split second every second or so.
The behaviour is triggered by any application using DownloadManager, so it seems.
Please refer to the code on
lo...@covenanteyes.com <lo...@covenanteyes.com> #5
* What exact build numbers and devices can you confirm this reproduced on?
See attached screenshot.
* Which VPN apps can you confirm this reproduced on?
Covenant Eyes (https://play.google.com/store/apps/details?id=com.covenanteyes.androidservice&hl=en_US )
An active test account has been made with username: GoogleIssueTest and password: googletest1
* What fields does the VpnService.Builder have set when creating the connection? (ie. is DNS explicitly set to 8.8.8.8 or fall-through, are any apps excluded from the network, etc.)
We are a tunnel using a patented technology, rather than VPN.
DNS servers in order: 8.8.8.8, 8.8.4.4
Routes in order: 8.8.8.8, 8.8.4.4
Additionally, we obtain net.dns1 and net.dns2 using the system runtime. If either or both are IPv4 and valid, we add them as routes as well.
Since identifying the Android bug, we've already added several packages to the VPN disallow list to prevent issues, however we can't exclude everything.
Disallowed packages: com.android.vending, com.google.android.gms, com.google.android.gms.drive, com.google.android.apps.docs,com.google.android.gm
* What kind of network is the phone connected to? Is it ipv4-only?
WiFi at the time of bug report capture, but bug occurs on cellular also.
Testing with Google Photos:
- Install Covenant Eyes
- Sign in using test account
- Complete all onboarding steps
- Open Google Photos
- Find a photo that is stored on your online account only
- Download photo to device
Expected:
Photo download is successful to device
Actual:
DownloadManager icon briefly appears and disappears in status bar.
Download fails.
Upon deletion of Covenant Eyes, the DownloadManager usually completes the queued downloads.
See attached screenshot.
* Which VPN apps can you confirm this reproduced on?
Covenant Eyes (
An active test account has been made with username: GoogleIssueTest and password: googletest1
* What fields does the VpnService.Builder have set when creating the connection? (ie. is DNS explicitly set to 8.8.8.8 or fall-through, are any apps excluded from the network, etc.)
We are a tunnel using a patented technology, rather than VPN.
DNS servers in order: 8.8.8.8, 8.8.4.4
Routes in order: 8.8.8.8, 8.8.4.4
Additionally, we obtain net.dns1 and net.dns2 using the system runtime. If either or both are IPv4 and valid, we add them as routes as well.
Since identifying the Android bug, we've already added several packages to the VPN disallow list to prevent issues, however we can't exclude everything.
Disallowed packages: com.android.vending, com.google.android.gms, com.google.android.gms.drive, com.google.android.apps.docs,
* What kind of network is the phone connected to? Is it ipv4-only?
WiFi at the time of bug report capture, but bug occurs on cellular also.
Testing with Google Photos:
- Install Covenant Eyes
- Sign in using test account
- Complete all onboarding steps
- Open Google Photos
- Find a photo that is stored on your online account only
- Download photo to device
Expected:
Photo download is successful to device
Actual:
DownloadManager icon briefly appears and disappears in status bar.
Download fails.
Upon deletion of Covenant Eyes, the DownloadManager usually completes the queued downloads.
ad...@google.com <ad...@google.com> #6
Are you able to reproduce the issue on Pixel/Nexus device as well?
If yes, then please share bug report for it as well.
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
Please upload the files to Google Drive and share the folder to android-bugreport@google.com, then share the link here.
If yes, then please share bug report for it as well.
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
Please upload the files to Google Drive and share the folder to android-bugreport@google.com, then share the link here.
ad...@google.com <ad...@google.com> #7
We have passed this to the development team and will update this issue with more information as it becomes available.
lo...@covenanteyes.com <lo...@covenanteyes.com> #8
I do not have a Pixel/Nexus on hand and can try to get one if needed.
Otherwise keep us posted.
Thank you.
Otherwise keep us posted.
Thank you.
lo...@covenanteyes.com <lo...@covenanteyes.com> #9
Any updates on this?
ng...@gmail.com <ng...@gmail.com> #10
Happens on my pixel 2 connected to WiFi. My work laptop is connected to a VPN (via Lan) on the same network
ia...@gmail.com <ia...@gmail.com> #11
I use OpenVPN and figured out that if I only enable it for certain apps and use it, then the rest works.
Seems to avoid the Download Manager issue.
Seems to avoid the Download Manager issue.
br...@gmail.com <br...@gmail.com> #12
I use a pixel 2xl on the latest update and can not download attachments on the Gmail while openvpn is active.
ha...@gmail.com <ha...@gmail.com> #13
Comment
ha...@gmail.com <ha...@gmail.com> #14
Remove
mo...@istraresearch.com <mo...@istraresearch.com> #15
This issue is also happening with Checkpoint Capsule VPN Client application.
[Deleted User] <[Deleted User]> #16
This issue is also happening with Netskope app, the same exact way, a lot of device impacted in our enterprise:
- Samsung Galaxy J5 2017
- Android 8.1
Any update?
- Samsung Galaxy J5 2017
- Android 8.1
Any update?
ma...@gmail.com <ma...@gmail.com> #17
From what I've been reading up on this subject, and my tests with Adblock VPN software, as soon as ANY VPN connection is established, ANY downloads made through DownloadManager will fail.
If the app downloads data by itself, like a game updating itself, or (for some odd reason) Google Play updating apps, this issue will not occur.
However, the moment any VPN is connected, no downloads DownloadManager is in charge of will finish, including loading previews and attachments on GMail.
It would be nice to at least have an acknowledgment of the issue, and if/when we can expect updates on it, since it has been over 6 months and not a peep from Google thus far.
If the app downloads data by itself, like a game updating itself, or (for some odd reason) Google Play updating apps, this issue will not occur.
However, the moment any VPN is connected, no downloads DownloadManager is in charge of will finish, including loading previews and attachments on GMail.
It would be nice to at least have an acknowledgment of the issue, and if/when we can expect updates on it, since it has been over 6 months and not a peep from Google thus far.
ia...@gmail.com <ia...@gmail.com> #18
I've discovered how to avoid it. At least with OpenVPN but waited long
enough to see if anyone from Android cared to fix it.
When I use OpenVPN I can access my private network and also carry any
operation outside the VPN without being routed through the VPN.
I mean, if I use WhatsApp or Opera browser they work and they perform
directly, they are not going through my private network to the internet.
All but Download Manager.
With OpenVPN one can select to "use it for all apps but.." or "use only for
selected apps"
With the later option I've configured it to be used only work with the
remote terminal, file explorer, browser and SIP client.
Every other app work and it does not interfere with Download Manager.
Regards
David
On Tue, Jan 15, 2019, 13:39 <buganizer-system@google.com wrote:
enough to see if anyone from Android cared to fix it.
When I use OpenVPN I can access my private network and also carry any
operation outside the VPN without being routed through the VPN.
I mean, if I use WhatsApp or Opera browser they work and they perform
directly, they are not going through my private network to the internet.
All but Download Manager.
With OpenVPN one can select to "use it for all apps but.." or "use only for
selected apps"
With the later option I've configured it to be used only work with the
remote terminal, file explorer, browser and SIP client.
Every other app work and it does not interfere with Download Manager.
Regards
David
On Tue, Jan 15, 2019, 13:39 <buganizer-system@google.com wrote:
[Deleted User] <[Deleted User]> #19
Seen on a Pixel running Android 9.
First spotted trying to download an attachment via gmail (with an operational VPN service), next confirmed with a minimal test app directly using the DownloadManager. If there is a VpnService running, the DownloadManager fails DNS resolution:
```
2019-01-22 16:46:59.532 6437-9150/? D/DownloadManager: [909] Starting
2019-01-22 16:46:59.598 6437-9150/? W/DownloadManager: [909] Stop requested with status HTTP_DATA_ERROR: Unable to resolve host "unsplash.com ": No address associated with hostname
2019-01-22 16:46:59.604 6437-9150/? D/DownloadManager: [909] Finished with status WAITING_TO_RETRY
```
I'm having trouble crafting a test that directly specifies an IP address and bypasses DNS. With an https URL it fails to connect (IIRC I tried a lower level test which complained about the cert not matching). Trying http, it complains `Cleartext HTTP traffic tounsplash.com not permitted`, which is somewhat odd b/c I get that even if I explicitly set `android:usesCleartextTraffic="true"`, and a call to `NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()` returns true. Which makes me even more suspicious that the DownloadManager is doing something weird.
First spotted trying to download an attachment via gmail (with an operational VPN service), next confirmed with a minimal test app directly using the DownloadManager. If there is a VpnService running, the DownloadManager fails DNS resolution:
```
2019-01-22 16:46:59.532 6437-9150/? D/DownloadManager: [909] Starting
2019-01-22 16:46:59.598 6437-9150/? W/DownloadManager: [909] Stop requested with status HTTP_DATA_ERROR: Unable to resolve host "
2019-01-22 16:46:59.604 6437-9150/? D/DownloadManager: [909] Finished with status WAITING_TO_RETRY
```
I'm having trouble crafting a test that directly specifies an IP address and bypasses DNS. With an https URL it fails to connect (IIRC I tried a lower level test which complained about the cert not matching). Trying http, it complains `Cleartext HTTP traffic to
[Deleted User] <[Deleted User]> #20
Looking for a workaround, does anyone knows if it's possible with some device policies (in Google G Suite or any third party MDM/EMM) to configure Android device to avoid VPN for DownloadManager?
Thank you!
Thank you!
[Deleted User] <[Deleted User]> #21
You can give apps permission to bypass the VPN by calling `allowBypass()` when creating the VpnService:
https://developer.android.com/reference/android/net/VpnService.Builder.html#allowBypass()
However, this just gives apps the ability to do this. There is no way that I know of to force it.
And specifically, this does **not** solve the problem with the DownloadManager. It's not entirely clear to me if that's because the DownloadManager does not wish to bypass the VPN, or maybe if it would work if this bug were fixed.
However, this just gives apps the ability to do this. There is no way that I know of to force it.
And specifically, this does **not** solve the problem with the DownloadManager. It's not entirely clear to me if that's because the DownloadManager does not wish to bypass the VPN, or maybe if it would work if this bug were fixed.
no...@gmail.com <no...@gmail.com> #22
Just wrote a proof of concept. The Connectivity Manager seems buggy, the (active) network returned doesn't route packets.
ad...@google.com <ad...@google.com> #23
The issue has been fixed and it will be available in a future build.
[Deleted User] <[Deleted User]> #24
can you be more specific when you talk about "future build"?
Thank you
On Fri, May 31, 2019, 12:42 PM <buganizer-system@google.com> wrote:
Thank you
On Fri, May 31, 2019, 12:42 PM <buganizer-system@google.com> wrote:
--
This e-mail transmission may contain legally privileged and/or
confidential information. Please do not read it if you are not the intended
recipient(s). Any use, distribution, reproduction or disclosure by any
other person is strictly prohibited. If you have received this e-mail in
error, please notify the sender and destroy the original.
Please consider
the environment before printing this email.
ar...@gmail.com <ar...@gmail.com> #25
Fraud
ag...@gmail.com <ag...@gmail.com> #26
This is happening on Android 9.0 as well. And it happens whenever VPN is on, even in full tunnel mode. It can be easily reproduced with any app like TunnelBear, Lookout, Packet Capture etc. that sets up VPN.
STR:
In Play Store settings, set Download over "Wifi Only".
With Wifi On, connect to VPN and try to download any app from Play Store.
It stays in Downloading state.
Clearly, this is because the Connectivity manager returns VPN as the active connection type, which is treated by Play Store as a Non-Wifi type.
STR:
In Play Store settings, set Download over "Wifi Only".
With Wifi On, connect to VPN and try to download any app from Play Store.
It stays in Downloading state.
Clearly, this is because the Connectivity manager returns VPN as the active connection type, which is treated by Play Store as a Non-Wifi type.
ad...@google.com <ad...@google.com> #27
The bug is fixed in Android Q. This patch cannot be applied to O or P.
[Deleted User] <[Deleted User]> #28
Can you please let us if AndroidQ will also support Man in the Middle, means if we need to decrypt packet and do the analysis.
ma...@wandera.com <ma...@wandera.com> #29
Is there any known workaround for this on currently affected Android versions (aside from using #addDisallowedApplication(String) for the whole package names one by one)?
ia...@gmail.com <ia...@gmail.com> #30
Depends. OpenVPN allows to control which apps.
On Fri, Nov 8, 2019, 12:10 <buganizer-system@google.com> wrote:
On Fri, Nov 8, 2019, 12:10 <buganizer-system@google.com> wrote:
va...@wandera.com <va...@wandera.com> #31
The question is whether it is possible not to whitelist apps from the VPN, and yet have them working properly.
Many apps serve as a content manager and can download files, many MDMs push apps to devices, Play Store manages downloading and installing apps.
I'd say it is a major bug and asking everyone to update to Android Q which has been released quite recently does not seem viable for many businesses.
I would like to understand what exactly the issue was and how it was fixed, please.
Many apps serve as a content manager and can download files, many MDMs push apps to devices, Play Store manages downloading and installing apps.
I'd say it is a major bug and asking everyone to update to Android Q which has been released quite recently does not seem viable for many businesses.
I would like to understand what exactly the issue was and how it was fixed, please.
dd...@gmail.com <dd...@gmail.com> #32
>The bug is fixed in Android Q
That's either not the case, or it has regressed. I see this issue still happening in Android 11 on a Pixel 2.
That's either not the case, or it has regressed. I see this issue still happening in Android 11 on a Pixel 2.
il...@gmail.com <il...@gmail.com> #33
Not fixed. I experience it on Android 13.
Description
Our Android app uses the VPN Service as a DNS-only split-tunnel. By setting the VPN Service DNS servers, we add only these same DNS servers as VPN routes.
e.g. VPN Service DNS server: 8.8.8.8, VPN Service route: 8.8.8.8
Many apps such as Google Play Store, Google Play Services, Gmail, Google Drive, and many more use the Android DownloadManager to handle networking tasks. Any app making use of DownloadManager will fail to to download files while connected to VPN Service interface.
As a result, many customers experience difficulties while using our app's VPN.
Android OS: 7.0+
Device: Any
Reproduction:
1. Install app using VPN Service.
2. Connect to VPN Service interface.
3. Download app in Google Play Store.
Reproducibility:
10/10
Severity:
High
Frequency:
High
Expected Results:
App downloads successfully.
Actual Results:
App fails to download.