App management is very slow when changing App firewall settings
Please answer the following questions for yourself before submitting an issue
- [X] Filters were updated before reproducing an issue
- [X] I checked the knowledge base and found no answer
- [X] I checked to make sure that this issue has not already been filed
AdGuard version
4.6.1
Environment
- OS version: 14
- Device: Samsung Galaxy S24 Ultra
HTTPS filtering
- [X] yes, I do
Root access
- [ ] yes, I have it
Integration with AdGuard VPN
- [X] yes, I do
Routing mode
Local VPN
Ad Blocking
AdGuard Base filter, AdGuard Mobile Ads filter
Privacy
AdGuard Tracking Protection filter, AdGuard URL Tracking filter
Social
AdGuard Social Media filter
Annoyances
AdGuard Annoyances filter, AdGuard Cookie Notices filter, AdGuard Popups filter, AdGuard Mobile App Banners filter, AdGuard Other Annoyances filter, AdGuard Widgets filter, Adblock Warning Removal List
Security
Online Malicious URL Blocklist
Language-specific
No response
Other
AdGuard DNS filter
Which DNS server do you use?
Cloudflare DNS
DNS protocol
DNS-over-HTTPS
Custom DNS
No response
What Stealth Mode options do you have enabled?
No response
Issue Details
Steps to reproduce:
- Go-to app management
- Select an app, then go-to app firewall settings
- Enable or disable use wi-fi
- Go back It'll take about 40-60
Expected Behavior
It shouldn't take 40-60s.
Actual Behavior
It's taking around 40-60s
https://github.com/user-attachments/assets/38b27fe3-adc5-42e1-90cd-b5071699cc5e
Screenshots
Screenshot 1
Additional Information
No response
@shriganesh Thank you for reporting! We would like to take a look at the logs from your device, please follow the steps below.
-
Enable debug logging: Settings -> General -> Advanced -> Logging level -> Debug
-
Reproduce the issue, then remember the exact time when it happened
-
Collect logs: Settings -> General -> Advanced -> Export logs and system info
-
Send this file to [email protected]:
- mention the
5432number in the subject - specify the exact time when the issue occurred
- mention the
Hi,
I tried enabling debug logs, reproduced the issue. But when I tried exporting logs, it keeps failing. I tried several times and it keeps failing.
Thanks,
Shri
On Mon, Aug 19, 2024, 11:51 PM Diana @.***> wrote:
@shriganesh https://github.com/shriganesh Thank you for reporting! We would like to take a look at the logs from your device, please follow the steps below.
Enable debug logging: Settings -> General -> Advanced -> Logging level -> Debug 2.
Reproduce the issue, then remember the exact time when it happened 3.
Collect logs: Settings -> General -> Advanced -> Export logs and system info 4.
Send this file to @.***:
- mention the 5432 number in the subject
- specify the exact time when the issue occurred
— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2296388335, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666MI3WT5LG4H7OSU2LTZSHL45AVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGM4DQMZTGU . You are receiving this because you were mentioned.Message ID: @.***>
@shriganesh Please open Developer options screen in the device settings and make sure that the Don't keep activities option is disabled.
Hi,
I've verified and it's disabled only.
Thanks
On Fri, Aug 23, 2024, 3:40 AM Diana @.***> wrote:
@shriganesh https://github.com/shriganesh Please open Developer options screen in the device settings and make sure that the Don't keep activities option is disabled.
— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2305071227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666LUEVP6ZMOZSZ6GKRLZSYBAHAVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGA3TCMRSG4 . You are receiving this because you were mentioned.Message ID: @.***>
Hi,
I also tried reinstalling adguard, tried nightly builds. Still facing the same problem. One thing that I noticed is the problem appears only after I import my firewall rules.
I'll try exporting debug logs once again.
Thanks
On Fri, Aug 23, 2024, 7:50 AM Shri Ganesh @.***> wrote:
Hi,
I've verified and it's disabled only.
Thanks
On Fri, Aug 23, 2024, 3:40 AM Diana @.***> wrote:
@shriganesh https://github.com/shriganesh Please open Developer options screen in the device settings and make sure that the Don't keep activities option is disabled.
— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2305071227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666LUEVP6ZMOZSZ6GKRLZSYBAHAVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGA3TCMRSG4 . You are receiving this because you were mentioned.Message ID: @.***>
Hi,
I just tried exporting the logs again. And it failed again.
Thanks, Shri
On Fri, Aug 23, 2024, 9:30 AM Shri Ganesh @.***> wrote:
Hi,
I also tried reinstalling adguard, tried nightly builds. Still facing the same problem. One thing that I noticed is the problem appears only after I import my firewall rules.
I'll try exporting debug logs once again.
Thanks
On Fri, Aug 23, 2024, 7:50 AM Shri Ganesh @.***> wrote:
Hi,
I've verified and it's disabled only.
Thanks
On Fri, Aug 23, 2024, 3:40 AM Diana @.***> wrote:
@shriganesh https://github.com/shriganesh Please open Developer options screen in the device settings and make sure that the Don't keep activities option is disabled.
— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2305071227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666LUEVP6ZMOZSZ6GKRLZSYBAHAVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGA3TCMRSG4 . You are receiving this because you were mentioned.Message ID: @.***>
@shriganesh Alright then, let's try to sort out the crash first.
Please follow these steps:
-
Reproduce the crash, then remember the exact time when it happened
-
Collect a bug report in the system settings Device settings -> Developer options -> Bug report
(Note: it will take some time to collect the bug report, please wait until the bug report is completed.)
- Send this file to [email protected]:
- mention the
5432number in the subject - specify the exact time when the issue occurred
- mention the
Hi,
It's not actually crashing but it's just very slow and now my mobile battery is dying much faster (my mobile became unusable as filtering became unstable). So I reverted back to v4.5.2. after reverting I'm no longer facing any issues.
On Fri, 23 Aug, 2024, 8:33 pm Diana, @.***> wrote:
@shriganesh https://github.com/shriganesh Alright then, let's try to sort out the crash first.
Please follow these steps:
Reproduce the crash, then remember the exact time when it happened 2.
Collect a bug report in the system settings Device settings -> Developer options -> Bug report 3.
Send this file to @.***:
- mention the 5432 number in the subject
- specify the exact time when the issue occurred
— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2306583108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666KQHM3NSFR37YHEQIDZS3XT5AVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBWGU4DGMJQHA . You are receiving this because you were mentioned.Message ID: @.***>
@shriganesh The crash when exporting logs will be addressed in #5447, stay tuned!
@Versty Thanks. I'm looking forward for a fix as I'm stuck on v4.5. Any version above that is causing this slowness (v4.6.1, v4.6.2 and 2 nightly builds after that).
Was there any change done in 4.6.x and later?
I'm using Adguard in 2 other mobiles. And one of that is again Samsung. But 4.6.2 is working fine on those. Issue appears to happen only in 4.6.2 in S24 ultra (possibly after importing configuration).
I regularly backup and export my firewall rules in all my phones.
@shriganesh Would you mind resetting the AdGuard app to default settings and check if the issue persists with the default settings on the problematic device? It would help us a lot to find the root of this issue.
If so, please clear the app data in the system settings and let me know the result.
@shriganesh The crash during logs export is fixed in the latest nightly version. Please update AdGuard to 4.7 nightly 16 and collect debug logs as described in the https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2296388335
@shriganesh Would you mind resetting the AdGuard app to default settings and check if the issue persists with the default settings on the problematic device? It would help us a lot to find the root of this issue.
If so, please clear the app data in the system settings and let me know the result.
Yes. I've tried it already. It becomes slow only after I import my firewall rules backup. Until then it's reasonably fast.
@shriganesh The crash during logs export is fixed in the latest nightly version. Please update AdGuard to 4.7 nightly 16 and collect debug logs as described in the #5432 (comment)
Okay will do it in a couple of days.
I'm experiencing the exact same issue on my Galaxy S24. Once I add roughly 10 custom firewall rules, I experience a lot of lag interacting with the app, it's slow to open the different sections within the firewall module, slow to execute an action, etc. The more custom firewall rules I add the slower the app feels, to the point I can no longer even disable firewall notifications. I will toggle to disable a firewall rule notification and it will automatically toggle it right back. Downgrading back to version 4.5 solves all these issues. Avoiding version 4.6.x for now as I use the firewall heavily with many rules.
@shriganesh Have you sent the logs?
@ericzeez Hi! Is it possible for you to send the logs from latest (4.6.3) AdGuard version in order to help us find the cause?
If so, please follow the steps:
-
Enable debug logging: Settings -> General -> Advanced -> Logging level -> Debug.
-
Reproduce the problem, then remember the exact time when it happened.
-
Collect logs: Settings -> General -> Advanced -> Export logs and system info.
-
Send this file to [email protected]:
- include
[android]keyword and5432in the subject of your email - specify the exact time when the issue occurred
- include
@ericzeez @shriganesh Does this problem still occur on the latest beta (4.6.4 beta 1)?
I tried downloading beta from https://adguard.com/en/beta.html Is it the right URL? Because I downloaded and installed. It took over 5 mins to open the app. I only saw the Adguard splash screen for 5 mins. After a force stop, and a 5 min wait it finally opened. Within the app the version shows 4.6.4 beta 1
Well test it out and share an update. In the mean time if the version is incorrect, please share the URL to download the correct version from.
I tried 4.6.4 Beta 1.
It's still slow (probably slower than before). I enabled debug and log export failed just like last time ☹️
@shriganesh
It took over 5 mins to open the app. I only saw the Adguard splash screen for 5 mins. After a force stop, and a 5 min wait it finally opened. Within the app the version shows 4.6.4 beta 1
This is obviously a problem. We need an additional investigation to eliminate the cause.
How many firewall rules and statistics do you have in the application? Please provide screenshots of Statistics tab.
Here is the screenshot.
I've around 255 firewall rules. I vaguely remember after I imported them after reverting back to v4.5.x
@shriganesh Thank you!
@shriganesh Do you have any other customizations besides firewall rules?
@shriganesh Could you provide a system bug report from your device so we could have a better understanding on this issue?
Please follow the steps below:
- Launch AdGuard application and go to Settings tab
- Enable the
Auto-report crashesoption - Go to Advanced and set the
Logging leveltoDebug - Reproduce the problem (try to export logs), note current time
- Collect a system bug report according to this instruction
- Send this file to [email protected]:
- include
[android]keyword and5432in the subject of your email - specify the exact time when the issue occurred (step 4)
- include
@shriganesh Do you have any other customizations besides firewall rules?
Like which filters or something else? I've firewall with ad blocking, tracking protection, annoyance removal, DNS protection, browsing security with Adguard VPN integrated. But the VPN is almost always off.
@shriganesh Could you provide a system bug report from your device so we could have a better understanding on this issue?
Please follow the steps below:
Launch AdGuard application and go to Settings tab
Enable the
Auto-report crashesoptionGo to Advanced and set the
Logging leveltoDebugReproduce the problem (try to export logs), note current time
Collect a system bug report according to this instruction
Send this file to [email protected]:
- include
[android]keyword and5432in the subject of your email- specify the exact time when the issue occurred (step 4)
I'll try this. But can you tell me what the step 2 does? Also step 4 almost always failes for me. Is there any other workaround?
@shriganesh Most likely a crash occurs when you try to export logs. The option from step two sends us a detailed crash report so we could see the exact cause of the crash.
If step 4 fails, this is exactly what we need in order to figure out the cause of this behavior.
@Versty noted. I'll try it and share an update here. It's bit painful because I've to update Adguard, test and then revert it again. If I don't revert, my phone gets hot and battery dies quickly.
@shriganesh Have you sent the logs?