Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Xamarin compressed files #31

Open
jklnz opened this issue Sep 19, 2021 · 9 comments
Open

Support for Xamarin compressed files #31

jklnz opened this issue Sep 19, 2021 · 9 comments
Labels
enhancement New feature or request

Comments

@jklnz
Copy link

jklnz commented Sep 19, 2021

Some files compiled by Xamarin are compressed with LZ4 (see dotnet/android#4686) - would it be possible to add support for this? Another Github user has provided a Python file to decompress it, but it would be nice if it was built in to dnSpy.

@ElektroKill ElektroKill added the enhancement New feature or request label Sep 19, 2021
@jklnz
Copy link
Author

jklnz commented Sep 19, 2021

The other repo that uses Python is: https://github.com/NickstaDB/xamarin-decompress

@ElektroKill
Copy link
Member

I will probably implement this together with #16 as these feature are quite similar.

@ElektroKill
Copy link
Member

ElektroKill commented Oct 6, 2021

Hi, could you provide an example file where this compression is used?

Thanks in advance!

@ElektroKill ElektroKill added this to the 6.2 milestone Oct 6, 2021
@jklnz
Copy link
Author

jklnz commented Oct 7, 2021

DnSpy Sample.zip
Hey,
I have attached four DLL files that I believe are compressed with it.
Thanks

@ElektroKill
Copy link
Member

Hi, would writing to this compressed format also be required? I have already implemented decompression logic for these files locally but I don't know if the File -> Save command should recompress the module when saving?

@jklnz
Copy link
Author

jklnz commented Oct 13, 2021

Hey ElektroKill, I personally would not need it to be saved with compression. I like to look at what is inside... So no compression is probably fine!

@ElektroKill
Copy link
Member

Hi, this feature will not be implemented into 6.2.0. The complexity of implementing it properly (having hex editor, saving, debugging support, etc. working correctly) is much harder than I initially thought paired with the limited interest in this feature. This will be put on hold for now. Sorry!

@ElektroKill ElektroKill removed this from the 6.2 milestone May 20, 2022
@jklnz
Copy link
Author

jklnz commented Jun 14, 2022

Hi ElektroKill - thanks for letting me know, that is no problem at all.

@adricl
Copy link

adricl commented Jul 2, 2022

I have created a c# script to Decompress these files for easy of use. https://github.com/adricl/Xamarin-Dll-Decompressor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants