[22.02.03] APEX

min·2022년 2월 3일
0

TIL

목록 보기
1/1
post-thumbnail

[APEX 공식] README.md

  • APEX 설치
adb install [apex_file_name]
adb reboot
  • CAPEX = Compressed APEX
    - original_apex : 원본
    - apex_manifest.pb, AndroidManifest.xml, apex_pubkey : 원본의 복사본
  • 이 APEX 파일이 CAPEX가 될 수 있는지 알 수 있는 법
    Compressible: true 이면 CAPEX가 될 수 있음
    모든 APEX가 CAPEX가 될 수 있는 것이 아니기 때문에 이러한 명시가 필요함
apex {
    name: "apex.test",
    manifest: "apex_manifest.json",
    file_contexts: "file_contexts",
    compressible: true,	<<<
}
  • 빌드 시스템에서 생성된 압축 APEX 파일의 확장자는 .capex입니다. 이를 통해 APEX의 압축된 버전과 압축되지 않은 버전을 쉽게 구별할 수 있습니다.

  • 부팅하는 동안의 CAPEX 활성화

    • CAPEX를 활성화하기 전에, 그 안의 original_apex 파일이 /data/apex/decompressed 폴더에 압축이 풀린다.
    • 압축 해제된 apex 파일은 /data/apex/active 폴더로 하드링크 된다.
    • /data/apex/active 의 .apex 파일은 기존 apex 파일의 flow를 따른다.
profile
Android Framework Developer

0개의 댓글