-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.9
-
None
-
-
b4c82eba0 (dev), bc533b0fb (6.9), 45cfaf16b (6.8)
-
2025wk04s3FOQtforAndroid, 2025wk06s1QtforAndroid
Add an option to AndroidTestRunner to call additional adb commands before running the test.
Those commands could be set to the test target with CMake.
An example of such a need can be found in QtMultimedia - in qtscreencapturebackend test.
ScreenCapture feature needs an acceptation of Security Popup. It can be automatically accepted with adb command:
"adb shell appops set org.qtproject.example.tst_qscreencapturebackend PROJECT_MEDIA allow"
But currently there is no way to call it by androidtestrunner after installation and before running the test