Update testing script
Update testing script to add a flag that exempts the instrumentation
from hidden API checks.
Test: run tests
Change-Id: I487458f805c78ff3873e2b0ac4bacba22befa4c9
diff --git a/scripts/telecom_testing.sh b/scripts/telecom_testing.sh
index 779f449..17309d6 100644
--- a/scripts/telecom_testing.sh
+++ b/scripts/telecom_testing.sh
@@ -121,7 +121,7 @@
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