forked from qt-creator/qt-creator
Android: remove unauthorized field form AndroidDeviceInfo
This is not really needed anymore, it was mainly used for physical devices to report whether they need user authorization to be used via adb. This is now handled by IDevice::DeviceState, where a Connected device is unauthorized, otherwise any physical device is ReadyToUse if authorization is good. Change-Id: If5c1e49b98063eabe4205cd8adb5b11515e1e1de Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -99,6 +99,12 @@ AndroidDeviceWidget::AndroidDeviceWidget(const IDevice::Ptr &device)
|
||||
const auto osString = QString("%1 (SDK %2)").arg(dev->androidVersion()).arg(dev->sdkLevel());
|
||||
formLayout->addRow(AndroidDevice::tr("OS version:"), new QLabel(osString));
|
||||
|
||||
if (dev->machineType() == IDevice::Hardware) {
|
||||
const QString authorizedStr = dev->deviceState() == IDevice::DeviceReadyToUse ? tr("Yes")
|
||||
: tr("No");
|
||||
formLayout->addRow(AndroidDevice::tr("Authorized:"), new QLabel(authorizedStr));
|
||||
}
|
||||
|
||||
if (dev->machineType() == IDevice::Emulator) {
|
||||
const QString targetName = dev->androidTargetName();
|
||||
formLayout->addRow(AndroidDevice::tr("Android target flavor:"), new QLabel(targetName));
|
||||
|
||||
Reference in New Issue
Block a user