commit | d650235cf4b2eaeb0373043d5f020f12f8a73de0 | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Thu Jan 27 01:07:30 2022 +0900 |
committer | Jiyong Park <jiyong@google.com> | Thu Jan 27 01:17:25 2022 +0900 |
tree | dda5eb7f747e827c87885b2ad429897e831a8294 | |
parent | a919ef7002463544fa9c79b015ac663e5c610701 [diff] |
Pass isFactory bit from host to Microdroid via payload metadata The isolated compilation usecase demands that isFactory bit of an APEX is the same across VM and host. This is because the bit is encoded in the compiled artifact (in the VM), and matched against the same bit on the host side. This is now done by (1) reading isFactory bit from /apex/apex-info-list.xml and (2) send the bit to the VM by writing it to payload metadata. (3) On the VM side, apexd records the bit to /apex/apex-info-list.xml. (See the other CL in the same topic for the last step). Bug: 210998761 Test: adb shell /apex/com.android.compos/bin/composd_cmd staged-apex-compile Change-Id: I69dd73357132812766867db13f0f5cb9958bb113 Test: (1) build any APEX (e.g. com.android.virt) and install it (2) add the name of the APEX to vm_config.json of the test app. (3) run the test app and adb shell into the VM (4) check /apex/apex-info-list.xml has isFactory="false" for the apex. Change-Id: Iaed1e2c9b232a6e9a58a0624adb5044d06d88d2b
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.