News update on Tech, Smartphones, Laptops, Wearable devices, DIY, Gadgets review, specs, upcoming Gadgets, launch dates, how tos, and Tech tips.

How to Combine Split Apk’s into One Apk

 

How to Combine Split Apk’s into One Apk

 

PC with reversing tools e.g. ApkTool or similar Reversing tool on Android e.g. apk editor pro
How to Combine Split Apk’s into One Apk
There are 2 types of split APKs.

One type does have 2 split APKs (base APK + config.architecture APK), the other type does have 4 split APKs in total.

Let’s start first with the easy one, the 2 split APK:
Take the base APK and decompile it.
Take the lib folder of the config.arch APK and add it to the decompiled base APK.
Now open the AndroidManifest.xml in the decompiled base APK and remove this setup: android:isSplitRequired=”true”.
Compile the base APK, sign it or make it unsigned with the META-INF of the base APK.
Done =)
Now to the 4 or more split APK:
This is a bit more complicated.

The 4 split APKs are basically: base APK + config.arch APK + config.mdpi APK + config.random APK

Take the base APK and decompile it
Take all other split APKs and decompile them
Now put all files of the split APKs to the base APK but do not override files (there will be files already existing in the base APK, do not overwrite them!)
Open the AndroidManifest.xml in the decompiled base APK and remove this setup: android:isSplitRequired=”true”
Open the apktool.yml and add in the doNotCompress tag of the base.apk everything you have in the other split APKs
Now you have to do the annoying job to check the .xml files in the APK/res/value folder in all the split APKs and add whats missing inside that files from the other split APKs to the base APK .xml files.
NOTE: This step is time consuming but it can be skipped on some games. Try first if the game works without this step to save time. If it works, skip it.
Compile the base APK, sign it or make it unsigned with the META-INF of the base APK.
Done =)

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More