Before downloading and building the STM32MPU distribution for Android™, make sure your system meets the following requirements:<br />
*A 64-bit Linux<sup>®</sup> environment.<br />
*At least 150 Gbytes of free disk space. If you conduct multiple builds, even more space is required.<br />
*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.<br />
For more details, refer to the [https://source.android.com/setup/requirements requirements page] of the AOSP website.<br />
Use the following commands to install the packages required to build an environment for Android (Distribution Package), after having installed the required packages [http://source.android.com/source/initializing.html listed on Android website]:
sudo apt-get update
sudo apt-get install chrpath curl libxml2-utils gdisk pv python-pycryptopp python-crypto autotools-dev automake libusb-1.0-0-dev
pycrypto
To ensure USB communication (with ADB) between the host and the device, see [[ADB#Device Connection|ADB § Device Connection]].
To run Android-provided tests (CTS and VTS), see [https://source.android.com/compatibility/tests Android Platform Testing].
<u>At this stage</u>: Your environment is ready for Android build, debug and test.
<noinclude>
[[Category:Sub-articles]]
[[Category:Android]]
{{PublicationRequestId |13244 | 2019-09-12}}</noinclude>