MaterialFiles icon indicating copy to clipboard operation
MaterialFiles copied to clipboard

.tar and .xz support

Open Andro-Master opened this issue 3 years ago • 12 comments

Plz add support for opening .tar and .xz archives

Andro-Master avatar May 25 '22 17:05 Andro-Master

Works fine for me. What exactly isn't working for you?

zhanghai avatar May 26 '22 19:05 zhanghai

Screenshot_2022-05-27-02-53-42-922_me zhanghai android files @zhanghai

Andro-Master avatar May 26 '22 23:05 Andro-Master

I see. Yes, currently archive-only files are supported (e.g. .tar), but compressed-only files aren't (e.g. .xz but not .tar.xz). More logic will be needed to emulate such files as archives.

zhanghai avatar May 30 '22 03:05 zhanghai

There is a problem though - if there is a file named simply .xz, what should be the name of its uncompress content?

zhanghai avatar May 30 '22 03:05 zhanghai

@zhanghai the archive contains a library in the .so format

Andro-Master avatar May 30 '22 04:05 Andro-Master

I know, but I assume that's not an archive file, just a compressed file. TAR is an archive format which internally supports bundling multiple files together, with their names and contents, while XZ is just an extension showing that the file is compressed and doesn't necessarily have that structure.

I assume you would expect opening that file would show that it contains a file named frida-gadget-15.1.22-android-arm64.so, but I don't think that's the actual underlying format because the file isn't e.g. a TAR and there's no place to store that file name. So if you ever see that name, it's probably derived from the actual file by removing the .xz extension. Hence I was asking the question that, what should be the name of the contained file if the compressed file is simply named .xz, which is a perfectly legal file name.

zhanghai avatar May 30 '22 05:05 zhanghai

Perhaps don't support opening a plain .xz file like an archive, just support extracting it. The extracted file should have the same name as the original, just with the .xz removed. Currently that doesn't work either: it shows "Extracting 1", but it doesn't seem to do anything, and tapping on the "log" icon shows an exception.

groszdaniel avatar Apr 11 '23 04:04 groszdaniel