feat: wait longer for shizuku connection

some phones restart adbd on USB connection, which kills the shizuku connection. this is a workaround that makes it easier to restart shizuku before the connection times out
This commit is contained in:
Benjamin Wiegand
2026-03-29 12:06:12 -07:00
parent c01ace38c6
commit e403939848
2 changed files with 2 additions and 2 deletions
@@ -21,7 +21,7 @@ import rikka.shizuku.Shizuku;
public class ShizukuPrivdLauncher extends PrivdLauncher implements GeargrinderServiceConnector.ConnectionListener {
private static final String TAG = ShizukuPrivdLauncher.class.getSimpleName();
private static final long SHIZUKU_CONNECTION_TIMEOUT = 10000;
private static final long SHIZUKU_CONNECTION_TIMEOUT = 20000;
private final Object lock = new Object();
@@ -4,7 +4,7 @@ public class IPCConstants {
public static final long PING_INTERVAL = 1000;
public static final long PING_TIMEOUT = 5000;
public static final long BIND_TIMEOUT = 7000;
public static final long BIND_TIMEOUT = 20000;
public static final int TOKEN_LENGTH = 1024;