- 프리다를 통해 APK 파일 스폰(Spawn) 시 아래 오류가 발생하였다.
Failed to spawn: unexpectedly timed out while waiting for signal from process ...
frida -Uf {APK 패키지명} -l .\hooking.js
____
/ _ | Frida 16.7.19 - A world-class dynamic instrumentation toolkit
| (_| |
> _ | Commands:
/_/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at https://frida.re/docs/home/
. . . .
. . . . Connected to SM T725N (id=R54N40453PN)
Failed to spawn: unexpectedly timed out while waiting for signal from process with PID 19907USAP 관련 오류
출처: https://naro-security.tistory.com/25 [naroSEC:티스토리]
해당 오류가 발생하는 이유는 “USAP”으로 안드로이드 OS 10.0 이상 버전에서 포함된 기능이며, 앱 실행 속도를 높이기 위해 사용된다. 다만, 일부 삼성 스마트폰에서 해당 옵션이 활성화 된 상태에서 프리다를 실행한 경우 오류가 발생한다. 따라서, 해당 옵션을 비활성화 해주면 된다.
- adb를 이용하여 안드로이드 쉘에 접속한 후 USAP 옵션을 비활성화 해주면 된다.
- (프리다 서버가 실행중이었다면, 종료 후 프리다 서버 재시작)
gts4lv:/data/local/tmp # setprop persist.device_config.runtime_native.usap_pool_enabled false- 프리다로 애플리케이션을
spawn해보면 앱이 정상적으로 실행된다.
frida -Uf {APK 패키지명} -l .\hooking.js
____
/ _ | Frida 16.7.19 - A world-class dynamic instrumentation toolkit
| (_| |
> _ | Commands:
/_/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at https://frida.re/docs/home/
. . . .
. . . . Connected to SM T725N (id=R54N40453PN)
Spawning `{APK 패키지명}`...
Attach
Spawned `{APK 패키지명}`. Resuming main thread!
[SM T725N::{APK 패키지명} ]-> message: {'type': 'send', 'payload': 'Loaded 34729 classes!'} data: None
message: {'type': 'send', 'payload': 'loaded: -1'} data: None
message: {'type': 'send', 'payload': 'ProcessManager hook not loaded'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None
message: {'type': 'send', 'payload': 'Bypass native fopen'} data: None🐛.. 🐛.. 🐛..
Reference
- https://naro-security.tistory.com/25 [naroSEC:티스토리]