commit | f821371bd9308cf55bed3e05a0365a6c9d75635c | [log] [tgz] |
---|---|---|
author | Victor Hsieh <victorhsieh@google.com> | Fri Oct 01 10:49:39 2021 -0700 |
committer | Victor Hsieh <victorhsieh@google.com> | Mon Oct 11 12:51:39 2021 -0700 |
tree | ee0c872038202db36d693d1784bad4f5a19cf39b | |
parent | db2ae7963e6b7e540a82a8fb5923fbdd8a9891a0 [diff] |
Add public C API to send request to CompOS The API allows a client to connect to a CID (assumed privileged, more below) and disconnect from it. The client can send an opaque byte array to the "compile" method, which will internall forward the opaque byte array to someone who could unmarshal (not guaranteed, since the client may be untrusted). This API is designed for ART (which is another APEX) to marshal its own private compilation arugments to execute in the VM. In a sense, what matters to the service in the API is the file descriptor lists. It is what compsvc used to set up the "remote FDs". Other than preparing the FDs, the rest is to execute the actual program. In this implementation, ART's code is responsible for providing the command line arguments from the "dexopt context". Bug: 193668901 Test: atest ComposHostTestCases Change-Id: I614b03d3d9916a624237b63925e0168e2146b32a
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.