adb root를 해도 restarting adbd as root 이 뜨지 않습니다
문구가 뜨지 않아도 adb rooting이 되었는지 확인하고자
echo "console.log("script loaded.");" > script.js
frida -U -F -l script.js 명령어를치면
____
/ _ | Frida 15.2.2 - 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 Android Emulator 5554 (id=emulator-5554)
No frontmost application on Android Emulator 5554
다음과 같이 No frontmost .. 문구가 나오며 실행되지 않습니다
어떻게 해야할까요?
현재 window에서 powershell로 진행했으며 frida 환경구축중입니다.
우선 질문자님이 확인하고자 하시는게 root 권한 여부, frida 연결 여부 이신가요?
저같은 경우 이 두가지를 확인하는 방법은 간단하게 진행합니다.
1. root 권한 확인
window> adb shell
android$ su root
android# whoami
root
whoami
명령을 통해 root계정으로 전환되었음을 확인하시면 됩니다.
2. frida 연결 여부 확인
window> firda-ps -Uai
..
위 명령어의 옵션은 현재 USB를 통해 attach 된 device의 ps 목록을 출력해줍니다.
질문자님의 경우 Emulator를 사용중이신것 같으니
window> frida-ps -D [ID number] -ai
...
위 처럼 입력해주시면 됩니다.
정상적으로 출력된다면 로컬의 frida와 Emulator의 frida-server와 정상적으로 연결되신 겁니다.
질문자님이 원하시는 답변이실진 모르겠네요..
다른 궁금한 부분이 있으시면 댓글 달아주시면 가능한 답변 드리겠습니다 :)