How to replace the il2cpp.so file with a stripped version inside an apk?
We can't upgrade just yet to 5.3.4p1 but we need to enable il2cpp. However, the apk size is enormous. I already know how to strip the il2cpp.so but what I don't know is how to intercept the apk from being built to use the stripped library.
How can I replace the *.so file inside the apk with a stripped version? I need to do it automatically during build time. I was told to replace the aapt.exe with a fake one to intercept the building of apk, but I don't know where to get the correct arguments to be able to call the real aapt.exe and build the apk. Does anyone know? Where should I look how Unity builds the apk?
Your answer
![](https://koobas.hobune.stream/wayback/20220612075229im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
When building with il2cpp, there is an error that occurs when the number of scenes is large. 2 Answers
Drastically worse performance with IL2CPP compared to Mono on Android 1 Answer
il2cpp.exe error pls help me and solve out my problem 1 Answer
BOLT's nodes don't work after switching to IL2CPP and doing an AOT Prebuild 1 Answer
Adding .NET STANDARD DLL to unity 0 Answers