Hitrava icon indicating copy to clipboard operation
Hitrava copied to clipboard

[SUPPORT] Does not work on MacOS?

Open sasanikolic90 opened this issue 3 years ago • 3 comments

It seems like the app needs 7-Zip to work (7za x -aoa ... command), but that does not exist for MacOS, from what I can see. MacOS is mentioned a few times in the readme, but there are no clear instructions how to use it properly there. I also tried with the tar.gz file, but didn't get any output generated there.

Can we please update the documentation with some clearer instructions in regards to that?

sasanikolic90 avatar Dec 06 '20 20:12 sasanikolic90

I would be glad to add ZIP support for macOS, unfortunately I don't own or have access to a macOS system. But maybe you could help me out?

  • From what I already read, the standard Archiver app in macOS doesn't support AES encrypted ZIP files (such as the one from Huawei).
  • I think an alternative tool on macOS for 7zip could be Keka.

If you could pass me a valid Terminal command for Keka to extract the following file from the Huawei ZIP, I will add support to unzip the file on macOS using Keka and add the installation instructions for it.

Motion path detail data & description/motion path detail data.json

CTHRU avatar Dec 07 '20 09:12 CTHRU

Sorry for the late response.

Based on https://nextleveltricks.net/open-password-protected-zip-mac, I think we can simply use this command: unzip -P password ZIP_FILE -d DESTINATION_FOLDER. Tested it locally with the encoded zip file from Huawei and worked for me.

sasanikolic90 avatar Dec 15 '20 09:12 sasanikolic90

Dear macOS users,

I prepared a test version with support to unzip encrypted Huawei ZIP files based on the information in the comments above. Since I can not test it myself, I put the code in a separate development branch.

You can use the command with the --password argument to test, like below

Hitrava.py --zip HiZip.zip --password your_password_goes_here --json_export

If you tried it out, I would be happy to hear your feedback whether it works or not.

CTHRU avatar Jan 14 '21 14:01 CTHRU