vidstige / jadb

ADB Client in pure Java.
Apache License 2.0
640 stars 178 forks source link

Do I need to manually close any connections or devices? #144

Closed zhailingzy closed 2 years ago

hhhaiai commented 3 years ago

you mean: adb connect/adb disconnect?

//adb connect 
new JadbConnection().connectToTcpDevice(InetSocketAddress inetSocketAddress)
adb disconnect
new JadbConnection().disconnectFromTcpDevice(InetSocketAddress tcpAddressEntity)
vidstige commented 2 years ago

Please clarify your questions. In short you don't need (and can't) to close JadbDevice nor JadbConnections. They will create a new connection each time they are used currently. But that might change, if they implement AutoCloseable, use that, otherwwise not.