DocBit Notes Tutorials

How to Install Binance Official .aab Files to Your Phone Using bundletool

Ordinary users downloading from the Binance official website will get a universal APK, which can be installed simply by double-clicking it in a file manager. However, researchers or developers might occasionally obtain an .aab (Android App Bundle) file, which requires Google's bundletool to install on a phone. This note provides the complete process. Everyday users do not need to go through this hassle; just download the APK directly from the Binance Official Website or the Binance Official APP; for iPhone installations, see the iOS installation tutorial.

What is bundletool

bundletool is an open-source command-line tool from Google. Its main features include:

  • Converting an .aab file into .apks (an archive containing multiple split APKs).
  • Generating a specific subset of APKs tailored to a given device's specifications.
  • Directly installing the generated APKs to a device connected via ADB.
  • Outputting the internal structure of an .aab file for analysis.

This toolset is the standard validation method for developers before uploading their apps to Google Play. It is generally not needed by Chinese users, unless you:

  • Want to study the internal structure of the Binance APP.
  • Have obtained a third-party distributed .aab file.
  • Are writing automated testing scripts.

Prerequisites

You need to prepare the following on your computer:

Software Purpose
Java JDK 11+ Required to run bundletool
bundletool jar Google's open-source command-line tool
Android SDK Platform Tools (including ADB) For communicating with the device
The .aab file Sourced from Binance officially or decompiled yourself
USB data cable To connect your Android phone

The bundletool is about 6-8 MB in size and can be downloaded from Google's google/bundletool repository on GitHub.

Enabling USB Debugging on the Device

Turn on Developer Options on your phone:

  1. Settings → About phone → Tap "Build number" 7 times continuously.
  2. Go back to Settings → System → Developer options.
  3. Enable "USB debugging".
  4. Connect the phone to the computer with a data cable and tap "Allow" on the authorization prompt.

The path varies slightly across different ROMs:

ROM Tap Location
MIUI "MIUI version"
HarmonyOS "HarmonyOS version"
ColorOS "Build number"
One UI "Build number"

ADB can only recognize the device once this is enabled.

Complete Installation Process Overview

Installing an .aab to a phone generally takes four steps:

Step 1 · Check if the device is recognized by ADB Enter adb devices in the command line. If your phone's serial number appears in the output, the connection is successful.

Step 2 · Generate device-specific APKs using bundletool bundletool will query the connected device for its model, architecture, language, and screen density. Based on these parameters, it extracts the minimal set of splits from the .aab and outputs a binance.apks file.

Step 3 · Install the APKs to the device using bundletool bundletool has a built-in install-apks subcommand. It automatically calls adb install-multiple to install all the splits together.

Step 4 · Launch Binance on your phone Once launched, the experience is no different from installing via a universal APK.

The specific commands involve various command-line parameters and are quite lengthy; developers can refer to Google's official documentation.

File Size Differences: .aab vs universal APK

Based on actual testing of the same version (v2.100.5):

Format Total Download Size Installed Size
.aab (Google Play distribution) Not directly downloaded -
Device-specific APKs from .aab 38-45 MB 130-150 MB
universal APK (Binance website distribution) 96 MB 240 MB

The difference mainly comes from the fact that the universal package contains all architectures and languages, whereas the device-specific one only contains what the current device needs.

Common bundletool Errors

Error 1 · Unsupported tools version The Java version does not match bundletool's requirements. The latest bundletool requires JDK 11+, and an older JDK 8 is incompatible. Solution: Upgrade your JDK.

Error 2 · No device connected ADB hasn't recognized the device. Check if the USB mode is set to "File Transfer" and if debugging authorization is allowed.

Error 3 · Multiple devices connected When multiple devices are connected, you must use the -s parameter to specify the serial number.

Error 4 · Manifest version code is lower than installed The device already has the same or a newer version installed. You must uninstall it first or increase the versionCode.

Error 5 · Insufficient storage The device storage is full. Clear some space.

Post-Installation Verification

After installation, you can perform a few verifications:

  • Check if com.binance.dev is listed in adb shell pm list packages.
  • Launch the APP and see if the version number matches your expectations.
  • Compare the signature fingerprint to ensure it matches the one announced on the official website.
  • Run through a spot trading process once to confirm functions are normal.

Applicable and Inapplicable Scenarios

Suitable scenarios for the bundletool route:

  • Security researchers studying the APP structure.
  • QA engineers writing automated UI tests.
  • Developers who need to test the performance of different splits across various device specifications.
  • Students learning the Android application packaging mechanism.

You do not need this route if:

  • You are a regular user wanting to use Binance normally (just download the universal APK).
  • You have no experience with ADB and command lines.
  • You are using non-standard devices like tablets or TV boxes (universal has better compatibility).

Alternatives for Command-Line Beginners

If terms like ADB and bundletool give you a headache, but you still have an .aab file, there are friendlier alternatives:

  • Use the graphical SAI (Split APKs Installer), just copy the .aab into it for automatic processing.
  • Use APKEditor Studio to convert the .aab into an apkm, then install it.
  • Simply abandon the .aab and download the universal APK from the official Binance website.

The third option is by far the easiest.

FAQ

Q: Why does Binance release .aab instead of APK? A: Actually, the Binance official website primarily promotes the universal APK to Chinese users; the .aab is mainly for distribution on Google Play.

Q: Can I share my generated split APKs with others? A: Technically yes, but splits are tied to device specifications. They may not be compatible if used on different devices.

Q: Can I still update from the Play Store after installing APKs generated by bundletool? A: Yes. Google Play checks the versionCode and, if the signature matches, it will recognize it as the "same app" and proceed with the update.

Q: Does bundletool modify the content of the APK? A: No. It merely splits the .aab into APKs without altering the bytecode.

Extended Reading