Kiwix for Android
Kiwix is an offline reader for Web content, primarily designed to make Wikipedia available offline. It reads archives in the ZIM file format, a highly compressed open format with additional metadata. This is the Android version of Kiwix, with support versions ranging from 7.1 to 17. The app is written in Kotlin.
Starting from Android 11, Google introduced a restrictive policy that affects the Kiwix Play Store variant. Users can no longer directly load ZIM files from internal or external storage. The storage scanning feature has also been removed in the Play Store variant.
Actually, Kiwix Play Store variant can only directly scan/read ZIM files in reserved app directories:
| Directory name | Storage path | Readable by File manager |
|---|---|---|
| Internal public | storage/0/Android/media/org.kiwix.kiwixmobile/ | Yes |
| Internal private | storage/0/Android/data/org.kiwix.kiwixmobile/ | No |
| External public | storage/sdcard-name/Android/media/org.kiwix.kiwixmobile/ | Yes |
| External private | storage/sdcard-name/Android/data/org.kiwix.kiwixmobile/ | No |
For ZIM files downloaded through third-party apps, users can use the file picker in Kiwix to select and move these files to one of the Kiwix app's public directories (see above). This operation can be also done manually.
Be careful: Before uninstalling Kiwix, move ZIM files outside the app directory to avoid deletion.
To use the full version of Kiwix and avoid facing this restriction, you can download it directly from the official repository or use IzzyOnDroid.
We understand that this restriction may cause inconvenience, but it is necessary to comply with the Play Store policies and ensure a smooth user experience. We recommend using the official version of the app available on our website to access the complete set of features.
Starting from version 3.12.0, Kiwix is available in two variants:
org.kiwix.kiwixmobileorg.kiwix.kiwixmobile.standaloneGoogle Play version: Limited to scanning and opening ZIM files from reserved app directories. Full version: Can load ZIM files from any storage location using the file picker.
To avoid confusion between the Google Play version and the full version, we introduced dedicated application ids (one for each variant). Using the same application id for both versions caused conflicts with the Google Play Store, as it treated them as the same app. This resulted in scenarios where Google Play would prompt updates for the full version. If users updated through the Play Store, they would lose advanced file management capabilities (such as scanning storage or directly opening ZIM files using the file picker).
This separation ensures clarity for users and prevents undesirable behavior.
Bookmarks: Export and reimport them via the "Settings" menu.
ZIM files: Move them to or from the reserved app directories Android/media/org.kiwix.kiwixmobile/ or
Android/data/org.kiwix.kiwixmobile/. This might have to be done for both internal storage and SD card. Kiwix can detect automatically all ZIM files available in your storage. You just need to swipe down in the local "Library" screen and
it will scan your storage and recognize all your ZIM files.
Kiwix requires the following permissions to fully work:
ACCESS_FINE_LOCATION: For device discovery on Android 12 and below.NEARBY_WIFI_DEVICES: For device discovery on Android 13 to 16.ACCESS_LOCAL_NETWORK: For device discoveryCI is continuously failing ???
https://github.com/kiwix/kiwix-android/issues/5360
Labels: question, CI/CD
Multi-book deletion stops after the first failed deletion
https://github.com/kiwix/kiwix-android/issues/5358
Labels: bug, question
Language tabs still uppercase
https://github.com/kiwix/kiwix-android/issues/5354
Labels: good first issue
CI: cut failed-run pipeline time from 6h to 1.5h without changing tests
https://github.com/kiwix/kiwix-android/issues/5353
Labels: task
Improve donation feature
https://github.com/kiwix/kiwix-android/issues/5350
Labels: enhancement, question
We love improvements to our tools! There are a few key ways you can help us improve our projects:
Our process for submitting feedback, feature requests, and reporting bugs usually begins by discussion on our chat and, after initial clarification, through GitHub issues. Each project repository generally maintains its own set of issues:
https://github.com/kiwix/<repository-name>/issues
Some projects have additional templates or sets of questions for each issue, which you will be prompted to fill out when creating one.
Issues that span multiple projects or are about coordinating how we work overall are in the Overview Issue Tracker.
We still do not have project guidelines for all of the projects hosted in our GitHub Organization, which new repositories should follow during their creation.
Our process for accepting changes operates by Pull Request (PR) and has a few steps:
If you haven't submitted anything before, and you aren't (yet!) a member of our organization, fork and clone the repo:
$ git clone git@github.com:<your-username>/<repository-name>.git
Organization members should clone the upstream repo, instead of working from a personal fork:
$ git clone git@github.com:kiwix/<repository-name>.git
Create a new branch for the changes you want to work on. Choose a topic for your branch name that reflects the change:
$ git checkout -b <branch-name>
Create or modify the files with your changes. If you want to show other people work that isn't ready to merge in, commit your changes then create a pull request (PR) with WIP or Work In Progress in the title.
https://github.com/kiwix/<repository-name>/pull/new/main
Once your changes are ready for final review, commit your changes then modify or create your pull request (PR), assign as a reviewer or ping (using "@<username>") a Lieutenant (someone able to merge in PRs) active on the project (all Lieutenants can be pinged via @kiwix/lieutenants)
Allow others sufficient time for review and comments before merging. We make use of GitHub's review feature to comment in-line on PRs when possible. There may be some fixes or adjustments you'll have to make based on feedback.
Once you have integrated comments, or waited for feedback, a Lieutenant should merge your changes in!
Our branching strategy is based on this article which we suggest you read.
feature branches culminate in a PR, are merged and deleted.
Typically a feature branch is off of main but in rare scenarios, if there is an issue in production a branch may be made off main to fix this issue, this type of feature branch must be merged to main before being deleted.
Branch names should be in the format <issue-number>-kebab-case-titleAll branches should have distinct history and should be visually easy to follow, for this reason only perform merge commits when merging code either by PR or when synchronising.
If you wish to rebase you should be following the Golden Rule and adhere to the advice in the heading Aside: Rebase as cleanup is awesome in the coding lifecycle.
For writing commit messages please read the COMMITSTYLE carefully. Kindly adhere to the guidelines. Pull requests not matching the style will be rejected.
For an overview of how to make design changes to Kiwix Android, check out DESIGN.md.
The Kiwix app is split into 3 modules
core - the "core" functionality of the app shared between different clientsapp - the main app Kiwix, Wikipedia Offlinebranded - this is for building branded applications that supply only 1 ZIM file and a branded skinThe default build is debug, with this variant you can use a debugger while developing. To install the application click the run button in Android Studio with the app configuration selected while you have a device connected. The release build is what gets uploaded to the Google Play store and can be built locally with the dummy credentials/keystore provided.
By default we fetch kiwix-lib, the key component for interacting with ZIM files from maven, but if you wish to use your own locally compiled version for testing purposes, then you can create the directory app/libs and place your .aar file inside it to have it used instead.
We've implemented Git hooks to ensure code quality and minimize potential errors in the Kiwix project. The pre-commit Git hook, automatically runs detekt, ktlint, and lint with every commit.
If this hook identifies any potential errors or code quality issues, it will fail the commit and provide the reason for the failure. You need to fix that error and recommit your code.
However, if there's a valid reason to skip linting for a particular commit, you can use:
git commit --no-verify