mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
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:
@@ -322,6 +322,9 @@ DECLARE_REFLECTION_STRUCT(BugReport);
|
||||
\
|
||||
CONFIG_SETTING_VAL(public, int, int, Android_MaxConnectTimeout, 30) \
|
||||
\
|
||||
CONFIG_SETTING_VAL(public, QDateTime, rdcdatetime, UnsupportedAndroid_LastUpdate, \
|
||||
rdcdatetime(2015, 01, 01)) \
|
||||
\
|
||||
CONFIG_SETTING_VAL(public, bool, bool, CheckUpdate_AllowChecks, true) \
|
||||
\
|
||||
CONFIG_SETTING_VAL(public, bool, bool, CheckUpdate_UpdateAvailable, false) \
|
||||
@@ -625,6 +628,14 @@ For more information about some of these settings that are user-facing see
|
||||
|
||||
Defaults to ``30``.
|
||||
|
||||
.. data:: UnsupportedAndroid_LastUpdate
|
||||
|
||||
A date containing the last time that the user was warned about an Android device being older than
|
||||
is generally supported. This prevents the user being spammed if they consistently use an old
|
||||
Android device. If it has been more than 3 weeks since the last time an old device was seen, we
|
||||
re-warn the user, but if it's less than 3 weeks we silently update this date so continuous use
|
||||
doesn't nag.
|
||||
|
||||
.. data:: CheckUpdate_AllowChecks
|
||||
|
||||
``True`` if when coloring marker regions in the :class:`EventBrowser`, the whole row should be
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user