Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

[BUG] Restore functionality doesn't work on Android 10+ #41

Open
MarcDonald opened this issue Aug 15, 2020 · 4 comments
Open

[BUG] Restore functionality doesn't work on Android 10+ #41

MarcDonald opened this issue Aug 15, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@MarcDonald
Copy link
Owner

Describe the bug
Due to changes regarding storage access in Android 10+, the app may not be able to find any backup files from which to restore from.

How to fix
The library I use for file access has not yet been updated to support the new storage access methods. If it does not get added soon there will have to be a rewrite to use the new Storage Access Framework

@MarcDonald MarcDonald added the bug Something isn't working label Aug 15, 2020
@MarcDonald MarcDonald assigned MarcDonald and unassigned MarcDonald Aug 15, 2020
@MaxwellDexter
Copy link

Was this ever looked at again? I'm trying to restore on Android 11

@MarcDonald
Copy link
Owner Author

MarcDonald commented Jun 13, 2022

Hey @MaxwellDexter, unfortunately not. Uni got in the way and I don't use Android or study Japanese much anymore so this project fell by the wayside.

Your data isn't lost completely since the .hibi file that gets exported is just a SQLite database under the hood that you should be able to open with any SQLite editor application.

If you're comfortable enough with Android Studio and know how to use ADB, you might be able to replace the Database.db file in the app's install folder with your exported backup. That's what I used to do during development - no guarantees on whether this would work 100% however, especially when it comes to linking entries to images.

Sorry about that.

@MaxwellDexter
Copy link

Thanks @MarcDonald that's totally understandable. I'm not an android dev but I may have a look at it. Would you accept a PR with a fix?

@MarcDonald
Copy link
Owner Author

Thanks @MarcDonald that's totally understandable. I'm not an android dev but I may have a look at it. Would you accept a PR with a fix?

Absolutely, that would be a great help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants