1. Checking Android Architecture
adb shell getprop ro.product.cpu.abi
adb shell getprop ro.build.version.release
2. Installing Frida Server on Android
Find the matching Frida server for your architecture at:
https://github.com/frida/frida/releases
Download and extract it.
Push Frida Server to Device
adb push frida-server-< version> -android-< arch> /data/local/tmp/frida-server
Give Execution Permission
adb shell chmod +x /data/local/tmp/frida-server
adb shell /data/local/tmp/frida-server &
Verify Frida Server is Running
3. Installing Frida on Host Machine
Attach to a Running Process
frida -U -n < process_name>
Spawn and Attach to an Application
frida -U -n < package_name> --no-pause
frida -U -n < package_name> -e ' console.log(Module.enumerateModules());'
frida -U -n < package_name> -e ' console.log(Module.findExportByName("libc.so", "open"));'
frida -U -n < package_name> -e '
Interceptor.attach(Module.findExportByName(null, "open"), {
onEnter: function (args) {
console.log("open called with: " + Memory.readUtf8String(args[0]));
}
});'
objection -g < package_name> explore
android sslpinning disable
android hooking list classes
android hooking list methods < class_name>
android hooking watch class_method < class_name> < method_name>
android data sharedpreferences
Interact with SQLite Databases
android database list
android database query < database_name> " SELECT * FROM table_name;"