Android-DataBackup icon indicating copy to clipboard operation
Android-DataBackup copied to clipboard

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

Open Senliast opened this issue 2 years ago • 9 comments

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):

  • Device: POCO F2 Pro
  • OS: crDroid Android 14
  • Version: crDroid 10.1 (Android 14)

Additional context nv

Senliast avatar Jan 31 '24 18:01 Senliast

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

XayahSuSuSu avatar Feb 01 '24 03:02 XayahSuSuSu

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

gprn avatar Feb 02 '24 16:02 gprn

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.

Senliast avatar Feb 02 '24 19:02 Senliast

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

skrimix avatar Feb 18 '24 20:02 skrimix

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 avatar Feb 19 '24 01:02 XayahSuSuSu

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

XayahSuSuSu avatar Jun 07 '24 05:06 XayahSuSuSu

How can you be sure backuped data will be exactly same the original data if app keeps running and changing data? At backup moment, the app must stop completely. Once it finish, just reopen the app!

VD171 avatar Jan 29 '25 09:01 VD171

How can you be sure backuped data will be exactly same the original data if app keeps running and changing data? At backup moment, the app must stop completely. Once it finish, just reopen the app!

Sorry, but i dont agree. As already described, the apps dont restart by itself even after reboot of the device. And they completely not work - messangers dont send push notifications, cloud sync apps dont sync. To open every one to ensure that its working is not an option. Other backup apps implemented it somehow.

Senliast avatar Jan 29 '25 21:01 Senliast

How can you be sure backuped data will be exactly same the original data if app keeps running and changing data? At backup moment, the app must stop completely. Once it finish, just reopen the app!

Sorry, but i dont agree. As already described, the apps dont restart by itself even after reboot of the device. And they completely not work - messangers dont send push notifications, cloud sync apps dont sync. To open every one to ensure that its working is not an option. Other backup apps implemented it somehow.

Who cares if you didn't agree? I just said how things are. If you start backuping data of a running app, the data will be changed before the backuping ends. THIS IS OBVIOUS. Just open the app again after the backuping finish and don't bother the dev.

VD171 avatar Jan 29 '25 21:01 VD171