Skip to content

Commit 76943a7

Browse files
committed
fix: do not show usb mode warning on rooted system bridge
1 parent bd70a55 commit 76943a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/src/main/java/io/github/sds100/keymapper/base/promode/SystemBridgeSetupUseCase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class SystemBridgeSetupUseCaseImpl @Inject constructor(
222222
.run { systemBridge ->
223223
// The USB setting does not matter if the system bridge is running as root
224224
// because it doesn't rely on the ADB process.
225-
systemBridge.processUid == Process.SHELL_UID &&
225+
systemBridge.processUid == Process.ROOT_UID ||
226226
systemBridge.usbScreenUnlockedFunctions.toInt() == 0
227227
}
228228
}

0 commit comments

Comments
 (0)