openatx / adbutils

pure python adb library for google adb service.
MIT License
728 stars 173 forks source link

fix: Fixes undecodable bytes encountered #99

Closed codematrixer closed 7 months ago

codematrixer commented 7 months ago

adb server有问题,输出了无法解码的字节,需要兼容下。当然重启下adb server也能恢复

image
codematrixer commented 7 months ago

那就直接return self.read(n).decode('utf-8', 'replace')吧?

codeskyblue commented 7 months ago

已经改过了,具体在这个地方 https://github.com/openatx/adbutils/commit/6fbfd571c843facf7297f2a6319ca30da2d03d4e