Comments (12)
Amazfit Band A1702 (midong). I also join with Tom!
from tools.
Amazfit Band - sorry.
from tools.
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.
from tools.
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.
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.
When you talk about header, do you mean the bytes before HMRES ? or inside each BM section ?
from tools.
The newest RES is quite different
Mili_tempo-newest.zip
from tools.
@tomurbanowicz, yes, this is the one we are analysing
from tools.
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.
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.
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)
- res2img and problem with change some pictures HOT 1
- Error with res2img.py HOT 1
- Watch face editor HOT 1
- zh-cn2en.py and problem with space character HOT 5
- dial2img.py and problem with unpack *.bin file
- How to generate zh-cn2en.txt from firmware?
- create new language
- how to pull language txt from firmware amazfit bip?
- bip font HOT 1
- res2img.py - new resource format since MiFit 3.2.8 HOT 1
- GPS not tracking HOT 2
- any plans to update zh-cn2en.py and base text files for latest firmware?
- Combining character HOT 1
- Unable to extract .json from .bin file
- I prepared new font. How can I build firmware for AMAZFIT COR? HOT 1
- bipfont.py unpack is not working HOT 1
- REQUEST: Add compatibility with Mi Band 4? HOT 3
- Memory Error with latest resource file HOT 1
- bipfont not working in T-Rex fonts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tools.