XayahSuSuSu / Android-DataBackup

DataBackup for Android 7.0+
https://DataBackupOfficial.github.io
GNU General Public License v3.0
3.36k stars 124 forks source link

[Bug] Apps, that will be backed up, will be killed #210

Open Senliast opened 8 months ago

Senliast commented 8 months ago

Describe the bug Apps, that will be backup app, and are running in background will be force closed. These can be for example, Tasker, MegaSync, and other important apps. Some of them will not be restarted even after restart of the device and needs to be restarted manually.

To Reproduce Steps to reproduce the behavior:

  1. Run a backup of an app that is running in background. In best case, the app should show a notification. Then you can immediatelly see, that notification disappears and app gets killed.

Expected behavior The app should continue running.

Screenshots nv

Smartphone (please complete the following information):

Additional context nv

XayahSuSuSu commented 8 months ago

This is to prevent data changing while packaging them, or the data may be broken.

gprn commented 8 months ago

Same here, e.a Afwall+, Muzei or also Lucid Launcher force close after backup, need to restart the phone and launch manually these apps.

Senliast commented 8 months ago

This is to prevent data changing while packaging them, or the data may be broken.

Okay, is there may be any way to work around it without stopping the apps? An idea would be, after a file is backed up - check it against the original one with a checksum, and if they differ - back it up again, until they are same.

skrimix commented 7 months ago

Maybe pausing app processes would work? Like how Neo Backup does it (related FAQ entry and code).

XayahSuSuSu commented 7 months ago

Maybe pausing app processes would work? Like how Neo Backup does it (related FAQ entry and code).

pausing seems not working:(, I've tried it before

XayahSuSuSu commented 3 months ago

Hmm, maybe we can add an option for each app to decide killing