d4rken-org / sdmaid-se

SD Maid 2/SE is Android's most thorough cleaning tool.
https://play.google.com/store/apps/details?id=eu.darken.sdmse
GNU General Public License v3.0
2.32k stars 364 forks source link

ACS setup help on FOSS build (app ops) #728

Open MarkyMarkDE opened 8 months ago

MarkyMarkDE commented 8 months ago

If you are able to detect to which option you have to go after installing or update SDMaid SE on Android, following would be nice:

When you install or update SDMaid SE FOSS and open SDMaid SE UI, you will asked for activation of the assessibility mode and you click on the button in the UI, then you will be "directed" on the main setting for the accessibility mode but when you install new or update, you have to go to apps and click on SDMaid SE and on the upper right clicking on the tree dots and enable the "advanced" setting for SDMaid SE.

It would be nice and always useful if you are able to detect which option you must redirect, do it's more comfortable for a "normal" user.

d4rken commented 5 months ago

This is already implemented, is it not working?

Screenshot from 2024-01-25 13-05-49

There is no official API for this, so it might not work in every case but I think it's as good as it gets:

https://github.com/d4rken-org/sdmaid-se/blob/ecd8f2c18cd6a48ae9bd64c8bd384cc2519f8daa/app/src/main/java/eu/darken/sdmse/setup/automation/AutomationSetupModule.kt#L56-L78

The blue extra hint about the restrictions shows if the following conditions are met:

MarkyMarkDE commented 5 months ago

no, if you install sd-maid, and you click on e.g. "settings" or "grant access" for acessibility service or [...] you get the information that no app is found for this action