android: fix possible run target error (#14608)

Auto-granting the external storage permission does not work in all
cases, so ignore errors:

```
Error: Unknown operation string: MANAGE_EXTERNAL_STORAGE
```
This commit is contained in:
Benoit Pierre
2025-11-11 21:27:22 +01:00
committed by GitHub
parent 016b3ed6b5
commit 40793eaadf

View File

@@ -28,7 +28,7 @@ endif
# install
adb install $(ADB_INSTALL_FLAGS) '$(ANDROID_APK)'
# speed up testing, auto-grant permission
adb shell appops set --uid $(ANDROID_APP_ID) MANAGE_EXTERNAL_STORAGE allow
-adb shell appops set --uid $(ANDROID_APP_ID) MANAGE_EXTERNAL_STORAGE allow
# there's no adb run so we do this…
adb shell monkey -p $(ANDROID_APP_ID) -c android.intent.category.LAUNCHER 1
# monitor logs