Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.9
-
None
-
-
b4c82eba0 (dev), bc533b0fb (6.9), 45cfaf16b (6.8)
-
2025wk04s3FOQtforAndroid, 2025wk06s1QtforAndroid
Description
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
Attachments
For Gerrit Dashboard: QTBUG-132249 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
621428,8 | AndroidTestRunner: allow to call additional/extra adb call | dev | qt/qtbase | Status: MERGED | +2 | 0 |
623862,2 | AndroidTestRunner: allow to call additional/extra adb call | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
623898,3 | AndroidTestRunner: allow to call additional/extra adb call | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |