안드로이드 에뮬로 웹 브라우저에서 .mp4를 재생해야하는데 안돼서 오늘 좀 힘들었다..
그래도 되는걸 찾았다
R
, API Level이 30
, ABI가 arm64-v8a
, Target에 (Google APIs)
포함된거 선택 (다운로드 필요하면 하면 됨) 후 next~/Library/Android/sdk/emulator
이동./emulator -avd test -writable-system
실행 (에뮬레이터가 쓰기가능으로 실행됨, test
자리에는 설정해놓은 기기이름 넣으면 됨)~Library/Android/sdk/platform-tools
이동./adb devices
로 돌아가고있는 에뮬 확인 (아마도 emulator-5554)./adb -s emulator-5554 root
로 루트권한 획득./adb -s emulator-5554 remount
실행./adb -s emulator-5554 pull ./system/etc/hosts ~
~에 hosts파일 복사됨. (~ 자리에 원하는 경로)127.0.0.1 localhost
대충 이런식으로 되어있을텐데 똑같이 원하는 도메인 추가하면 됨
10.0.2.2 local.test.com
./adb -s emulator-5554 push ~/hosts ./system/etc/hosts
로 다시 복사refs
멍청하면 몸이 고생한다..