bmx666 / android-appcachecleaner

Android Cache Cleaner
GNU Affero General Public License v3.0
445 stars 33 forks source link

App doesn't clean my cache anymore.. it crashes into the main menu of the App. #296

Closed goS0Sog closed 2 weeks ago

goS0Sog commented 2 weeks ago

Hello!

I have a problem with the cleaning of the cache, it doesn't work anymore.

The scan for apps does work. But when I press the the clean bottom, then it goes back to the main menu.

The problem occured after few runnings, where it managed to open the App Infos (but didn't managed to clean the cache, only sometimes for one app in total (whyever only one ..). So I didn't managed to get it work properly.

In a previous version (where the clear data option didn't existed and the app where still in the google Playstore), it did worked for me for a while (untill they removed the app from Playstore). As it worked it was very nice and the only cache cleaner that did his job and not pseudo cleaning.

I do have a Xaomi handy and did set the settings to it. Also I costumized the clean bottoms to those that worked previously. All settings are the same as those where it worked.

I hope someone know where the problem could come from and help to fix it 🤞🏻

Thank you for the engagement of you!

Best greetings, Lorenz

bmx666 commented 2 weeks ago

Hi @goS0Sog , could you please install debug version and attach generated log here? (Just clean few apps)

https://github.com/bmx666/android-appcachecleaner/releases/download/v2.2.7/app-debug.apk

goS0Sog commented 2 weeks ago

appcachecleaner-log.txt

In this test it opened the app (YT) that should be cleaned. But didn't made any actions.

I manually cleaned the cache there while the app where running. Then I cancelled it by clicking the symbol.

Thats the log.

goS0Sog commented 2 weeks ago

Screenshot_2024-10-04-11-56-13-091_com miui securitycenter Screenshot_2024-10-04-11-56-16-573_com miui securitycenter Screenshot_2024-10-04-11-56-32-421_com miui securitycenter Those are the 3 steps the app would need to take.

goS0Sog commented 2 weeks ago

Screenshot_2024-10-04-11-57-48-777_com github bmx666 appcachecleaner debug

This are the settings. Idk, if u saw all this in the logs already, but I'll provide it anyway :)

bmx666 commented 2 weeks ago

Hi @goS0Sog, thanks for the log, seems Accessibility service didn't get full information about buttons, because it should:

android.widget.TextView:Daten löschen:com.miui.securitycenter:id/action_menu_item_child_text

According your log - null:

android.widget.TextView:Daten löschen:null

I will try to refresh View tree to wait ViewID

bmx666 commented 2 weeks ago

Hi @goS0Sog , please try the version below (remove .zip and install apk) app-debug.apk.zip

I will be glad if you can help me to provide "Clear data" log the same way, because it doesn't implemented yet for Xiaomi MIUI and I don't have any of these phones to create a valid scenario to remove user data.

goS0Sog commented 2 weeks ago

appcachecleaner-log (1).txt

The cache cleaner worked properly now again 🥳🥳

Here is the successful log (marked just two apps but works also with cleaning all :))

Can you send me the updated version here or update it in the F-Droid store?

Thank you for the quick fix and help <33

bmx666 commented 2 weeks ago

Hi @goS0Sog , new release v2.2.8 is ready

bmx666 commented 2 weeks ago

HI @goS0Sog , I created a new issue about "Clear data" for Xiaomi MIUI - #302

I will be glad if you can help me to provide "Clear data" log the same way, because it doesn't implemented yet for Xiaomi MIUI and I don't have any of these phones to create a valid scenario to remove user data.

goS0Sog commented 2 weeks ago

Hi @goS0Sog , new release v2.2.8 is ready

Alright, thank you a lot! I can't see it in F-Droid yet, but maybe it takes some time to get released :) 👍🏻

goS0Sog commented 1 week ago

Hello again, the debug App stopped working for me now again... It doesn't even give me a debug log anymore, it just closes to the main menu as before.

As I installed the debug app first it worked, but seems like it stops working after some time...

I attach a screen recording, where I show what happpens:

Uploading Screenrecorder-2024-10-11-08-27-12-901.mp4…

-> I open there clean cache of all apps and check all. Then I press the clean bottom.

So I think sadly I have to reopen this topic again.

Idk what could change over time that it doesn't work anymore.. or if a simulation of reinstalling the app without actually doing it and not to have to set up all settings again, is possible or could help?

Cleaning the cache of the app, or/and press the stop accessibility service and close app bottom didn't helped.

goS0Sog commented 1 week ago

Uploading Screenrecorder-2024-10-11-08-27-12-901.mp4…

Seemed it didn't uploaded before...

bmx666 commented 1 week ago

Hi @goS0Sog , videos didn't upload.

goS0Sog commented 1 week ago

Seems like it doesn't work that well :/

Here is a WeTransfer link: https://we.tl/t-AShGTQtvbV

bmx666 commented 1 week ago

Hi @goS0Sog could you try tip from README?

https://github.com/bmx666/android-appcachecleaner?tab=readme-ov-file#attention-%EF%B8%8F-huawei-and-xiaomi-smartphones-often-use-aggressive-battery-optimization-that-can-disrupt-communication-between-cache-cleaner-and-the-accessibility-service-preventing-them-from-working-as-expected-please-follow-the-steps-below

goS0Sog commented 6 days ago

The Stop Accessibility service bottom doesn't seem to work for me. (Also, if I spam this bottom, it starts to analyse all apps at some point, without me actually clicking this bottom.) I also disabled the energie mode for the app, so it can't interrupt the app..

bmx666 commented 6 days ago

@goS0Sog could you remove all release and debug versions of Cache cleaner and try fresh new release? Maybe Xiaomi UI blocked app somehow?