Skip to content

Instantly share code, notes, and snippets.

@obfusk
Last active July 29, 2023 18:44
Show Gist options
  • Save obfusk/c361c25d18c62dda2636615852af65c8 to your computer and use it in GitHub Desktop.
Save obfusk/c361c25d18c62dda2636615852af65c8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# dexdump -a -d -f -h classes.dex > classes.dex.dump
sed -i -r 's/^[0-9a-f]{6}: [ .0-9a-f]*\|(\[[0-9a-f]{6}\]|[0-9a-f]{4})?/|/' "$@"
sed -i -r 's! // [a-z0-9_]+@[0-9a-f]+$!!' "$@"
sed -i -r '/(interfaces_off|source_file_idx|annotations_off|class_data_off|superclass_idx|class_idx|method_idx|^Class #|^Annotations on|^ *0x[0-9a-f]{4} line=[0-9]+$)/d' "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment