You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a xamarin application and its files are compressed using lz4 I could easily decompress the files it using lz4.block.decompress but I couldn't compress it again, can anyone help me with that?
I used the following script to decompress the file and I could read the content of the DLL file but when I modified something and try to recompress it again to patch the APK file I couldn't compress the file in the right format.
withopen(input_filepath, "rb") asxalz_file:
data=xalz_fileheader=data.read(8)
ifheader[:4] !=b"XALZ":
sys.exit("The input file does not contain the expected magic bytes, aborting ...")
payload=data.read()
decompressed=lz4.block.decompress(payload)
withopen(output_filepath, "wb") asoutput_file:
output_file.write(decompressed)
output_file.close()
print("result written to file")
Note that I couldn't decompress or compress the DLL file using lz4tools.
The text was updated successfully, but these errors were encountered:
I have a xamarin application and its files are compressed using lz4 I could easily decompress the files it using
lz4.block.decompress
but I couldn't compress it again, can anyone help me with that?I used the following script to decompress the file and I could read the content of the DLL file but when I modified something and try to recompress it again to patch the APK file I couldn't compress the file in the right format.
Note that I couldn't decompress or compress the DLL file using
lz4tools
.The text was updated successfully, but these errors were encountered: