apk-parser icon indicating copy to clipboard operation
apk-parser copied to clipboard

Apk parser for java

Results 48 apk-parser issues
Sort by recently updated
recently updated
newest added

Happens with the latest version 2.6.9. I had the following code: `Optional iconFile = apkFile.getAllIcons().stream().filter(IconFace::isFile).findFirst();` This crashed with a `NullPointerException`when checking `isFile`. Reason: `getAllIcons()` returns an `AdaptiveIcon` instance. However, both...

For my own testing APK, when I try to call getApkV2Singers, it crashed. java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Buffer.java:506) at java.nio.DirectByteBuffer.getInt(DirectByteBuffer.java:681) at net.dongliu.apk.parser.parser.ApkSignBlockParser.parse(ApkSignBlockParser.java:36) at net.dongliu.apk.parser.AbstractApkFile.parseApkSigningBlock(AbstractApkFile.java:152) at net.dongliu.apk.parser.AbstractApkFile.getApkV2Singers(AbstractApkFile.java:142)

the bytebuff is not closed when using MappedByteBuffer in function findApkSignBlock cause file handler hold

I've tried recently to go over all apps that are installed on the device, and get their names using this library. I've found many that the library fail to parse,...

Those have special attributes in their manifest files, showing that they are indeed split APK files. Attached here the split APK files of AirBnb, for example: [split.zip](https://github.com/hsiafan/apk-parser/files/3268954/split.zip)

Here is the stacktrace ``` Exception in thread "main" java.lang.ExceptionInInitializerError at net.dongliu.apk.parser.parser.ResourceTableParser.parse(ResourceTableParser.java:55) at net.dongliu.apk.parser.AbstractApkFile.parseResourceTable(AbstractApkFile.java:391) at net.dongliu.apk.parser.AbstractApkFile.parseManifest(AbstractApkFile.java:188) at net.dongliu.apk.parser.AbstractApkFile.getIconPaths(AbstractApkFile.java:312) at net.dongliu.apk.parser.AbstractApkFile.getAllIcons(AbstractApkFile.java:251) at Main.downloadApks(Main.java:32) at Main.main(Main.java:16) Caused by: java.lang.NullPointerException at java.io.Reader.(Reader.java:78) at...

![image](https://user-images.githubusercontent.com/955299/48600786-bc737800-e9b0-11e8-87e0-3dd581c1a01c.png) The Result of "apkMeta.getLabel()" is @string/app_name". The version I used was v.2.6.4.

当我调用getApkMeta接口时,就报EOF异常

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