Commit Graph

4 Commits

Author SHA1 Message Date
Inseob Kim a5a262f292 Add a parameter for extra apks to payload config
Users can pass extra apks and corresponding idsigs to the VM, by setting
extra_apks property to the payload config.

Bug: 205224817
Test: add extra_apks, vm run-app, see /dev/block/by-name/extra-apk-0 and
/dev/block/by-name/extra-idsig-0

Change-Id: I7908788a163d6ff7b90bb008fc326eb23d1611bb
2021-11-19 19:11:50 +09:00
Jooyung Han 5dc421758b virtualizationservice: "prefer_staged" for apexes
App can tell virtualizationservice to use "staged" apexes for its
payload.

  // vm_config.json
  {
    ..
    "perfer_staged": true
  }

Bug: 199146189
Test: MicrodroidHostTestCases
Test: adb install --staged new-adbd.apex
      vm run-app with prefer_staged: true, started with staged adbd apex
Change-Id: I6320247362e07519e120aed19b290618270e1335
2021-10-05 20:03:12 +09:00
Jooyung Han 21e9b928ef Virtualizationservice makes payload disk image
with given APK, idsig, and config file.

To exercise the new execution mode, 'vm run-app' sub command is added.

  $ vm <apk_path> <idsig_path> <config_path>

For example,

  $ vm /data/local/tmp/MyApp.apk /data/local/tmp/MyApp.apk.idsig \
    assets/config.json

Bug: 190503456
Test: MicrodroidHostTestCases, VirtualizationTestCases
Change-Id: Iceec9b34e9785a1ae36452bfc2653c3c045f4dfa
2021-06-30 09:52:32 +09:00
Jooyung Han 634e2d7048 microdroid_manager executes a task via microdroid_launcher
Task can be one of "executable" or "microdroid_launcher".
When it is a microdroid_launcher task, microdroid_manager find the
target library in /mnt/apk/lib/{abi}/, and then executes it via
microdroid_launcher.

Bug: 186396080
Test: MicrodroidHostTestCases
Test: /system/bin/microdroid_manager in microdroid launched with
   default configuration.
   it should run testapk's MicrodroidTestNativeLib.so
Change-Id: I065f5c5d789e6a96fd658a52ed8533f42b1cbc42
2021-06-10 23:30:19 +09:00