Giter VIP home page Giter VIP logo

Comments (12)

ArcTuruS02 avatar ArcTuruS02 commented on September 2, 2024

Amazfit Band A1702 (midong). I also join with Tom!

from tools.

tomurbanowicz avatar tomurbanowicz commented on September 2, 2024

Amazfit Band - sorry.

from tools.

dpeddi avatar dpeddi commented on September 2, 2024

I've tried to pass the Mili_tempo.res into the tool, but it hangs... by forcing to go over some resouces are extracted. I've tried to figure out the format but currently i have no time to identify it.

from tools.

tomurbanowicz avatar tomurbanowicz commented on September 2, 2024

from tools.

niclet avatar niclet commented on September 2, 2024

I had a look at the last Mili_tempo.res from 3.1.2

  • some bytes before HMRES signature
  • seems to be 811 offsets, no idea where they point to (the last one is 989215 but file size is 305353...)
  • seems to be 241 'BM' sections whose content is quite similar / quite different to Mili_chaohu.res ones

from tools.

dpeddi avatar dpeddi commented on September 2, 2024

The file is compressed with an unknown algorithm that remove redundancy. There are blocks of compressed data with dynamic size.
The header meaning should be: 1 byte of flag, 4 bytes of compressed size, 4 bytes as uncompressed size.
When uncompressed the size of the data should become at the same size of the size declared in the header.
The first and the last chunk of data on the new res file format seems uncompressed.

Inside each chunk there are other "chunk" header that explain the uncompressor where and how many time put the data.

from tools.

niclet avatar niclet commented on September 2, 2024

When you talk about header, do you mean the bytes before HMRES ? or inside each BM section ?

from tools.

tomurbanowicz avatar tomurbanowicz commented on September 2, 2024

The newest RES is quite different
Mili_tempo-newest.zip

from tools.

niclet avatar niclet commented on September 2, 2024

@tomurbanowicz, yes, this is the one we are analysing

from tools.

niclet avatar niclet commented on September 2, 2024

Ok, so, here is what I understand, according to @dpeddi comment

  • first block : 0x4E / compressed size (4 bytes) / uncompressed size (4 bytes)
  • other blocks : 0x4F / compressed size (4 bytes) / uncompressed size (4 bytes)
  • near the end : 0x00 followed by unknown data, maybe last uncompressed block

There is 242 blocks of 4096 bytes (uncompressed size) plus 3311 bytes

from tools.

dpeddi avatar dpeddi commented on September 2, 2024

seems correct... then there are block header, and chunk header. the chunk reader seems parsed and depending on some bit the firmware decide how to use the data near to it however depending.

I'm still trying to figure the relation between the header and the data

from tools.

Eth3rkni6ht avatar Eth3rkni6ht commented on September 2, 2024

Hi,
Since last week there are new faces available. I got the bin file of one of them. I'm interested in doing custom faces, hope you can help. I tried the script but of course it fails:

python dial2img.py -i f7752fb940506ae816ae75569a54c898.bin -u
file is a Haumi resource file
version 0
-177
number of resources: 44
resource 0 | addr: ffffffff | pos on file: fffffffe
ERROR: 0 isn't a bitmap resource
resource 1 | addr: ffffffff | pos on file: fffffffe
ERROR: 1 isn't a bitmap resource
resource 2 | addr: ffffffff | pos on file: fffffffe
ERROR: 2 isn't a bitmap resource
......

Best regards
Face_Midong.zip

from tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.