smali icon indicating copy to clipboard operation
smali copied to clipboard

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

Open xudabeauty opened this issue 1 year ago • 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.

xudabeauty avatar Oct 27 '23 09:10 xudabeauty

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.

auermich93 avatar Nov 07 '23 19:11 auermich93