This repository contains tools to synch and flash Android images.
See also android_device_whaleshark_tangorpro for a Google Pixel Tablet based AAOS image.
And android_device_whaleshark_emulator for an ARM64-based AAOS Emulator image.
A .env
-file must be place in the root folder of this repository containing following properties (examples):
SSH_HOST="server.de"
SSH_USER="root"
SSH_PORT="22"
REMOTE_AOSP_ROOT="/home/$USER/aosp"
LOCAL_AOSP_ROOT="/home/$USER/aosp"
References to folders should be absolute.
You can also add SSH_KEY="~/.ssh/id_rsa"
if your SSH is set up with key-pairs, otherwise it will ask for password.
This scripts creates a zip package that can be flashed to Android devices. Use the script like this:
bash bin/create_local_product_package.sh
bash bin/create_local_product_package.sh $DEVICE_NAME
This scripts flashes all existing images from ANDROID_PRODUCT_OUT
to a connected Android device.
bash bin/flash_local_product_out.sh
bash bin/flash_local_product_out.sh $DEVICE_NAME
This scripts flashes a given product zip to a connected Android device.
bash bin/flash_product_zip.sh $ZIP_FILE
This script synchronizes the product files of a given target in $ANDROID_PRODUCT_OUT
on a remote server to localhost
. SSH and rsync must be setup on both ends.
Use the script like this:
bash bin/sync_remote_product_out.sh
bash bin/sync_remote_product_out.sh $DEVICE_NAME
Use the script like this:
bash bin/flash_local_product_out.sh -h
bash bin/flash_local_product_out.sh $DEVICE_NAME
This script has been tested with images built for Google Pixel Tablet (tangorpro)
This script synchronizes emulator image files of a given target in $ANDROID_PRODUCT_OUT
on a remote server to localhost
according to the ANDROID_SDK
-location. SSH and rsync must be setup on both ends.
Use the script like this:
bash bin/sync_remote_emulator_images.sh
bash bin/sync_remote_emulator_images.sh $DEVICE_NAME