1#!/bin/bash 2# 3# Pushes the assets to the /data/local/tmp. 4# 5 6if [ "$SYNC_FINISHED" != true ]; then 7 if [ -z "$ANDROID_BUILD_TOP" ]; then 8 echo "Android build environment not set" 9 exit -1 10 fi 11 12 # ensure we have mm 13 . $ANDROID_BUILD_TOP/build/envsetup.sh 14 15 mm 16 17 echo "waiting for device" 18 19 adb root && adb wait-for-device remount 20fi 21 22echo "Copying files to device" 23 24adb shell mkdir -p /data/local/tmp/TranscodingTestAssets 25 26FILES=$ANDROID_BUILD_TOP/frameworks/av/media/libmediatranscoding/tests/assets/TranscodingTestAssets/* 27for file in $FILES 28do 29adb push --sync $file /data/local/tmp/TranscodingTestAssets 30done 31 32echo "Copy done" 33