mirror of
https://github.com/Benjamin-Wiegand/Flywheel.git
synced 2026-07-20 05:22:25 -07:00
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:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user