wire-android_legacy icon indicating copy to clipboard operation
wire-android_legacy copied to clipboard

New backup format not selectable by Android 11 File Picker

Open AyoungDukie opened this issue 3 years ago • 5 comments

Describe the bug After creating a new backup prior to re-installing the app (made as a new "*.android_wbu.bin" format), I reinstall the app and attempt to restore from backup like normal. New backups are greyed out (via the Android 11 File chooser API/fragment, I assume), and only older ".wbu" formats are able to be selected. However these will fail to restore (for obvious reasons). Ironically this was done for personal troubleshooting the issue called out here: #3197)

To Reproduce Attempt to restore from backup in Android 11, unable to choose file

Expected behavior A clear and concise description of what you expected to happen instead

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Wire version that exhibits the issue: 3.66.985
  • Android OS version used to run Wire: Android 11, March 5 2021 security update, January 1 2021 Play System update
  • Is this a custom firmware or a stock one: Stock
  • Mobile phone model/manufacturer: Google Pixel 4a
  • Mobile network type (EDGE/LTE/Wi-Fi/Offline): Unaffected by network

Additional context Seems like this might be an issue with the Android system file picker dis-allowing something with android_wbu.bin extension for some reason. Attempting to rename the file doesn't seem to fix though, as the file will be able to be chosen, but the backup fails to restore

AyoungDukie avatar Apr 07 '21 16:04 AyoungDukie

Further screenshot Screenshot_20210427-000030

AyoungDukie avatar Apr 27 '21 04:04 AyoungDukie

Any assistance with this would be much appreciated...

AyoungDukie avatar May 11 '21 03:05 AyoungDukie

This still appears to be the case in the latest 3.70.999: is there any potential to explore fixing this? It seems like this would be related to how the File picker slice is set up. Seems potentially related to #3387, as older backups in the android_wbu format are selectable, but fail to restore, while the new android_wbu.bin formats are not able to be selected, and renaming to the older android_wbu format replicates that behavior (ie selectable but fails).

AyoungDukie avatar Jul 01 '21 12:07 AyoungDukie

Just checking in again on this; still performs the same issue as noted above based on app 3.72.1014; as noted in the above issue, it seems like if I were able to choose the new backups with .bin, I would be able to restore it. However I am unable to select it with the default file selection dialogue on Stock (Google) android.

I should be able to with another file manager, but this seems to be related to how Google is implementing file selection. Can the file selection dialog/slice properties be updated to explicitly allow .bin, and/or allow use of an external file manager?

AyoungDukie avatar Sep 07 '21 17:09 AyoungDukie

Can confirm this still is the case with 3.78.13

AyoungDukie avatar Sep 28 '21 13:09 AyoungDukie