how to unpack resources.pak from google chrome?

前端 未结 3 1535
有刺的猬
有刺的猬 2020-12-07 19:22

There are bunch of interesting files accessible via chrome://resources/* using google chrome.

On linux That the content is in /opt/google/chrome/r

3条回答
  •  旧时难觅i
    2020-12-07 19:55

    taken from https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-dev/agGjTt4Dmcw

    4 byte version number
    4 byte number of resources
    1 byte encoding

    For each resource:
    2 byte resource id
    4 byte resource offset in file

    There is an extra resource entry at the end with ID 0 giving the end of the last resource (which is essentially the length of the file)

    This python module can unpack and repack files:
    data_pack.py from grit-i18n

提交回复
热议问题