hsiafan / apk-parser

Apk parser for java
BSD 2-Clause "Simplified" License
1.22k stars 365 forks source link

Request: add a field to tell which kind of APK we have #120

Open AndroidDeveloperLB opened 4 years ago

AndroidDeveloperLB commented 4 years ago

I suggest to add a field that says which kind this APK file is :

AndroidDeveloperLB commented 4 years ago

Seems my algorithm doesn't always do it right.

There is "meta-data" of "com.android.vending.splits" (resource value) which might have a value yet not really mean it has split apks. There is also a "meta-data" of "com.android.vending.splits.required" (boolean value) which doesn't always exist. And, there is "meta-data" of "instantapps.clients.allowed" that is another type of split apks.

So, there should be another type:

And the algorithm should be as such:

Sample project:

https://github.com/AndroidDeveloperLB/apk-parser