#!/bin/bash VERSION=$1 git clone https://android.googlesource.com/platform/system/core -b android-$VERSION --depth=1 android-tools-$VERSION tar cJf android-tools-$VERSION.tar.xz android-tools-$VERSION rm -rf android-tools-$VERSION # git clone https://android.googlesource.com/platform/system/extras -b android-$VERSION --depth=1 android-tools-extras-$VERSION tar cJf android-tools-extras-$VERSION.tar.xz android-tools-extras-$VERSION rm -rf android-tools-extras-$VERSION # git clone https://android.googlesource.com/platform/external/libselinux -b android-$VERSION --depth=1 android-tools-external-libselinux-$VERSION tar cJf android-tools-external-libselinux-$VERSION.tar.xz android-tools-external-libselinux-$VERSION rm -rf android-tools-external-libselinux-$VERSION