diff options
Diffstat (limited to 'benchmarks-script/antutu/run.sh')
-rwxr-xr-x | benchmarks-script/antutu/run.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/benchmarks-script/antutu/run.sh b/benchmarks-script/antutu/run.sh new file mode 100755 index 0000000..66dc194 --- /dev/null +++ b/benchmarks-script/antutu/run.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +#need to be defined for different benchmark apks +activity="com.antutu.ABenchMark/.ABenchMarkStart" +apk_file_name="com.antutu.ABenchMark-1.apk" +test_method="testAntutu" +apk_package="com.antutu.ABenchMark" + +function change_no_update(){ + user=`adb shell ls -l /data/data/|grep com.antutu.ABenchMark|cut -d \ -f 2` + user=`echo ${user}|sed 's/\r//'` + dir_prefs="/data/data/com.antutu.ABenchMark/shared_prefs" + adb push ${parent_dir}/shared_prefs "${dir_prefs}" + adb shell chown ${user}:${user} "${dir_prefs}" + adb shell chmod 700 "${dir_prefs}" + adb shell chown ${user}:${user} "${dir_prefs}/com.antutu.ABenchMark_preferences.xml" + adb shell chmod 660 "${dir_prefs}/com.antutu.ABenchMark_preferences.xml" +} + +#following should no need to modify +parent_dir=`dirname ${0}` +source "${parent_dir}/../common/common.sh" +post_install="change_no_update" +main "$@" |