Android Emulator를 실행한 후 SD Card에 adb를 이용하여 file push 할때 "read-only file system" 에러 메세지가 나타난다면 "/build/core/main.mk" 파일의 내용을 확인해야 한다. 해당 make파일에 버그가 존재하기 때문이다.
- There is a packaging bug that prevents the mount daemon from properly.
- 자세한 내용은 아래 구글 코드 변경 내역을 참조하기 바란다.
- https://review.source.android.com/#change,9452
참고로 아래 내용은 리눅스 환경에서 작업하였다.
1. https://review.source.android.com/#patch,sidebyside,9452,1,core/main.mk 사이트 참고하여 아래 내용을 main.mk 파일에 추가
# Install a vold.conf file is one's not already being installed.
ifeq (,$(filter %:system/etc/vold.conf, $(PRODUCT_COPY_FILES)))
PRODUCT_COPY_FILES += \
development/data/etc/vold.conf:system/etc/vold.conf
ifeq ($(filter eng tests,$(TARGET_BUILD_VARIANT)),)
$(warning implicitly installing vold.conf)
endif
endif
2. Build
/home/user/android1.6_SDK$ make
3. SD Card Create
/home/user/android1.6_SDK$ mksdcard 32M sdcard.img
4. Emulator launch with SD Card
/home/user/android1.6_SDK$ emulator -sdcard sdcard.img
5. SD Card Data Write
/home/user/android1.6_SDK$ adb push test.txt /sdcard

Leave your greetings.