Skip to content

Commit b5b888e

Browse files
committed
android: remove explicit perm handling
1 parent 800c87e commit b5b888e

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

apps/simple-camera/device-farm-tests/AwsTestSpec.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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')"

0 commit comments

Comments
 (0)