AOSP 소스를 다운받고 빌드를 하면, 빌드된 이미지를 Emulator로 실행시킬 수 있습니다.
이 때, /system
partition에 apk를 넣으려면 adb remount
명령어로 /system
을 writable로 만들어야 합니다.
하지만 다음과 같이 명령어를 수행해도 remount failed
됩니다.
$ adb remount
Skip mounting partition: /product
...
Skip mounting partition: /product_services
E Consider providing all the dependencies to enable overlayfs
/system/bin/remount exited with status 10
remount failed
문제 해결
remount를 성공시키려면, 다음과 같이 emulator를 실행할 때 writable로 실행해야 합니다.
$ emulator -writable-system
emulator: WARNING: System image is writable
....
이제 다시 adb remount
명령어를 입력해보면 remount가 성공하는 것을 볼 수 있습니다.
$ adb remount
Skip mounting partition: /product
Skip mounting partition: /product_services
[libfs_mgr]__mount(source=overlay,target=/vendor,type=overlay,upperdir=/mnt/scratch/overlay/vendor/upper)=0
Skip mounting partition: /product
Skip mounting partition: /product_services
remount succeeded
Recommended Posts:
- AIDEGen으로 IDE에서 Android Framework 개발
- Android - adb shell input 명령어 사용 방법
- Android - App VersionCode, VersionName 등 설치 정보 확인
- Android - Call Stack 출력하는 방법
- Android 앱의 SQLite DB 테이블 확인
- Java 코드를 DEX로 변환, 안드로이드 디바이스에서 실행
- Android - adb로 실행 중인 프로세스, 쓰레드 리스트 & 메모리 정보 확인
- Android - PlayStore 앱 설치(다운로드) 화면으로 이동하는 방법
- Android - 파일의 MimeType(확장자) 가져오는 방법
- Mockito cannot mock/spy final class 에러 해결 방법
- Android Studio에서 Google Test로 C++ unit 테스트 작성
- Android - Native(C++)에서 Call stack 출력하는 방법
- 안드로이드 스튜디오, custom framework.jar로 빌드하기