Created
May 20, 2024 21:02
-
-
Save cooperq/83b704262ac1e3acc98c7e8780610aca to your computer and use it in GitHub Desktop.
Get shasums for all android apk files (for scanning in virustotal or whatever)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PKGNAMES=`adb shell "pm list packages | cut -d ':' -f 2"` | |
for pkg in $PKGNAMES; do | |
export PTH=`adb shell "pm path $pkg | cut -d ':' -f 2;"` | |
for pth in $PTH; do | |
adb shell "sha256sum $pth" | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment