ResPack: format specification

Resource file found in CPB firmware archives, mostly used on older CoolPad phones and/or tablets. The only observed files are called "ResPack.cfg".

File extension

cfg

KS implementation details

License: CC0-1.0

This page hosts a formal specification of ResPack using Kaitai Struct. This specification can be automatically translated into a variety of programming languages to get a parsing library.

Block diagram

Format specification in Kaitai Struct YAML

meta:
  id: respack
  title: ResPack
  file-extension: cfg
  license: CC0-1.0
  encoding: UTF-8
  endian: le
doc: |
  Resource file found in CPB firmware archives, mostly used on older CoolPad
  phones and/or tablets. The only observed files are called "ResPack.cfg".
seq:
  - id: header
    type: header
  - id: json
    size: header.len_json
    type: str
types:
  header:
    seq:
      - id: magic
        contents: "RS"
      - id: unknown
        size: 8
      - id: len_json
        type: u4
      - id: md5
        size: 32
        type: str
        doc: MD5 of data that follows the header