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

AndroidTestRunner: allow to call additional/extra adb call

    XMLWordPrintable

Details

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

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes