Repository navigation
Allow authorization of known public keys in the tcp usb bridge - #540
Merged
Merged
Conversation
Signed-off-by: Yishai Yosifov <[email protected]>
koral--
approved these changes
Nov 19, 2024
Author
|
@koral-- can you update the version please? |
Member
|
Done |
UrielCh
added a commit
to UrielCh/adbkit
that referenced
this pull request
Jul 2, 2025
koral--
pushed a commit
that referenced
this pull request
Oct 13, 2026
) node-forge's verify() throws instead of returning false when it can't verify a signature: one made by another key ('Encryption block is invalid'), or one with the wrong length or no bytes ('Encrypted message length is invalid'). The known-public-keys loop (#540) calls it for every key, so a client whose signature isn't from the first known key gets an error instead of a new challenge. The socket emits that error and the server re-emits it; STF treats any error from the bridge as fatal and restarts the device. STF passes all of the device owner's adb keys, so anyone with two keys hits it. Treat a throw as a mismatch, in the loop and in the RSAPUBLICKEY check, and reject a missing signature as an AuthError, which only closes the connection. Signed-off-by: Arthur Yazhevich <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an option to provide trusted public keys.
This prevents a "failed to authenticate" message from adb whenever you connect to a device