Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132249

AndroidTestRunner: allow to call additional/extra adb call

XMLWordPrintable

    • Android
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            bartlomiejmoskal Bartlomiej Moskal
            bartlomiejmoskal Bartlomiej Moskal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes