| 63 | } |
| 64 | |
| 65 | uint16_t GetJdwpPort() |
| 66 | { |
| 67 | // we loop over a number of ports to try and avoid previous failed attempts from leaving sockets |
| 68 | // open and messing with subsequent attempts |
| 69 | const uint16_t portBase = 39500; |
| 70 | |
| 71 | static uint16_t portIndex = 0; |
| 72 | |
| 73 | portIndex++; |
| 74 | portIndex %= 100; |
| 75 | |
| 76 | return portBase + portIndex; |
| 77 | } |
| 78 | |
| 79 | rdcstr GetDefaultActivityForPackage(const rdcstr &deviceID, const rdcstr &packageName) |
| 80 | { |