File tree Expand file tree Collapse file tree
apps/simple-camera/device-farm-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,23 +14,6 @@ phases:
1414 - adb wait-for-device
1515 - adb devices -l
1616
17- # Grant all runtime permissions we need up-front. AWS Device Farm has no UI
18- # operator to tap through permission dialogs, so any runtime permission
19- # request would hang the test. The APK is already installed by Device Farm
20- # before the test spec runs, so `pm grant` targets the installed package.
21- - |
22- APP_PACKAGE="com.margelo.nitro.camera.example.simple"
23- for PERMISSION in \
24- android.permission.CAMERA \
25- android.permission.RECORD_AUDIO \
26- android.permission.ACCESS_FINE_LOCATION \
27- android.permission.ACCESS_COARSE_LOCATION \
28- android.permission.READ_EXTERNAL_STORAGE \
29- android.permission.WRITE_EXTERNAL_STORAGE; do
30- echo "Granting ${PERMISSION} to ${APP_PACKAGE}"
31- adb shell pm grant "${APP_PACKAGE}" "${PERMISSION}" || echo "Failed to grant ${PERMISSION} (may not be applicable on this API level)"
32- done
33-
3417 test :
3518 commands :
3619 - MANUFACTURER="$(adb shell getprop ro.product.manufacturer | tr -d '\r')"
You can’t perform that action at this time.
0 commit comments