-
-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot see wikipedia_en_all_maxi_2023-11.zim file on Android 12 #3604
Comments
@tigran123 Thank you for your bug report. Does it work better with the nightly or with the version |
Tried with the nightly Also, does the selection of "storage device" in the Settings matter? Oh, I just tried it in the nightly build and it actually does something -- it gives me a directory chooser type of dialog, where I can navigate my external storage, but no Kiwix subdirectory is visible inside /Android/media -- only org.whatsapp and org.telegram.messenger. So, how do I make /Android/media/Kiwix directory visible to Kiwix? Should I rename it to something like org.kiwix and reboot? |
UPDATE: good news, if I select the parent of 'Kiwix' directory, i.e. This is with running 2023-12-16 nightly build. |
@tigran123 Thank you for running the investigation. Glad you are able to read the file again. |
Another small point: that "rotating circle" thing, indicating that the program is searching for more .zim files, keeps turning forever. Hmmm, surely that means it is draining my battery now? Shouldn't it stop eventually? Ok, I do have about 50,000 files under 'Android/media/Books', but this is a very fast 1TB micro sd and just doing something like stat(2) on 50,000 files should not take more than a few seconds... |
@tigran123 Thanks for you research.
@kelson42 This is decided by the Android system which directory is to show/hide e.g. I have the |
@MohitMaliFtechiz In the latest message I reported that Kiwix managed to see the content of the Yes, I created the |
@tigran123 By choosing the parent directory android permits us to read the content inside its subdirectories even if they are protected, that's why Kiwix can read the content after choosing the
Ohh, that's why it is not recognized by the chooser UI, can you please check the folder permissions? Probably android does not have permission to directly read that folder. |
I thought exFAT did not support the concept of Unix permissions at all? When I mount it I use |
Yes, I was right -- exFAT does NOT support the concept of Unix permissions, see below:
|
@tigran123 are you creating the folder with I suspect the Android chooser UI is not showing this folder to select because our application does not have permission to read that folder. After you choose the Please try the below approach to fix the problem.
|
Ha-ha-ha, my friend, are you trying to teach Unix the person who helped to create the Linux kernel? (Google "Tigran Aivazian" is your friend :) Using "sudo" has nothing whatsoever to do with it. I used it only because I mounted that card without Also, Anyway, for completeness and for your satisfaction I have repeated the same test without sudo and the result, of course, is exactly the same:
As I explained -- exFAT does NOT have a concept of permissions. The reason why it "appears" to have such a thing on Android is because Android itself emulates this, e.g. if a directory's name matches the program's name (like com.termux for Termux, for example) and under other conditions. |
Btw, a useful reference for you to read is this: It explains why it is always better to use |
@tigran123 Thanks for your reference and explanation i really appreciate it. Let's back to the topic. I tried all the things you have mentioned, and on my phone, it can read the ZIM files from the Since Android introduced the scoped storage, many restrictions have been introduced while accessing the storage. As Android chooser UI does not recognize the We should first ensure what was happening on your device.
|
The name of the application is not
But the Kiwix app UI chooser still does not see the I will try some other combinations and let you know. Btw, it is very annoying that the app allows the system to put itself to sleep or/and lock the screen -- it should request a wake lock to prevent that and keep the screen on. |
I forgot to mention that the UI chooser does not see the |
Ah... I figured it out! Even when you select "External" in the Settings, the UI chooser still by default goes to "Internal" storage, i.e. ignores your choice! This is why we see those two subdirectories So, now if I go to the menu from within the UI chooser and manually select External storage, then it sees the |
But there is still a tiny bug -- the "rotating circle" is rotating eternally, i.e. never stops, even though the selected directory only contained TWO zim files and both are already displayed in the Library tab. So it looks like the search goes on forever and wastes battery. |
Btw, it is a mystery how could selecting the |
Ohh!! Happy to know that all things are working fine.
We have placed a fix for it in #3619, now it will by default show the SD card to select the folder.
@tigran123 We have this kind of issue opened #2445.
we will place a fix for it. Thanks for providing the additional information about it, it would be very helpful to debug the problem. |
Thank you @MohitMaliFtechiz and @kelson42 for dealing with this issue. All is well now. |
Reopening as the problem is back after upgrade to the official 3.9.1 version from Google Playstore. And a few other serious issues as well. |
So, here are the problems with the latest 3.9.1 version of Kiwix from Google Playstore:
|
Oh, I should have read the message which comes up on startup -- it does say that the version of Kiwix from Google Play is useless and points to the URL where one can download the proper version. Thank you! I will try that one and will report the results. |
Ok, I have downloaded this file and tested it: https://download.kiwix.org/release/kiwix-android/kiwix-3.9.1.apk Most of the problems described above went away, but the main problem remains -- it still does NOT find the zim files automatically, even after pointing to the directory, containing them, and giving all the permissions etc. However, the |
@tigran123 Thank you for staying around, reporting the nightmare of file mgmt on Android. That said we can not work properly with one ticket reporting 4 different things. The rule for proper handling is one problem = one issue/ticket. |
Yes, I understand -- so my latest message says that all problems BAR ONE have gone now, by using the full 3.9.1 version from download.kiwix.org. So, there is just one problem remaining and that is pertaining to this specific issue description. |
Yet another UPDATE: After 15 minutes of scanning the So, that means there are no more problems and I can close this issue again. However, I hope you agree that it is very unusual to spend 15 minutes scanning a directory with two files. Ok, presumably it also retrieves some metadata from those files, but even so it should not spend 15 minutes doing that... |
Yes, this is worth to make a ticket. We have a least a usability problem here IMHO. |
Ok, I will time it accurately and open a ticket for that. |
My initial timing guess was quite accurate -- the actual time taken was 14 minutes and 5 seconds! :) |
Describe the bug
Android app cannot see the zim file for WikiPedia English "all_maxi_2023_11"
Expected behavior
It should see it, obviously.
Steps to reproduce the behavior:
/Android/media/Kiwix
I do not think that this is specific to this particular zim file. I just got this new Note 10+ phone and so the first thing to try was to install Kiwix and point it to the latest WikiPedia zim file.
Screenshots
Environment
Logs
The text was updated successfully, but these errors were encountered: