sdmaid icon indicating copy to clipboard operation
sdmaid copied to clipboard

May you please add support for clearing cache of work profile installed apps by accessibility service?

Open 0xRustlang opened this issue 2 years ago • 0 comments

Hello

Thank you for this great work.

May you please add support for clearing cache of work profile installed apps by accessibility service?

I created a work profile with island app (that also can created with shelter app or such apps)

The problem i have is i can't clear cache of those apps that are installed in work profile.

As those apps (assuming user didn't disabled work profile + unfreezed those apps installed in it)

As those apps assuming two condition above is met, will become available in the apps list in both phone settings and also launcher (even custom launchers), i think you can implement this.

But probably you can't measure the storage space that their cache are used so i propose that:

  1. Don't enable this option by default and may be put it in advanced menu

  2. Also if it will be hard, i think you can show apps that sd maid are seeing in work profile and then let the user select what apps they want to get their cache cleared with accessibility service so you won't need to measure storage space taken by cache of those apps in work profile (as android won't let you probably).

Also you can check island api that will provide a specific permission using android permissions so the apps can implement usefull options for work profile apps.

Also i know sd maid can't clear the storage if it not be installed in work profile but because those apps that are installed in work profile, android won't show their accessibility permission so the user can activate it, i propose to do this part of app cleaner of work profile with the sd maid instance that is installed in owner account as it will clear so much storage and there isn't any other options for clearing it other than app ibfo page of those apps.

I hope i could explain it clearly enough but if my explanation is vague (because English is not my main language) let me now and clearify it.

Thank you very much. Best regards.

0xRustlang avatar Oct 07 '21 22:10 0xRustlang