#!/bin/bash #need to be defined for different benchmark apks activity="com.flexycore.caffeinemark/.Application" apk_file_name="com.flexycore.caffeinemark-1.apk" test_method="python vc.py" apk_package="com.flexycore.caffeinemark" #following should no need to modify parent_dir=`dirname ${0}` source "${parent_dir}/../common/common.sh" function func_caffeinemark_post_install(){ adb shell setenforce 0 } function func_caffeinemark_pre_uninstall(){ func_pre_uninstall adb shell setenforce 1 } post_install="func_caffeinemark_post_install" pre_uninstall="func_caffeinemark_pre_uninstall" main "$@"