AndroidManifest.xml의 android:debuggable="true"일때

1. adb shell 접속
cmd >> adb shell
adb >> su

2. PID 확인
adb >> ps | grep "앱이름"

3. dumpheap을 이용한 메모리 덤프
adb >> am dumpheap PID /data/local/tmp/test.hprof
adb >> cm /data/local/tmp
adb >> chmod 777 test.hprof
adb >> strings test.hprof > test.txt

4. 덤프파일 PC로 가져오기
cmd >> adb pull /data/local/tmp/test.txt C:\Users\admin\Desktop

'Study > Mobile' 카테고리의 다른 글

안드로이드 - 루팅 & 순정 복구  (1) 2023.11.14
Android - 리패키징  (0) 2023.10.06
Android - Frida 후킹  (2) 2023.10.06
Android 취약점 진단 시 참고  (0) 2022.11.29

+ Recent posts