Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal exception occurred when using device.install() for some apks #125

Open
Ryan-Deng opened this issue May 16, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Ryan-Deng
Copy link

Traceback (most recent call last):
File "D:\workspace\TestUtility_OTAUpgrade\common.py", line 317, in
d.install(r'D:\workspace\TestUtility_InstallTime\test_apks\subdir\com.eg.android.AlipayGphone_921.apk')
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\retry\api.py", line 73, in retry_decorator
return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\retry\api.py", line 33, in retry_internal
return f()
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\adbutils\install.py", line 90, in install
package_name = apk.manifest.package_name
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2_init
.py", line 211, in manifest
return Manifest(self.get_org_manifest())
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2_init
.py", line 180, in get_org_manifest
self.init_manifest()
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2_init
.py", line 215, in _init_manifest
self.init_org_manifest()
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2_init
.py", line 202, in init_org_manifest
raise e
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2_init
.py", line 200, in init_org_manifest
raise e
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2_init
.py", line 196, in _init_org_manifest
axml = AXML(data)
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2\axml\axmlparser.py", line 360, in init
self.parse()
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2\axml\axmlparser.py", line 405, in parse
self.buff += "%s\n" % self.parser.get_text()
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2\axml\axmlparser.py", line 234, in get_text
return self.sb.getString(self.m_name)
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2\axml\chunk.py", line 111, in getString
self._cache[idx] = self.decode16(offset)
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2\axml\chunk.py", line 137, in decode16
return self.decode_bytes(data, 'utf-16', str_len)
File "D:\workspace\TestUtility_OTAUpgrade.venv\lib\site-packages\apkutils2\axml\chunk.py", line 142, in decode_bytes
raise Exception("invalid decoded string length")
Exception: invalid decoded string length

@codeskyblue codeskyblue added the bug Something isn't working label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants