You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If SD Maid is launched while being backed up through Android's automatic backup tooling, then SD Maid may crash because when being launched while being backed up, the provided context is not our own app context, i.e. subclassed Application class, but a RestrictedContext provided by the system.
There are two issues due to this:
SD Maid will crash, because we are trying to do dependency injection and getting:
and up to Android 13 there was/is a bug that if we crash while being backed up, subsequent app launches still get the restricted context.
Potential solution would be to disable the auto backup and code a custom backup provider, but this is a lot of extra work. According to Google Play this is currently still a quite rare crash so we could also just ignore it 🤔
If SD Maid is launched while being backed up through Android's automatic backup tooling, then SD Maid may crash because when being launched while being backed up, the provided context is not our own app context, i.e. subclassed
Application
class, but aRestrictedContext
provided by the system.There are two issues due to this:
SD Maid will crash, because we are trying to do dependency injection and getting:
and up to Android 13 there was/is a bug that if we crash while being backed up, subsequent app launches still get the restricted context.
Potential solution would be to disable the auto backup and code a custom backup provider, but this is a lot of extra work. According to Google Play this is currently still a quite rare crash so we could also just ignore it 🤔
Also see
The text was updated successfully, but these errors were encountered: