stderr is redirected to /dev/null. We should use kernel log, which is
finally redirected to microdroid console.
Bug: 261110181
Test: boot microdroid and see console log
Change-Id: Ie76b9d155076c8a88b6c3a75b472d87829f81a8a
... so only the select libraries can be linked against. It includes
libc, libm, libdl, liblog, libvm_payload, etc.
Bug: 259311868
Test: atest MicrodroidTests MicrodroidHostTestCases
Change-Id: I5cbdaa8195a04a904a766f34a0def4b00ccfc904
We no longer support passing string arguments to a VM. Any
customization needed can be done by having the host communicate with
the VM after it starts.
Also start adding a header to provide the entry-point prototype for
better safety.
Bug: 249064104
Bug: 243513572
Test: atest MicrodroidTests MicrodroidHostTestCases
Change-Id: I0a1775f3b6a0b11c71c4831f6c380d96bb637c00
This hasn't worked because the path /mnt/apk/lib/<abi> wasn't in the
search paths of the linker namespace that the library is loaded (which
is the default namespace).
Fixing that by creating a new linker namespace 'microdroid' that
inherits the settings from the default namespace but adds the library
directory to the search paths, and loading the library from that
namespace.
Bug: N/A
Test: atest MicrodroidHostTestCases
Change-Id: I30c4ce86a48b80fa65e3b5ffeb90561fa1d2544e
microdroid_launcher is a very thin executable that loads a shared
library and execute the entry function (android_native_main). This is
used to execute a shared library in an APK that is shared from the host
Android.
Bug: 188513012
Test: atest MicrodroidHostTestCases
Change-Id: I0f98eba4c72601adaa27733dae6a51d3852301db