NickstaDB / xamarin-decompress

Decompress Xamarin .NET compressed binaries so they can be decompiled.
MIT License
44 stars 10 forks source link

Add compress function? #1

Open nourmuj opened 3 years ago

nourmuj commented 3 years ago

Can you add a new function to compress the DLL file after decompressing to add the DLL again to the apk?

NickstaDB commented 2 years ago

Hi @nourmuj, I'm not sure there's any need to implement compression. The loader should be able to determine whether the DLL is compressed or not and handle it accordingly. Have you found a case where this is not true?

timea-techgirl commented 1 year ago

@NickstaDB APKs now have assemblies.blob file in the assets folder which can be unpacked with https://github.com/jakev/xamarin-assembly-store-unpack

This produces the LZ4 compressed assemblies which can be decompressed with this script. It needs to be compressed back to LZ4 and finally into assemblies.blob. It would be very helpful if you can add a compress function.