Contributor Handbook > Code > Android Code > Releasing
Instructions for releasing Android Apps
Once the flavor is built there are many different ways to publish the binaries for installation.
The Play Store has the advantage of being installed on all Android phones by default. This makes it very easy for users to install your app, which makes it the approach we recommend for most applications.
One of the downsides is it can be more difficult to get your app published and it may be removed in future if it’s found to not comply with future requirements.
For this method you will need access to the organization’s play store console with permission to publish the app.
In the Google Play Console, for each flavor to publish:
Production
releasearm64
app bundles (from the GitHub Release) for the flavor. If you plan on uploading multiple APKs, the APKs should have different version codes. Read more: here.For a more detailed explanation, follow this doc.
Remember that when the app is created in the Play Store, it’s required to choose the way the app will be signed by Google: we upload the signed AAB files, but then Google creates optimized versions of the app in .apk format. The app has to be configured to use the same signing and upload signatures by Google. Choose to upload a “Java keystore”, the Play Console will require a file encrypted with a tool named PEPK, that file is <brand>_private_key.pepk
generated when following the instructions of New brand (the button to upload the .pepk
in the Play Console may say “Upload generated ZIP” although the PEPK file doesn’t look like a .zip file).
.apk
files, but new ones needs to be uploaded with the Android App Bundle format (.aab
). Checkout the Artifact formats section.This method gives an app developer full control over installation. It is also possible to do the installation without an internet connection which makes it ideal for remote installation, or to save bandwidth when performing multiple installs.
F-Droid is a free open source application store which gives the app developer more control over the listing. As it isn’t installed on Android devices by default it takes a little more effort to set up originally, but is easier than manually sideloading.
Read more about Using F-Droid for app distribution.
Using mobile device management (MDM) software allows administrators to remotely manage mobile devices. This gives the IT administrator full control over which applications are installed on the devices, as well as having the option to delete apps and data from lost or stolen mobile devices. For this reason, using MDM software is highly recommended for deployments.
There are many commercially available MDM tools to evaluate, with a wide range of features and prices. Google Endpoint is available for organizations using Google Workspace (formerly G Suite), and has free plans for non-profit organizations. Check out the Endpoint documentation overview for more information, including how to enable mobile device management, and how to remotely wipe a device.
Other MDM providers include Headwind MDM and Microsoft Intune. It is recommended that you research MDM options and pick the one that’s right for you.
Another alternative is to install the CHT Core webapp as a Progressive Web App. This avoids building an Android application altogether. Read more on the PWA page.
Instructions for releasing Android Apps
Branding the CHT Android applications
How to secure android devices used in deployments
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.