Skip to content

Instantly share code, notes, and snippets.

@wowkin2
Created July 5, 2024 09:19
Show Gist options
  • Save wowkin2/659f6012893ba30a1e1999ebaab40e8b to your computer and use it in GitHub Desktop.
Save wowkin2/659f6012893ba30a1e1999ebaab40e8b to your computer and use it in GitHub Desktop.
Decompile DEX files
#!/bin/bash
# Before running make file executable:
# chmod +x decompile.sh
# And check Android SDK version (in this case it is - 33.0.1)
# Create directory
mkdir "decompiled"
# Find all files in root folder and decompile:
for filename in *.dex; do
echo "Processing file: $filename"
~/Library/Android/sdk/build-tools/33.0.1/dexdump "$filename" > "decompiled/$filename.java"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment