Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 352f9804 authored by Chong Zhang's avatar Chong Zhang
Browse files

transcoding: push_asset only for new or modified asset files

bug: 154734285
Change-Id: Id1bca5293055da6ae59361060f39eb0895093d50
parent 10816453
Loading
Loading
Loading
Loading
+9 −2
Original line number Original line Diff line number Diff line
@@ -19,7 +19,14 @@ if [ "$SYNC_FINISHED" != true ]; then
  adb root && adb wait-for-device remount
  adb root && adb wait-for-device remount
fi
fi


#TODO(hkuang): Check if the destination folder already exists. If so, skip the copying.
echo "Copying files to device"
echo "Copying files to device"
adb push $ANDROID_BUILD_TOP/frameworks/av/media/libmediatranscoding/tests/assets/* /data/local/tmp/TranscodingTestAssets

adb shell mkdir -p /data/local/tmp/TranscodingTestAssets

FILES=$ANDROID_BUILD_TOP/frameworks/av/media/libmediatranscoding/tests/assets/*
for file in $FILES
do 
adb push --sync $file /data/local/tmp/TranscodingTestAssets
done

echo "Copy done"
echo "Copy done"