PC prerequisites about STM32MPU distribution for Android

Revision as of 15:50, 22 August 2019 by Registered User


Before downloading and building the STM32MPU distribution for Android™, make sure your system meets the following requirements:

  • A 64-bit Linux environment.
  • At least 150 Gbytes of free disk space. If you conduct multiple builds, even more space is required.
  • At least 8 Gbytes of RAM/swap. If you are running Linux on a virtual machine, at least 16 Gbytes of RAM/swap are required.

For more details, refer to the requirements page of the AOSP website.


Use the following commands to install the packages required to build an environment for Android (Distribution Package), after having installed the required packages listed on Android's website:

sudo apt-get update
sudo apt-get install chrpath curl libxml2-utils gdisk pv python-pycrypto 
Info white.png Information
The gdisk package should be at version 1.0.1. More recent versions of the package will not work when formatting the SD card.

You can verify this with the following command:

dpkg --list gdisk


To ensure USB communication (with ADB) between the host and the device, see ADB § Device Connection.


To run Android-provided tests (CTS and VTS), see Android Platform Testing.

At this stage: Your environment is ready for Android build, debug and test.