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

AdGuard does not create a local VPN. Protection does not start #4269

Closed
juliazero opened this issue Nov 5, 2022 · 22 comments
Closed

AdGuard does not create a local VPN. Protection does not start #4269

juliazero opened this issue Nov 5, 2022 · 22 comments

Comments

@juliazero
Copy link

juliazero commented Nov 5, 2022

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • [*] I am running the latest version
  • [*] I checked the documentation and found no answer
  • [*] I checked to make sure that this issue has not already been filed

Issue Details

  • AdGuard version:
    • v3.6.10 (51)
  • Filtering mode:
    • Local VPN
  • Device:
    • OnePlus 8T, OnePlus 6T
  • Operating system and version:
    • Android 13
  • Root access:
    • Yes

Expected Behavior

Enabling protection and VPN service

Actual Behavior

Protection does not start, and neither does the VPN service.

Screenshots

Screenshot:
screen-20221105-163939.mp4

Additional Information

The notification shows:
Preparing to start protection. Please wait...

@maxikuzmin
Copy link
Contributor

@Daviteusz it's because the "Kill switch" is enabled. You need to disable it for AdGuard VPN and enable it for AdGuard

@maxikuzmin maxikuzmin changed the title Can not enable protection Problem starting with Kill switch turned on Nov 8, 2022
@juliazero
Copy link
Author

juliazero commented Nov 8, 2022

@maxikuzmin Restore the old title, because now it is wrong

I did not have Adguard VPN enabled, I just had it installed.

After killing the Adguard, it started working again until next device reboot.
This is not the first time this has happened. The problem always occurs on Android 12+ stock or custom rom.

Android 12+ has some problems with the permissions controller (removes granted permissions after tens of minutes or hours, or reboot) Several users have already reported this problem when I spoke to them about it.

Problem not occurs on A11.

@maxikuzmin maxikuzmin changed the title Problem starting with Kill switch turned on AdGuard does not create a local VPN. Protection does not start Nov 9, 2022
@maxikuzmin
Copy link
Contributor

@Daviteusz let's take a look at your logs, go deeper into the situation. I don't have this on repeat. Did you confirm the setup of a local VPN during the installation?
Here's what we need you to do:

  • Collect the debug log as it's explained here;
  • Remember the exact time when the issue was reproduced. We will need it to find the corresponding records in the log file;
  • Additionally, capture the system bug report after reproducing the issue. Here's the instruction;
  • Send both files to devteam@adguard.com. Mention the Github issue number and the exact time when the issue was reproduced.

@latsson
Copy link

latsson commented Nov 10, 2022

I had the same problem on my Pixel 6 Pro. Reboots didn't help. Swiping AdGuard didn't help.
I managed to fix it by doing a force stop on the app info view (like what Daviteusz wrote), then when trying to start AdGuard I got the system dialog to approve, then I had to click once more to turn it on.

@maxikuzmin
Copy link
Contributor

@latsson can you also send the logs using the instructions I wrote above?

@juliazero
Copy link
Author

@maxikuzmin Sorry, I switched back to android 11, and I can't reproduce this issue for now. Maybe @latsson will send needed logs.
I will ask more users to check this, maybe they also have this problem.

@maxikuzmin
Copy link
Contributor

@latsson any news?

@maxikuzmin
Copy link
Contributor

@Daviteusz has the problem not happened again?

@maxikuzmin
Copy link
Contributor

@Daviteusz @latsson for the moment, I’m closing this issue. You can reopen the issue in the future if the problem persists

@juliazero
Copy link
Author

juliazero commented Dec 8, 2022

@Daviteusz has the problem not happened again?

The problem repeated, I sent logs to email.

I can't reopen issue.

@maxikuzmin
Copy link
Contributor

@Daviteusz okay, we will check it

@maxikuzmin
Copy link
Contributor

@Daviteusz check that you don't have a VPN profile in the system settings, in the VPN section. If there is one from Adguard, uninstall it and try to run it again

@juliazero
Copy link
Author

@maxikuzmin When protection can't start, the VPN profile is not present there. Killing the app helps, but after several device reboot the problem comes back again.

I also tried reinstalling adguard, configuring cleanly, but it didn't help and problem returned after several device reboots.

@maxikuzmin
Copy link
Contributor

@Daviteusz we need some time, please wait a little longer

@maxikuzmin
Copy link
Contributor

@Daviteusz probably a problem with the OnePlus firmware. Doesn't sound like our problem. We don't control the state of the system window, we just request it from the OS. If it doesn't appear, the issue is with the firmware manufacturer. Try updating the firmware to the latest version if the manufacturer has released the appropriate firmware

@juliazero
Copy link
Author

juliazero commented Jan 9, 2023

OxygenOS11-13 (Android 11-13):

  • No problem

A11 Custom Roms (OOS11 FW):

  • No problem

Custom Roms A12-13 (OOS11 or 12 FW)

  • VPN sometimes doesn't start after restarting the device
    Tested on OnePlus 6T and 8T with root, mods and without mods and root

Custom Roms A13 QPR1 (OOS12 or 13 FW)

  • No problem so far
    I've currently been testing crDroid 13 (Android 13 QPR1) for the past two days and so far the VPN starts after device reboots.

The problem also occurs on other devices I tested:

  • Redmi 3S, Mi Mix 2S (Android 12.1)

It seems to be a problem of AOSP android 12 and 13 (before QPR1).

@admitrevskiy
Copy link

@Daviteusz hello!

If this looks like an AOSP issue, you'd better report the issue to the Google team: https://issuetracker.google.com/issues/new

Highly-likely they'll ask you to get a bugreport. You can follow this instruction: https://kb.adguard.com/en/android/solving-problems/logcat#capture-a-bug-report-from-a-device or use the adb bugreport command if you're familiar with ADB.

BTW can you check this issue with other VPN apps?

@maxikuzmin
Copy link
Contributor

@Daviteusz we solved your problem in the 3.6.11 Beta 1 update. Please update to this version and check it out. Let us know the result

@maxikuzmin
Copy link
Contributor

@Daviteusz any news?

@juliazero
Copy link
Author

juliazero commented Jan 19, 2023

I installed beta1 one hour after your message. I did about 20 reboots and it was OK but while I was writing this message, I did a reboot and...

And again applications lost access to all files...
In that case, it's definitely an android bug, not adguard.

Here new logs:
Logs have been deleted for privacy reasons.

Thanks for trying to solve this.

@maxikuzmin
Copy link
Contributor

@Daviteusz you are right, this problem is because of your firmware. You need to send a bug report to them.
I hope you manage to solve this problem.

@latsson
Copy link

latsson commented Feb 1, 2023

Sorry I never replied. I haven't used Github in a while 😄
I haven't noticed the problem on my Pixel Pro 6 ever since.

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

No branches or pull requests

5 participants