Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26547

Android: Reduce Android device updating

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 6.0.0
    • Qt Creator 6.0.0-beta2
    • Android Support
    • None
    • 1e693bcc6737b078557cca03ae677da19d4676a2 (qt-creator/qt-creator/6.0)

    Description

      When the Android plugin is enabled and the Android SDK is set up, the device list gets updated every 30 seconds:

      C:\Users\alportal\AppData\Local\Android\Sdk\platform-tools\adb.exe devices
      C:\WINDOWS\system32\cmd.exe /c C:\Users\alportal\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\avdmanager.bat list avd
      C:\Users\alportal\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell getprop ro.build.version.sdk
      "C:\Program Files\Android\Android Studio\jre/bin/java.exe" "-Dcom.android.sdkmanager.toolsdir=C:\Users\alportal\AppData\Local\Android\Sdk\cmdline-tools\latest\bin
      .." -classpath "C:\Users\alportal\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\..\lib\avdmanager-classpath.jar" com.android.sdklib.tool.AvdManagerCli list avd
      C:\Users\alportal\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell getprop ro.product.cpu.abilist
      C:\Users\alportal\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 emu avd name

      We might get rid of the polling one day by using "adb server" as a notifier.

      However also now we can at least try to reduce the calling of these project to a needed minimum. For example only perform the update if:

      • Active run configuration is of Type Android
      • We are currently in the device dialog

      Attachments

        Activity

          People

            portale Alessandro Portale
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: