Skip to content

Instantly share code, notes, and snippets.

@konsumer
Created December 2, 2020 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konsumer/d17905909ac7c967f366f493ff9ace84 to your computer and use it in GitHub Desktop.
Save konsumer/d17905909ac7c967f366f493ff9ace84 to your computer and use it in GitHub Desktop.
Script to get frida installed on rooted device
#!/usr/bin/env bash
# get frida installed on your android device
# you should be rooted & have adb & unxz in your path
VERSION="14.0.8-android-arm64"
adb shell "su -c killall -9 frida-server"
if ! adb shell "test -f /data/local/tmp/frida-server"; then
if [ ! -f "frida-server-${VERSION}.xz" ]; then
wget "https://github.com/frida/frida/releases/download/14.0.8/frida-server-${VERSION}.xz"
fi
if [ ! -f "frida-server-${VERSION}" ]; then
unxz "frida-server-${VERSION}.xz"
fi
adb push "frida-server-${VERSION}" /data/local/tmp/frida-server
adb shell "chmod 755 /data/local/tmp/frida-server"
fi
adb shell "su -c '/data/local/tmp/frida-server -D'" &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment