Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

流式解析中文乱码 #90

Open
dreamloserlvv opened this issue Apr 17, 2019 · 1 comment
Open

流式解析中文乱码 #90

dreamloserlvv opened this issue Apr 17, 2019 · 1 comment

Comments

@dreamloserlvv
Copy link

由于下载下来apk对内存等资源不可控,所以想采用流式解析apk,
尝试参考ByteArrayApkParser写了一个InputStreamApkParser,通过url的connection把流传进去。
结果解析到name为中文的时候,中文名变成了resourceId:0x7f040000
AndroidManifest的二进制文件我对比了下,完全一样,用普通的apkParser就可以,想问下这是问什么

@hsiafan
Copy link
Owner

hsiafan commented Apr 18, 2019

ByteArrayApkParser并不是一个流式的实现,还是会倒回去读一些文件。你这个现象应该是是没有找到和加载的resource table

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants