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

Unable to clean cache for some apps #1359

Open
SohanRay opened this issue Aug 7, 2024 · 12 comments
Open

Unable to clean cache for some apps #1359

SohanRay opened this issue Aug 7, 2024 · 12 comments
Labels
Automation Accessibility service related bug Something isn't working as expected c: AppCleaner needs info/repro 🤔 Needs more information (from OP?) to be acted upon

Comments

@SohanRay
Copy link

SohanRay commented Aug 7, 2024

Describe the bug
When using the app to automatically clear cache for all apps , including system apps using accessibility service,its unable to clear cache for Chrome, Phonepe UPI, Shadow fight 4 game in Android.

To Reproduce
Steps to reproduce the behavior:
Use appcleaner in the sd maid app and keep setting to clear cache for system apps also.

Expected behavior
should clear cache for all apps

Smartphone (please complete the following information):

  • Device: OnePlus 12R
  • OS: Android 14
  • Root status - not rooted
  • SD Maid 2/SE version - v1.1.2-rc0

Debug log
If you can reproduce the bug, record the event in a debug log.

Screenshots/Video
If applicable, add screenshots or a video if it helps to explain your problem.

Additional context
Add any other context about the problem here.

@SohanRay SohanRay added bug Something isn't working as expected triage This ticket needs to be sorted and labeled. labels Aug 7, 2024
@d4rken d4rken added needs info/repro 🤔 Needs more information (from OP?) to be acted upon c: AppCleaner Automation Accessibility service related and removed triage This ticket needs to be sorted and labeled. labels Aug 7, 2024
@d4rken
Copy link
Member

d4rken commented Aug 7, 2024

Are you able to clear the caches manually? Without root SD Maid only presses the "Clear cache" button, if clicking that makes has no effect, then the issue is with the system's clear cache routine.

Other common causes: The app are recreating the files fast, the files are in use, or the files did get deleted, but the system doesn't update the cache size information.

@SohanRay
Copy link
Author

SohanRay commented Aug 7, 2024 via email

@d4rken
Copy link
Member

d4rken commented Aug 7, 2024

Please provide a debug log of this:
https://github.com/d4rken-org/sdmaid-se/wiki/Bugs#debug-log

If you don't clean all apps, but just prses the problematic ones in SD Maid, does it also not work?

I wonder if the screen looks different, or maybe the system takes longer to calculate sizes 🤔

@SohanRay
Copy link
Author

SohanRay commented Aug 7, 2024 via email

@d4rken
Copy link
Member

d4rken commented Aug 7, 2024

It's unfortunately not possible to send attachments to GitHub via Email.

@SohanRay
Copy link
Author

SohanRay commented Aug 7, 2024

Here's the log.
eu.darken.sdmse_logfile_1723020579486.zip

@SohanRay
Copy link
Author

SohanRay commented Aug 7, 2024 via email

@d4rken
Copy link
Member

d4rken commented Aug 8, 2024

Thanks for the logfile.

This looks like a system issue, the system is not returning screen information for the apps that are skipped:

2024-08-07T08:50:23.423Z  V/SDMSE:AutomationService: Waiting for windowRoot...
2024-08-07T08:50:23.676Z  V/SDMSE:Automation:Service: Providing windowRoot: null
2024-08-07T08:50:23.676Z  V/SDMSE:AutomationService: Waiting for windowRoot...
2024-08-07T08:50:23.930Z  V/SDMSE:Automation:Service: Providing windowRoot: null
2024-08-07T08:50:23.930Z  V/SDMSE:AutomationService: Waiting for windowRoot...
2024-08-07T08:50:24.185Z  V/SDMSE:Automation:Service: Providing windowRoot: null
2024-08-07T08:50:24.186Z  V/SDMSE:AutomationService: Waiting for windowRoot...
2024-08-07T08:50:24.439Z  V/SDMSE:Automation:Service: Providing windowRoot: null
(...)

Are you able to clear these apps if you just select them individually in SD Maid? Maybe the system is getting overloaded 🤔

@SohanRay
Copy link
Author

SohanRay commented Aug 8, 2024

Nope. Even if I select them individually, I am unable to clear the cache using SD maid. Is it system issue or system compatibility issue? Because I was using the old SD maid (paid for that one too), until just 2 days ago, and it worked fine for all apps!

@SohanRay
Copy link
Author

Confirmed . Sd maid 1 works without issues but sd maid 2 fails to clear cache for a number of applications .

@d4rken
Copy link
Member

d4rken commented Aug 10, 2024

I don't see a reason why it would work for SDM1 and not SDM2, the code is not the same but similar.

Also there is no app specific handling in AppCleaner. So if it works for one app, but not the other app, there must be a difference between them in the system.

I'm currently out of ideas, do you spot any difference between the apps that work and that don't?

@SohanRay
Copy link
Author

SohanRay commented Aug 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation Accessibility service related bug Something isn't working as expected c: AppCleaner needs info/repro 🤔 Needs more information (from OP?) to be acted upon
Projects
None yet
Development

No branches or pull requests

2 participants