Update testing script

Update testing script to add a flag that exempts the instrumentation
from hidden API checks.

Test: run tests
Change-Id: I487458f805c78ff3873e2b0ac4bacba22befa4c9
This commit is contained in:
Hall Liu 2018-05-29 16:10:18 -07:00
parent 641a7db21a
commit 0f128dd360
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ _lite_test_general() {
if [ $coverage = true ] && [ $project =~ "telecom" ] ; then
e_options="${e_options} -e coverage 'true'"
fi
adb shell am instrument ${e_options} -w "$package_prefix/$instrumentation"
adb shell am instrument --no-hidden-api-checks ${e_options} -w "$package_prefix/$instrumentation"
# Code coverage only enabled for Telecom.
if [ $coverage = true ] && [ $project =~ "telecom" ] ; then