kiwix / kiwix-android

Kiwix for Android
https://android.kiwix.org
GNU General Public License v3.0
888 stars 446 forks source link

Open zim-file on external USB-Stick (Android 14) #3532

Open Ohm66 opened 11 months ago

Ohm66 commented 11 months ago

Same issue like in closed issue 3304 (https://github.com/kiwix/kiwix-android/issues/3304#top).

Cannot open zim-File on USB-Stick. I can see "+" symbol, I can see the file, but clicking at the file says "no zim file existing". Samsung S23 with Android 14, tested with repository apk and also with different nightly build from last weeks.

Thanks for support Regards Ohm

*

MohitMaliFtechiz commented 11 months ago

@kelson42, @Ohm66 Our maximum SDK version is 33 (Android 13) and we have not tested this functionality on Android 14, We have a ticket for adapting the Android 14 https://github.com/kiwix/kiwix-android/issues/3478. We will fix this issue while adapting the Android 14.

Ohm66 commented 11 months ago

To be honest, I also had the issue again before I upgraded to Android 14. Obviously anything happened between August 2023 and now ... Let's see, what will happen if you upgrade the SDK. When have you planned it?

MohitMaliFtechiz commented 11 months ago

@Ohm66 We will do it in the next milestone.

kelson42 commented 11 months ago

Will maybe create a 3.8.1 just to add android14 support

Ohm66 commented 11 months ago

😀thanks! I will check if USB Zim will run...

heschdy commented 10 months ago

For me it is also not working with the 3.8.1

MohitMaliFtechiz commented 10 months ago

@heschdy Are you using an Android 13 or below device? If you are using an Android 14 device then wait for some time we will add support for Android 14.

MohitMaliFtechiz commented 7 months ago

We should wait for https://github.com/openzim/libzim/issues/852 to be implemented in libzim, this will allow us to open the file via the fd of the selected ZIM file that we have selected via file picker(Storage access framework), After implementing https://github.com/openzim/libzim/issues/852 we will able to open the file via the available fd and we will not require to get the path for the USB-Stick(It is the ideal solution for file picker functionality to properly support the all android version since android provides the access to that file via fd without any additional steps), which is causing the error here on Samsung's latest devices (especially on Android 14 because on newer devices Android encourage to use SAF inside of getting files via filePath for security purpose).