1. Download the latest Android build on Linux VM here: https://rtandroid.embedded.rwth-aachen.de/downloads/raspberry-pi/ ;
2. Start terminal in VM;
unzip [FULL NAME OF DOWNLOADED ANDROID BUILD] -d .
sudo fdisk -l
3. Command fdisk can ask for your password, enter it. Then you will see list of disks connected to your VM. If you done everything ok, you should see output as in the picture. You will need only the name in the red circle. It is the Ubuntu name for SD card.;
4. Go to directory where you unpacked the Android build, and execute command to install Android:
Notice that in the end of command you are using the system name for the SD card without number. Flag “-p” is used to divide the SD card automatically into partitions, and “-f” flag is used to format the SD card.
/dev/sde is a directory of your sdcard, without numbers.
5. After this script finishes, execute another command, to adjust video settings for the touchscreen:
./video.sh -c raspberry-7inch-touchscreen /dev/sde
Notice that in the end is used system name for SD card again. There is a possibility that the script asks you for configuration of the device. If so, choose “arm” configuration.
6. When second script finishes, safely remove the SD card from your PC and insert it into prepared Pi. Turn it on and wait for Android to boot. (Sometimes it can take to 15 minutes).
It is not the full tutorial, because i created it for company needs. But this should do it :)