summaryrefslogtreecommitdiff
path: root/caffeinemark/execute.sh
blob: 787135255fedf22efd2c285e2fef72347d3be439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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 "$@"