Information Security/Android
Frida Build & Debug Using Logs For Android
hackcatml
2024. 8. 31. 17:35
반응형
MacOS, frida v16.4.10 android-arm64 빌드 및 디버깅(log 찍기) 하기
◼︎How to build
// clone
git clone --recurse-submodules https://github.com/frida/frida.git
cd frida
// ndk 환경변수 설정
export ANDROID_NDK_ROOT=$HOME/Library/Android/sdk/ndk/25.0.8775105
// configure & make
mkdir android-arm64 && cd android-arm64
../configure --host=android-arm64
make
// build output
frida-server 위치: frida/android-arm64/subprojects/frida-core/server/frida-server
frida-gadget 위치: frida/android-arm64/subprojects/frida-core/lib/gadget/frida-gadget.so
frida-inject 위치: frida/android-arm64/subprojects/frida-core/inject/frida-inject
◼︎How to debug using logs
관심 있는 구간에 g_info 집어 넣고 빌드
adb logcat -s "Frida"
반응형