NeoApplications / Neo-Backup

backup manager for android
GNU Affero General Public License v3.0
2.37k stars 120 forks source link

[Bug] App looses access to backup folders, thus finds no backups #855

Open hatelamers opened 3 months ago

hatelamers commented 3 months ago

Description After configuring a backup folder and performing backups of some apps, at first everything seems ok: backups are listed and can be restored. However, after a while of device inactivity, the app cannot find any of the backups.

Steps To Reproduce

  1. Select a backup folder
  2. Backup one or two apps
  3. Backups are seen in the app list
  4. Close Neo Backup (even force close from settings)
  5. Open Neo Backup
  6. Backups are stil listed and restorable
  7. Close Neo Backup or switch to different app
  8. Leave the device alone for ~30 min
  9. Open Neo Backup
  10. All backups are missing (but clearly exist in the files system)

Expected behavior Backups remain accessible in the app as long as they are not deleted by the user or the retention rule.

System Information(please complete the following information):


Additional Notes Nothing I tried, fixed the issue:

The behavior remains the same: after a while all backups disappear.

hatelamers commented 3 months ago

Additional info

I managed to assemble a working setup: external USB hub with an USB stick, of course this is not a solution.

Several other apps using content: URL to access files have similar problems on this device. Apparently it is kind of Lenovo's "feature", all "internal" FS handles (and their permissions) acquierd via Content Manager API get ivalidated after a period of inactivity and have to be requested again. Apps using file: URL or native OS API are not affected.