Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Mitch

An unofficial Android client for itch.io · By gardenapple

Doesn't detect Android game in .zip file as installed

A topic by TheLastProject created Mar 14, 2022 Views: 193 Replies: 6
Viewing posts 1 to 4

First of all, I want to say this app is great and I am very happy that you went through the trouble of providing an F-Droid version too, thank you! I am also glad to hear you're safe, may this awful and unjustified war end soon :(

I noticed one of the games in the new Ukraine bundle, Detective Case and Clown Bot in: Murder in The Hotel Lisbon, doesn't show up as installed:

The reason is very obvious: the Android version isn't distributed as a .apk but as a .zip, forcing me to install outside of Mitch and thus obviously Mitch doesn't understand the unzipped APK belonged to this game. This is definitely not something I would consider Mitch's fault, but it is something I think can be worked around relatively easily.

My suggestion would be to have some kind of built-in unzipping that can extract the .apk file from the .zip (what to do if no apk file or multiple? just fail? ask the user to choose one? not sure...).

I would suggest using Zip4j for that: https://github.com/srikanth-lingala/zip4j. I have used this library before in my own Android app and thus can help with this feature if wanted.

Developer(+1)

Thank you for your suggestion, I’ve definitely thought about this before, and I believe the desktop app unpacks archives automatically, but for me it’s kind of a low priority. The current behavior is “okay” since Mitch treats “downloads” the same way as Installed games, meaning you will receive updates, you’re just gonna have to unpack them manually everytime. Not great but it works for now.

The last time I looked at this I saw the Java standard library had java.util.zip, so I was kinda hoping to just use that, though of course it only handles .zip and not any other archive format, so maybe I will look at alternatives.

> The current behavior is “okay” since Mitch treats “downloads” the same way as Installed games, meaning you will receive updates

Oh that's really awesome. I was under the impression that Mitch wouldn't notify me given it wasn't listed under Installed. Awesome to hear Mitch is smart enough to even behave correctly in such a complex case :)

Developer(+1)

Looks like the library you suggested also handles only .zip. I’m of course not opposed to adding more third-party libraries, but I feel like the standard library might be enough for what I’m doing.

Ah, I forgot about the standard library. I ended up having to use zip4j as I needed support for password-protected zip files which the standard library doesn't support, but I can't imagine any Itch game coming in a password-protected zip file so indeed you may not need the third-party library yeah.

Developer(+1)

I might actually add this in the next update as this is not the first time I hear about this, and I recently did some refactoring which should make this easier to program.

Cool! Feel free to ping me if there's anything I can help with to move this forward (though seeing how amazingly well Mitch works I don't expect you to need any help) :)