openatx / adbutils

pure python adb library for google adb service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"invalid decoded string length" when parsing manifest

shidalao opened this issue · comments

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

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.

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