Allow running on Android 5.0 but with a warning that it's unsupported

* The apk targets api level 21 which is 5.0, so it still won't install on
  anything older.
* We pop up a big warning to the user the first time they try and select such a
  remote host.
This commit is contained in:
baldurk
2019-03-13 22:24:45 +00:00
parent 6ceb84d2b7
commit 26d823905e
5 changed files with 31 additions and 10 deletions
+14 -5
View File
@@ -1843,13 +1843,22 @@ void MainWindow::setRemoteHost(int hostIdx)
if(host->IsADB() && !RENDERDOC_IsAndroidSupported(host->hostname.c_str()))
{
// check to see if we should warn the user about this unsupported android version.
GUIInvoke::call(this, [this]() {
statusText->setText(tr("Device unsupported, Android 6.0 is required."));
contextChooser->setIcon(Icons::disconnect());
contextChooser->setText(tr("Replay Context: Local"));
contextChooser->setEnabled(true);
QDateTime today = QDateTime::currentDateTimeUtc();
QDateTime compare = today.addDays(-21);
if(compare > m_Ctx.Config().UnsupportedAndroid_LastUpdate)
{
RDDialog::critical(
this, tr("Unsupported Device Android Version"),
tr("This device is older than Android 6.0, the minimum required version for "
"RenderDoc.\n\nThis may break or cause unknown problems - use at your own "
"risk."));
}
m_Ctx.Config().UnsupportedAndroid_LastUpdate = today;
});
return;
}
if(!host->serverRunning && !host->runCommand.isEmpty())