1

I am using

atrace -z

to get compressed trace file. Is there any way to decompress this file to recover original data

Jitender Dev
  • 6,907
  • 2
  • 24
  • 35
Anonymous
  • 53
  • 1
  • 7

1 Answers1

1

Yes it's possible. There is just one "weird trick" to be done -- atrace prepends all of its output with done\nTRACE:\n string (see the source), so these bytes need to be removed first, and then the rest is just an output from zlib's deflate. See this answer on how to decompress it.

For example (on Linux):

dd if=<compressed-trace-file> bs=1 skip=13 | zlib-flate -uncompress
Community
  • 1
  • 1
Mikhail Naganov
  • 6,643
  • 1
  • 26
  • 26