This repository has been archived by the owner on Sep 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always get a PTY even with newer adb
New versions of ADB have improved the shell command so that it's clean, propagates error codes, and allocates PTYs unconditionally, much like ssh. This last change breaks fb-adb, since we run the inferior adb with pipes for stdio; ADB thinks it's being run non-interactively, skips allocating a PTY on the device side. The remote shell doesn't have a pty itself, so _it_ thinks it's being run non-interactively, so it doesn't print a prompt. Meanwhile, fb-adb hangs because it's waiting forever for a prompt. This change just gets us back to using a PTY unconditionally. We could take advantage of adb fixes to get rid of some of our encoding logic, but that's a separate project.
- Loading branch information
1 parent
8f532a9
commit a256027
Showing
4 changed files
with
162 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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