Files
mpp/build/android/update.sh
Herman Chen 6e6f9733ef [script]: Update script for binary update
Change-Id: I09002e8cba2a47ef3510a8c11ac220d18160b537
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-05-20 19:48:36 +08:00

24 lines
469 B
Bash

#!/bin/bash
adb root
adb remount
#BASE_PATH=/system
BASE_PATH=/vendor
#BASE_PATH=/oem/usr
BIN_PATH=${BASE_PATH}/bin/
LIB_PATH=${BASE_PATH}/lib/
push_file() {
if [ -f $1 ]; then
adb push $1 $2
fi
}
push_file ./mpp/libmpp.so ${LIB_PATH}
push_file ./mpp/legacy/libvpu.so ${LIB_PATH}
push_file ./test/mpi_dec_test ${BIN_PATH}
push_file ./test/mpi_enc_test ${BIN_PATH}
push_file ./test/vpu_api_test ${BIN_PATH}
push_file ./test/mpp_info_test ${BIN_PATH}