JesusFreke/smali

how to move the useless classes to a new dex using dexlib2?

xudabeauty opened this issue · 1 comments

i have a apk ,one of dex‘s function number is 65536 ,i want to move useless classes to a new dex,how to to using dexlib2? and i do not want to rebuild using multiDex.

If you have a dex file with more than 65k methods, you need to move them to a new dex file or drop them. What do you mean by 'useless'? I would suggest for this purpose https://github.com/DexPatcher/multidexlib2, it can handle multidex out-of-the-box.