OneBusAway / onebusaway-android

The official Android app for OneBusAway
http://www.onebusaway.org/
Other
469 stars 288 forks source link

Fix restore and save backup for newer android versions #1246

Closed amrhossamdev closed 3 weeks ago

amrhossamdev commented 3 weeks ago

Fixes #1212

Details

Starting with Android 10, users reported issues with backup and restore functionality, especially on Android 13, where they were unable to create or restore backups. This was due to changes in how external storage permissions are handled. More details can be found in the Android documentation.

To address this, I integrated the updated APIs that support saving and restoring local backups, ensuring compatibility from Android 5 (Lollipop) through the latest versions of Android.

How old backup/restore works

New Changes

Main Changes

https://github.com/user-attachments/assets/6faf68c4-82b1-44e2-a77a-71e624d3db1f

TODO