MCPcopy Create free account
hub / github.com/baldurk/renderdoc / InjectWithJDWP

Function InjectWithJDWP

renderdoc/android/jdwp.cpp:434–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432namespace Android
433{
434bool InjectWithJDWP(const rdcstr &deviceID, uint16_t jdwpport)
435{
436 Network::Socket *sock = Network::CreateClientSocket("localhost", jdwpport, 500);
437
438 if(sock)
439 {
440 bool ret = JDWP::InjectLibraries(deviceID, sock);
441 delete sock;
442
443 return ret;
444 }
445 else
446 {
447 RDCERR("Couldn't make JDWP connection");
448 }
449
450 return false;
451}
452}; // namespace Android

Callers 1

ExecuteAndInjectMethod · 0.85

Calls 2

InjectLibrariesFunction · 0.85
CreateClientSocketFunction · 0.50

Tested by

no test coverage detected