Details
-
Task
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 6.0.0-beta2
-
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
For Gerrit Dashboard: QTCREATORBUG-26547 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
380890,7 | Android: Skip device list update no Android Kit is active | 6.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |