k0shk0sh / FastHub

FastHub the ultimate GitHub client for Android.
GNU General Public License v3.0
5.71k stars 931 forks source link

[BUG] Backup created, but where? #2876

Open Offerel opened 4 years ago

Offerel commented 4 years ago

I tried to backup the app settings, which seems to be successfully. However, there is no hint, where this file is saved. I cant find the file with the file explorer.

FastHub Version: 4.7.3 Android Version: 10 Device Information:

doamatto commented 4 years ago

I can't reproduce it; says the file location below the backup button for me.

Offerel commented 4 years ago

Ahhh ok. Indeed, I can see the same path in the description. Must have overlooked this completely. If I backup the settings, it says also that process is successfully, but I couldn't find the backup. I miss the whole directory on my device.

Offerel commented 4 years ago

Why do you close this? The backup isn't created at the given path. The whole directory doesn't exist.

doamatto commented 4 years ago

Seems to still be just you then. I opened Amaze FM and selected by Internal Storage (which is identified by Android as /storage/emulated/0 and could navigate into the FastHub directory, where backup.json was stored.

Offerel commented 4 years ago

Hmm maybe some special problem with how Samsung uses storage access under Android 10?

What makes me wonder is, that the toast message say, that the backup is created successfully. At least with Solid Explorer, I can also manually create Files and Folders at /storage/emulated/0.

doamatto commented 4 years ago

Possibly; have you tried using a different file explorer like Amaze or the My Files app (from Samsung) to navigate to that directory and see if it's empty?

Offerel commented 4 years ago

At least i tried the Samsung one. The directory FastHub doesnt exist on the device after i created a backup with FastHub. However i can create this directory manually and it stays there. But if i now create a backup with FastHub, the directory stays empty.

Maybe i have a similar problem with another app called NewPipe. https://github.com/andOTP/andOTP/issues/490. All other apps seems to work as expected. I have no problems to create files/folders. If i take photos they are created in /storage/emulated/0/DCIM/Camera as they should. I have no idea how i can test more things, again it makes me wonder that i get the toast message that the backup is created successfully. I have no skills in Android programming but at least in PHP i get only a success, when the save function returns success. Maybe its possible to get the real file path where the file is created. If i remember correctly, /storage/emulated/0 is only a symlink. If i have the real path, maybe i can check it with some adb coommand (if thats available).

k0shk0sh commented 4 years ago

I reckon its android 10 issue.

I'm currently on vacation and coming back home next week, I'll look into it and if I fix this then probably the download will work as well