1#!/bin/bash 2 3if [ -z "$ANDROID_BUILD_TOP" ]; then 4 echo "Android build environment not set" 5 exit -1 6fi 7 8# ensure we have mm 9. $ANDROID_BUILD_TOP/build/envsetup.sh 10 11pushd $ANDROID_BUILD_TOP/frameworks/av/media/libaudioprocessing 12pwd 13mm 14 15echo "waiting for device" 16adb root && adb wait-for-device remount 17adb push $OUT/system/lib/libaudioprocessing.so /system/lib 18adb push $OUT/system/lib64/libaudioprocessing.so /system/lib64 19adb push $OUT/data/nativetest/resampler_tests/resampler_tests /data/nativetest/resampler_tests/resampler_tests 20adb push $OUT/data/nativetest64/resampler_tests/resampler_tests /data/nativetest64/resampler_tests/resampler_tests 21 22sh $ANDROID_BUILD_TOP/frameworks/av/media/libaudioprocessing/tests/run_all_unit_tests.sh 23 24popd 25