Skip to content

Talk to Android devices through the adb binary - #2565

Open
soulgalore wants to merge 2 commits into
mainfrom
replace-adbkit-with-adb-cli
Open

Talk to Android devices through the adb binary#2565
soulgalore wants to merge 2 commits into
mainfrom
replace-adbkit-with-adb-cli

Conversation

@soulgalore

Copy link
Copy Markdown
Member

adbkit was only used for a handful of shell, pull, push, forward and reboot calls, while the same file already shelled out to adb for port forwards and device state. Keeping both meant every install paid for adbkit and its transitive packages, inclrge, to reach an adb serveradbkit was only used for push, forward and rebootcalls, while the same fildb for port forwards anddevice state. Keeping bot for adbkit and itstransitive packages, including bluebird and node-forge, to reach an adb server that requires the adb binary to be installed anyway. Using the binary directly removes that cost and drops the stream plumbing around each shell commandadbkit's semantics: mergedoutput and no rejection on a non-zero exit, so callers that inspect the output keep working.

Co-Authored-By: Claude Who?

adbkit was only used for a handful of shell, pull, push, forward and reboot calls, while the same file already shelled out to adb for port forwards and device state. Keeping both meant every install paid for adbkit and its transitive packages, inclrge, to reach an adb serveradbkit was only used for push, forward and rebootcalls, while the same fildb for port forwards anddevice state. Keeping bot for adbkit and itstransitive packages, including bluebird and node-forge, to reach an adb server that requires the adb binary to be installed anyway.
Using the binary directly removes that cost and drops the stream plumbing around each shell commandadbkit's semantics: mergedoutput and no rejection on a non-zero exit, so callers that inspect the output keep working.

Co-Authored-By: Claude Who?
Change-Id: Ifdda93573e444e030f7d57254e7f834ac8c7ecb0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant