openatx / adbutils

pure python adb library for google adb service.
MIT License
781 stars 180 forks source link

"invalid decoded string length" when parsing manifest #110

Closed shidalao closed 5 months ago

shidalao commented 5 months ago

The steps to reproduce the issue are as follows:

  1. install app with code device.install(dst_file, nolaunch=True, silent=True), and dst_file is "C:\temp\zfb_10.2.96.8000_apkcombo.com.apk"
  2. error at: venv/Lib/site-packages/apkutils2/axml/chunk.py, function decode_bytes, line 142
shidalao commented 5 months ago

It seems to be a decoding issue. When attempting to decode byte data with a length of 76, the expected length after decoding is 38. However, after trying and using the len() function to calculate, it was found not to equal 38, resulting in an error.

shidalao commented 5 months ago

Also, simply delete that line code will be an alternative to make it right to run.