Commit 2385017
committed
Fix first-run Frida interception
On Android (at least) when an app has never been launched,
Socket.connect() never resolves until the app is resumed. In our case,
we need to pick an IP & inject the hooks before we can resume, so this
is problematic.
To handle this, we already fallback to the tunnel IP if it connected OK
(should almost always happen) but the 10s timeout means the connection
actually breaks before that can happen. Dropping the timeout (connect
should really take single-digit milliseconds in normal cases) means we
inject the script & resume very quickly in this case.1 parent b45e338 commit 2385017
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments