Frida

All the following main commands are implemented in HacknDroid.

Installation

  1. Install frida-tools

  1. Identify the current frida version

Frida-server setup

  1. Download frida-server for the current version of frida (for Android) from here

  2. Move the frida-server on the mobile device

Cheat sheet

List applications

Command
Description

frida-ps -U

List apps on USB device

frida-ps -Ua

List apps including system processes

Attaching a running process

Command
Description

frida -U -n <package_name>

Attach by package name

frida -U <pid>

Attach by PID

Spawn an app and inject script immediately

Other frida tools

frida-trace

Trace native open() calls:

Trace Java methods:

Auto-instrument functions by pattern:

REPL

Interactive JS REPL after attach:

frida-compile

Convert JS module into single file to load simpler:

Last updated