kaitai-io / kaitai_struct_formats

Kaitai Struct: library of binary file formats (.ksy)
http://formats.kaitai.io
707 stars 203 forks source link

Android binary XML #450

Open KOLANICH opened 3 years ago

KOLANICH commented 3 years ago
meta:
  id: android_binary_xml
  title: Android binary XML
  application: Android
  -filename-regexp: (?:resources\.arsc|.+\.xml)  # In resources of APKs most of XML files are encoded like this

doc: |
  A file format storing some XML data in Android APKs, transformed for better efficiency.

doc-ref:
  - https://android.googlesource.com/platform/frameworks/base.git/+/master/libs/androidfw/include/androidfw/ResourceTypes.h
  - https://github.com/rednaga/axmlprinter
  - https://github.com/antitree/AxmlParserPY
  - https://github.com/hradecek/apk2xml
  - https://github.com/armijnhemel/binaryanalysis-ng/blob/534afee3c8862776251084a0e27bc26abf3da862/src/bangandroid.py#L1726

@armijnhemel

armijnhemel commented 3 years ago

https://github.com/kaitai-io/kaitai_struct_formats/pull/287

is possibly related.

KOLANICH commented 3 years ago

Surely related, just a too narrow name that I haven't found it (and it seems GH doesn't search in PR contents, only in discussion texts and titles). Makes sense to rename and add Fixes: there.