mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Handle failed APK installation and patching
If "adb install" command is used with "-g" flag, we may get java.lang.SecurityException on some devices because granting runtime permissions at installation time is only allowed for system apps (however we can enable it in the device's Developer options menu). Also, pulling APK from /data/app/ may be restricted. We can workaround by copying the APK to a directory which we can access then try to pull the APK from there.
This commit is contained in:
committed by
Baldur Karlsson
parent
691c115946
commit
6c39b58d0b
@@ -105,19 +105,23 @@ void RemoteHost::CheckStatus()
|
||||
QThread::msleep(15);
|
||||
}
|
||||
|
||||
void RemoteHost::Launch()
|
||||
ReplayStatus RemoteHost::Launch()
|
||||
{
|
||||
ReplayStatus status = ReplayStatus::Succeeded;
|
||||
|
||||
int WAIT_TIME = 2000;
|
||||
|
||||
if(IsADB())
|
||||
{
|
||||
RENDERDOC_StartAndroidRemoteServer(hostname.c_str());
|
||||
status = RENDERDOC_StartAndroidRemoteServer(hostname.c_str());
|
||||
QThread::msleep(WAIT_TIME);
|
||||
return;
|
||||
return status;
|
||||
}
|
||||
|
||||
RDProcess process;
|
||||
process.start(runCommand);
|
||||
process.waitForFinished(WAIT_TIME);
|
||||
process.detach();
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user