mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Add extra pings to reduce problems with unreasonably slow adb commands
This commit is contained in:
@@ -669,8 +669,15 @@ struct AndroidRemoteServer : public RemoteServer
|
||||
}
|
||||
}
|
||||
|
||||
// Android is a completely garbage platform, and the command below can take several orders of
|
||||
// magnitude more time than is reasonable and hit the remote server timeout. To give the best
|
||||
// chance of that not happening, we ping before and after running it.
|
||||
RemoteServer::Ping();
|
||||
|
||||
adbStdout = Android::adbExecCommand(m_deviceID, "shell dumpsys package").strStdout;
|
||||
|
||||
RemoteServer::Ping();
|
||||
|
||||
split(adbStdout, lines, '\n');
|
||||
for(rdcstr &line : lines)
|
||||
while(!line.empty() && isspace(line.back()))
|
||||
|
||||
Reference in New Issue
Block a user