blob: cc71514d487fddafbb670ce14ae007aa6bd9e86e [file] [log] [blame]
hkuang2ef2b432020-06-15 18:33:11 -07001#!/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
hkuang2ef2b432020-06-15 18:33:11 -070022echo "Copying files to device"
Chong Zhang352f9802020-06-26 14:25:37 -070023
24adb shell mkdir -p /data/local/tmp/TranscodingTestAssets
25
Harish Mahendrakarc580def2020-11-18 10:34:30 +053026FILES=$ANDROID_BUILD_TOP/frameworks/av/media/libmediatranscoding/tests/assets/TranscodingTestAssets/*
Chong Zhang352f9802020-06-26 14:25:37 -070027for file in $FILES
28do
29adb push --sync $file /data/local/tmp/TranscodingTestAssets
30done
31
hkuang2ef2b432020-06-15 18:33:11 -070032echo "Copy done"