KiTTY
KiTTY copied to clipboard
[Bug] KiTTY (0.76.0.1): ADB connection fails.
Thank you @cyd01 for the new version! 👍
In this new version it seems that the ADB support is broken or not implemented. With the same configuration I can open the ADB shell with KiTTY 0.74.4.13p, but with the version 0.76.0.1p it fails. Both binaries are in the same directory, so the configuration is the same. With the new version the session never happens.
Perhaps you know it, but I prefer to comment it. Regards.
Ok I've added it to the list.
The fact is that I don't know what ABD is :-(
Hard to test it.
The fact is that I don't know what ABD is :-( Hard to test it.
😨 I can't belive it!
OK. ADB is the connector to open a shell session inside any Android device. To use it, you need to have installed it in Windows. Then you can connect the Android device (smartphone with debug enabled, or the emulator) using the adb.exe. And when you are connected, then you can open the session (shell) from KiTTY using the "ADB" protocol.
It's very useful.
Hi @cyd01 ,
This page https://github.com/cyd01/KiTTY/blob/master/docs/pages/0.75.md says: not available anymore .
It will be possible that you'll reintroduce the ADB patch at some point?
Quite complicated ! The repo https://github.com/sztupy/adbputty says it was last updated ... 11 years ago.
Le mer. 17 nov. 2021 à 12:49, Lars The @.***> a écrit :
Hi @cyd01 https://github.com/cyd01 ,
This page https://github.com/cyd01/KiTTY/blob/master/docs/pages/0.75.md says: not available anymore .
It will be possible that you'll reintroduce the ADB patch at some point?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cyd01/KiTTY/issues/336#issuecomment-971505409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIESOBQEWXXKDXWCTRCHIPDUMOJGNANCNFSM5H2T63SA .
Quite complicated ! The repo https://github.com/sztupy/adbputty says it was last updated ... 11 years ago.
Yeah! But the patch is quite encapsulated, so I feel it will be easy to maintain it. In fact, it only appears as an another protocol connection. And recentlty the original PuTTY has added a lot of new protocols, includins some very older. So, I feel it will be easy to continue supporting it, as the ADB tool just works as a PIPE for input/output.
Therefore, please you can almost keep the code inside KiTTY and I'll try to test it by myself at some point?
Regards.
Hi @cyd01 ,
Regarding the ADB support, perhaps you want to read this guide: https://www.shangmayuan.com/a/8ef3fa8d84864b2aab67dbe7.html
I tested it using the last version, and it works. So perhaps it will be preferable to provide a simple "scripting" support for it. Regards.
Here a simple Session configuration that works out the box, so no special patch implied:
- Create a session and configure with:
- Host: 127.0.0.1
- Port: 5037
- Terminal: Set "Force off" for both "Local echo" and "Local line editing" (That's very IMPORTANT)
- Session/Scripting: Select "Replay" for this a saved in your session directory (use Browse) with this content:
0012host:transport-any
:OKAY
0006shell:
:OKAY
But first you have to start the adb daemon. So execute first adb.exe devices in your desktop command.
And that's all! if you need other ADB protocols check:
- transport-any (either usb or local emulator)
- transport-usb (the only usb device)
- transport-local (the only emulator)
- transport:SERIALNUMBER (the concrete device with the appropriate serial number)
I hope this helps and you can remove this patch. But please document this for reference. Regards.