Decode decodes a binary Android XML file to a string.
(ctx context.Context, data []byte)
| 63 | |
| 64 | // Decode decodes a binary Android XML file to a string. |
| 65 | func Decode(ctx context.Context, data []byte) (string, error) { |
| 66 | xmlTree, err := decodeXmlTree(bytes.NewReader(data)) |
| 67 | if err != nil { |
| 68 | return "", log.Err(ctx, err, "Decoding binary XML") |
| 69 | } |
| 70 | return xmlTree.toXmlString(), nil |
| 71 | } |
| 72 | |
| 73 | type rootHolder struct { |
| 74 | rootNode *xmlTree |
nothing calls this directly
no test coverage detected