Overview
This guide explains how to publish React Native (Expo) applications to the Xiaomi GetApps store without installing the full Android Studio suite. It covers the specific requirements, setup process, and solutions to common problems encountered during submission.
Prerequisites
You only need these three essential components:
1. Java JDK (LTS)
Install Java JDK 21 (LTS). For Windows, use the .exe installer. Verify with java -version in CMD.
2. Expo Android Keystore (.jks)
Download from your Expo project using eas credentials command.
3. Android SDK Command Line Tools
Download only the command line tools (~150MB) from the official Android Studio page.
Phase 1: Preparation & Binary Generation
Install Java JDK (Required)
Install Java JDK 21 (LTS version). The .exe installer is recommended for Windows users. After installation, verify by opening Command Prompt and typing:
java -version
You should see output similar to: java 21.x.x LTS.
Download Expo Android Keystore (.jks)
From your Expo project directory, run the following command:
eas credentials
Then choose: Android > Production > Keystore > Download keystore. Save these details securely:
- .jks file
- Keystore password
- Key alias
- Key password
credentials.json file exactly.
Download Xiaomi Empty APK
From the Xiaomi GetApps Console:
- Open your app and go to "Qualification Certificate"
- Under "Empty APK Signature Verification", click "click here"
- Download the file:
com.xiaomi.getapps.signature.verification.apk
Phase 2: Setup Android SDK Command Line Tools
Download Tools
Go to the official Google Android Studio page and download commandlinetools-win-*_latest.zip for Windows (or the appropriate version for your OS).
Extract Correctly (Very Important)
To make the tools work, you must follow this exact folder structure:
- Create this folder:
C:\Android\cmdline-tools\latest\ - Copy the contents of the zip so the final structure is:
C:\Android\cmdline-tools\latest\bin\sdkmanager.bat
Install Build Tools
Open Command Prompt (CMD) and run:
cd C:\Android\cmdline-tools\latest\bin
sdkmanager "build-tools;34.0.0"
After installation, the required tools (like apksigner and zipalign) will be located in:
C:\Android\build-tools\34.0.0\
Phase 3: Critical Hurdles & Solutions
Problem 1: Empty APK Signature Verification
Challenge: Xiaomi requires you to sign their empty APK using your app's production key.
Solution
Navigate to your build-tools folder in CMD and run:
apksigner sign --ks [KEYSTORE_FILE] --ks-key-alias [ALIAS] --out com.xiaomi.getapps.signature.verification.apk com.xiaomi.getapps.signature.verification.apk
Important: During this command, you will be prompted for passwords. Use the values from your credentials.json:
- Keystore password for signer #1: Enter the keystorePassword
- Key "..." password for signer #1: Enter the keyPassword
Problem 2: "Non-designated empty package" Error
Challenge: Xiaomi rejected the file because the output name was changed.
Solution
The output filename must be exactly com.xiaomi.getapps.signature.verification.apk. Re-run the command using that specific name for the --out flag.
Problem 3: Signature Scheme Mismatch
Solution
Verify the signature using:
apksigner verify -v com.xiaomi.getapps.signature.verification.apk
The result should show v2 scheme: true and v3 scheme: true.
Problem 4: Industry Qualification Confusion
Challenge: The console asks for "Industry Qualification Certificates."
Solution
For utility apps like an "Age Calculator":
- No financial license is required (per India-IN regional guidelines)
- Proof of Ownership: Upload a screenshot of the Expo Project Dashboard to prove ownership
Phase 4: Final Submission
Review Information
Enter "No login required" or appropriate information based on your app's functionality.
Warranty
Check the "Warranty against infringement" box to confirm your app doesn't violate any intellectual property rights.
Submit
Click the submit button. Your app will now be in the "Review in progress" state.