Question "Clear Photos trash files to speed up your device" notification every day... I have no photos

Kcris

Member
Jan 1, 2025
7
4
3
I have a Huawei P20 lite with android version 9. The notification comes from the preinstalled "Optimizer" app, which cannot be uninstalled and cannot have it's notifications disabled (you can turn them off in the settings, but the notifications will still happen). My photos app is empty. Its trash is empty. I've cleared every cache in Optimizer. I can't find any large files looking through the Files app (even showing hidden folders). I've tried clearing more files in SD Maid.

This problem started happening a few months ago. I think I may have been transferring files on/off the device shortly before it happened but I cannot recall.

I really don't want to root my device just to delete the optimizer app, but I will if it comes to that. I find this daily notification very annoying.
 
Welcome to AC!
Try this method to disable that app


 
Welcome to AC!
Try this method to disable that app


Thank you so much! I never imagined getting rid of the app would be that easy.
 
Ok, turns out the Optimizer app is actually responsible for some features I didn't realize. Like blocking calls from strangers, changing app notification settings, and closing background apps. Disabling it isn't an option. As soon as I re-enabled it the notification came back.

Is there any way to disable just the notifications from the app using abd? I tried looking for a command online and the closest thing I could find is:

Code:
.\adb shell pm revoke <APP NAME> <PERMISSION NAME>

The only problem is that I can't seem to find out what permission allows push notifications. Before I start trying permissions at random, I figured I'd ask if anyone happens to know. I think the permissions are different from the ones online because it's a huawei. Here's what I get by doing
Code:
.\adb shell pm list permissions -g
 
Ok, turns out the Optimizer app is actually responsible for some features I didn't realize. Like blocking calls from strangers, changing app notification settings, and closing background apps. Disabling it isn't an option. As soon as I re-enabled it the notification came back.

Is there any way to disable just the notifications from the app using abd? I tried looking for a command online and the closest thing I could find is:

Code:
.\adb shell pm revoke

The only problem is that I can't seem to find out what permission allows push notifications. Before I start trying permissions at random, I figured I'd ask if anyone happens to know. I think the permissions are different from the ones online because it's a huawei. Here's what I get by doing
Code:
.\adb shell pm list permissions -g
I'm not sure for permission in adb CMD
But in apps list in settings you might be able to
 
Strange you can turn them off and still go through
Well, now that I realize Optimizer controls my notifications it's less surprising. I'm not able to disable or edit any notifications without it. But allowing me to uncheck its notifications and just ignoring it instead of greying out the option feels like an insult.
 
  • Like
Reactions: Laura Knotek
Well, now that I realize Optimizer controls my notifications it's less surprising. I'm not able to disable or edit any notifications without it. But allowing me to uncheck its notifications and just ignoring it instead of greying out the option feels like an insult.
Yeah understand but those system apps are like that though either completely disabled or enable
 
Can a mod unmark this thread as solved?

Apparently the following is supposed to work, but I get an error saying that permission doesn't exist.
adb shell pm revoke APP_PACKAGE_NAME android.permission.POST_NOTIFICATIONS

Of the permissions I posted earlier, I tried disabling every single one of them with "notification" in the name, and for each I got the message java.lang.SecurityException: Package com.huawei.systemmanager has not requested permission [PERMISSION]
 
Can a mod unmark this thread as solved?

Apparently the following is supposed to work, but I get an error saying that permission doesn't exist.
adb shell pm revoke APP_PACKAGE_NAME android.permission.POST_NOTIFICATIONS

Of the permissions I posted earlier, I tried disabling every single one of them with "notification" in the name, and for each I got the message java.lang.SecurityException: Package com.huawei.systemmanager has not requested permission [PERMISSION]
I fixed your title
 
  • Like
Reactions: IsHacker
Solved! So apparently "I have no photos" wasn't quite true. My photos app trash file was empty, as was the photos app. But it turns out google photos has a cache that grows every time you open a photo and never it never clears. Clearing all my google photos app data freed 7 GB (over 20% of my entire phone storage).

(I might've realized this sooner if when Optimizer showed me my apps arranged by size it didn't hide google photos in "system apps" at the very bottom)
 
  • Like
Reactions: IsHacker

Trending Posts

Forum statistics

Threads
955,326
Messages
6,964,419
Members
3,163,254
Latest member
roygrammel