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

Backups are stored on local not external storage

Open inspiredearth opened this issue 7 years ago • 7 comments

  • [x] I have searched open and closed issues for duplicates
  • [x] I am submitting a bug report for existing functionality that does not work as intended
  • [x] I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
  • [x] This isn't a feature request or a discussion topic

Bug description

When I enable "Chat backups: backup chats to extern storage" I understand this to mean backups will be stored on external storage. Yet the resulting backups end up stored on internal storage (to the point of leaving the device with close to no free internal storage), and nothing goes to the external storage (which has about 120gb of free space)

Steps to reproduce

  • go to Settings > Chats & Media > backups
  • Enable "Chat backups: backup chats to extern storage"
  • wait for a backup to occur

(previously I granted signal write access to the external storage, when prompted for such)

Actual result:

  • backup is stored on local storage and not external storage

Expected result: I expect backups to go to external storage, as stated in the option I enabled

Screenshots

Device info

Device: Samsung galaxy a5 (SM-A520F) Android version: 8.0.0 Signal version: 4.35.3

Link to debug log

Bug occurs with automatic backup. Hard to capture bug report in this moment, as a backup needs to occur, whilst I am aware of it.

inspiredearth avatar Apr 09 '19 07:04 inspiredearth

You mistake "external storage" with "removable storage". Considering the history of Android understandable, the terminology is indeed confusing.

Backups to removable storage were discontinued (in https://github.com/signalapp/Signal-Android/commit/18756aedf6c5bec1e8abd3789710cc5d59d7e090) because on a non-rooted device they can only be written to [removable storage root]/Android/data/org.thoughtcrime.securesms and this directory, including backups, is deleted when the app is uninstalled.

johanw666 avatar Apr 09 '19 12:04 johanw666

To add to what @johanw666 said, Android has a funny concept for what qualifies as "external storage," and they've overloaded the term. The file is stored on Environment.getExernalStorageDirectory(), which means it's external to the application's private storage (i.e. visible in your root directory instead of being hidden in the apps 'internal' storage). This is separate from being stored on removable media.

greyson-signal avatar Apr 09 '19 12:04 greyson-signal

Hey thanks for clearing that up. But now I'm in a bit of a pickle here. There isn't enough internal space left on my device to create a backup, and it would be pretty hard to free enough as Signal takes up most of it... Is there anything I can do besides removing pictures from chat history (and lose some part of my history) until the backup fits?

chrkau avatar Apr 14 '19 17:04 chrkau

That depends. If your device is rootedthere are some options. Otherwise it will be difficult.

johanw666 avatar Apr 14 '19 18:04 johanw666

It's actually rooted. Could you elaborate on those options you mentioned?

chrkau avatar Apr 14 '19 18:04 chrkau

In that case you can install software (XPosed with the Xinstaller module) that let the installer ignore the application signature so you can install a custom build over the official build without uninstalling first. I maintain a custom build with some extra options, including the option to backup to removable storage.

johanw666 avatar Apr 14 '19 18:04 johanw666

Interesting. Will have to try that out. Thanks.

chrkau avatar Apr 15 '19 07:04 chrkau