Skip to content

alexanderwolz/android-build-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tool Collection for AOSP and AAOS builds

GitHub release (latest by date) GitHub GitHub code size in bytes GitHub all releases

🧑‍💻 About

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.

🪄 Environment

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.

🛠️ Scripts

bin/create_local_product_package.sh

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

bin/flash_local_product_out.sh

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

bin/flash_product_zip.sh

This scripts flashes a given product zip to a connected Android device.

    bash bin/flash_product_zip.sh $ZIP_FILE

bin/sync_remote_product_out.sh

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

bin/flash_local_product_out.sh

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)

bin/sync_remote_emulator_images.sh

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