MaterialFiles icon indicating copy to clipboard operation
MaterialFiles copied to clipboard

Materials Files can Compress but cannot uncompress a file (unzip)

Open ioogithub opened this issue 4 years ago • 11 comments

I created a zip file from the compress function however there is no way for me to extract the file from the archive. In this case I created a zip file.

If I tap the file I get a list of other applications that I can open the file with (Material Files is not on the list and the other apps can't handle zip files either). If I tap to ... next to the file name I get:

Open with Cut Copy Delete Rename Compress Share Copy path Create Shortcut Properties

If I long press the filename I get tools at the top: cut, copy, delete Compress (again) Share and Select all.

There doesn't seem to be a way to decompress a file, a strange omission to allow a file operation one way but not the reverse.

ioogithub avatar Jul 04 '21 01:07 ioogithub

That's strange, this app allows you to open ZIP files directly. See the attached video for how I was able to compress a file and extract it in 3 ways.

https://user-images.githubusercontent.com/4469895/124370462-ff032500-dc2c-11eb-88e9-4b11c72cc597.mp4

zhanghai avatar Jul 04 '21 01:07 zhanghai

I am having the same issue. I think this is related to android 11, since I started having this issue when I changed my phone. I am using MIUI 12.5, Android 11 on POCO X3 Pro.

Lokawn avatar Jul 19 '21 02:07 Lokawn

@Lokawn I tested on a Pixel 4 XL running Android 11 and didn't have this issue. Could you elaborate what you are observing, e.g. what differences are you seeing on your device comparing to my video showing three ways to do it? Meanwhile, is the ZIP file having an archive icon, and what is the Type attribute in the Properties dialog for that ZIP file? (It should be application/zip.)

zhanghai avatar Jul 19 '21 04:07 zhanghai

https://user-images.githubusercontent.com/39772448/126166491-c3b84842-c688-467d-8656-75713ffe021c.mp4

Here is a video from my phone.

Lokawn avatar Jul 19 '21 13:07 Lokawn

I confirm having the same issue on Android 11 (stock rom, unrooted). The device is a RedMagic 6. I'm unable to extract or browse zip files through MaterialFiles but can do so via other file managers on the same device.

0xlne avatar Jul 24 '21 10:07 0xlne

I'm also using Android 11 (PixelExperience) and have no problem with compress and decompress operations. However, if zip file is protected by password I can't descompress.

smarquespt avatar Aug 14 '21 17:08 smarquespt

I have a new device and a new version of Android. I can confirm the issue is still present.

I just did the following:

  1. Long press on a file.txt, select ... and "Compress"
  2. On the "Create archive" screen, I selected .zip and selected OK
  3. Materials Files creates a new zip file called file.zip, the app knows it is a zip file:
  • it is displaying the "zipper" icon.
  • the type attribute is "ZIP archive (application/zip)"
  1. When I tap the file, I get the Open with menu, materials files is not listed as one of the options.
  2. When I press ... from the filename I get a menu with the following entries:

Open with Cut Copy Delete Rename Compress Share Copy path Create shortcut Properties

If I select the file and tap ... in the right title bar I get:

Compress Share Select all

There is no way to unzip or even view the zip file that Materials Files just created.

This is a different phone, different OS and new version of Android, same problem as before.

The videos that were posted simple do not exist, I can't view the file and I can't extract the file.

ioogithub avatar Aug 27 '21 23:08 ioogithub

After some testing, I have additional information. I opened another FOSS file manager from f-droid and was able to easily view and Extract the zip file that Materials File just created.

So same issue as initially reported, Materials Files can create proper zip files that other apps can access but it cannot view or extract those files.

ioogithub avatar Aug 28 '21 00:08 ioogithub

@zhanghai thanks for this great file manager, I really appreciate it. Like other users I have similar issue, I'm using xperia M4 stock 6.0.1 & Material Files v1.4.0, I can't extract a .zip file like the way shown in the video. I try to open the .zip file but then redirect me to other app (office suite) eventhough I don't set open by default on office suit.

That's strange, this app allows you to open ZIP files directly. See the attached video for how I was able to compress a file and extract it in 3 ways.

extract.mp4

zputnyq avatar Mar 10 '22 16:03 zputnyq

I can't reproduce this in any way and the bug doesn't make sense to me (despite I'm sure it happened to you) because the logic for showing those menus are simply depedently on the location (being in internal storage/root) and the MIME type for the file, and @Lokawn has uploaded a video showing that a file on internal storage and having the right MIME type of application/zip is still unable to be opened. It is also strange that this only happens on certain custom ROMs.

The code in question is at https://github.com/zhanghai/MaterialFiles/blob/eb7c3364fc8666d7a8c6a103b49cd6bccdd0ac7f/app/src/main/java/me/zhanghai/android/files/filelist/PathExtensions.kt#L21

I did try to reproduce this on my OnePlus 5, a series of Pixel devices and the Android emulator, but so far still can't reproduce it and have no idea how to fix it...

zhanghai avatar Mar 11 '22 23:03 zhanghai

I have the same question too, on my Honour 50 with Android 11, the App version is 1.4.0.

I just downloaded this App from F-Droid, and amazed by the simple design. I use ZArchiver to process the Zip file before, and I try to create an Zip file with this new app.

But I can't decompress it! I can't find out any button about it, in the context menu and anywhere else.

BTW, the app will be better if you can add a function that allow us to create archive files with password and decompress it.

Amazing App, and it is fully Open-Sourced, keep track of any activity of this repo.

FHU-yezi avatar Mar 28 '22 06:03 FHU-yezi