1. 사전 설정
1. 모바일
개발자 옵션 활성화

OEM 잠금 해제 (메뉴 없으면 생략)

USB 디버깅 허용

2. PC
ADB 설치
- ADB 다운로드
- 환경변수 등록
- 설정앱 > 시스템 > 정보 > 고급 시스템 설정
- 환경 변수 선택
- 시스템 변수 중 Path에 새로 만들기 선택
- ADB 압축 해제한 경로 추가
- adb —version으로 설치여부 확인하기





firmware 및 Odin 설치
netcat 설치
- https://eternallybored.org/misc/netcat/에서 파일 다운로드 및 압축 해제
- 윈도우 보안으로 실패하면 Windows 보안 앱 > 바이러스 및 위협 방지 설정 > 설정 관리 > 실시간 보호 기능 해제 이후에 다시 시도해보기
2. firmware 설치
1. 다운로드 모드
다운로드 모드 진입 (2가지 중 선택)
- 모바일 전원 부팅 시, 볼륨 다운키, 홈키, 전원키를 동시에 누른다.
- adb 연결 후 adb reboot download로 진입한다.

다운로드 모드 상태

2. Odin
다운로드 모드로 진입한 기기 연결

AP에 md5 설정 이후 작업 시작

3. 루팅 작업
디바이스 부팅 확인

BusyBox 앱 설치
- adb를 통한 앱설치
adb devices # adb -d install ${FILE_NAME} adb -d install stericson.busybox_v64-214_Android-4.0.3.apk
- 설치 이후 앱 실행하여 필요한 권한 및 파일 설치 진행

- 앱 기본 작업 완료

4. 이미지 획득
adb를 통한 dd 작업
adb devices adb forward tcp:8888 tcp:8888 # nc를 위한 포트포워딩 adb shell > su # 시스템 권한 획득 > busybox fdisk -l /dev/block/mmcblk0 # 데이터 크기 확인 > dd if=/dev/block/mmcblk0 | busybox nc -l -p 8888 # dd 작업
nc를 통한 이미지 파일 획득
nc 127.0.0.1 8888 > android_fs.dd
명령어 관련 스크린샷
