-
Notifications
You must be signed in to change notification settings - Fork 370
Bug: when parsing APK that requires split APKs, it doesn't set "isSplitRequired" to true #119
Comments
Took me time, but I think I know where it occurs. Just don't know why. Seems that in BinaryXmlParser.readXmlNodeStartTag , it goes over the attributes of the "manifest" tag to search for "isSplitRequired", but the library actually puts this attribute into the "application" tag instead:
For comparison, this is the whole manifest of a split APK file, that I get from the library:
Here I can see the "split" attribute in the "manifest" tag. The parsing is correct : it's supposed to be in the "manifest" tag. But for some reason it didn't get there, but into the "application" tag instead. However, if you run these online tools, for example, you will notice that it's going into the "application" tag, too: So, for now, a workaround is as such:
The reason is that I suspect the split attributes might appear in either of those. Here's a sample project to test on Android with the workaround : |
v2.6.10
I've now tested YouTube APK, and it seems that even though in the manifest XML content that it gets, I can see
android:isSplitRequired="true"
, when checking the apkMeta instance, it's actually false.If you wish, this is the manifest XML content taken from it:
youtube manifest.zip
And attached here the APK that I've tested on:
youtube base.zip
Tested on Android 9, library v 2.6.10
The text was updated successfully, but these errors were encountered: