This is the Trusty port of the libbinder library. To build it, take the following steps:
trusty_binder
topic on both repositories.build.py
.$ ./build-root/.../run --headless --boot-test com.android.trusty.aidl.test
To run the Android-Trusty IPC test, do the following:
qemu_trusty_arm64-userdebug
target:$ lunch qemu_trusty_arm64-userdebug $ m
$ ./build-root/.../run --android /path/to/aosp
adb
or the shell inside the emulator itself, run the Trusty Binder test as root:# /data/nativetest64/vendor/trusty_binder_test/trusty_binder_test
For now, you will need to run the AIDL compiler manually to generate the C++ source code for Trusty clients and services. The general syntax is:
$ aidl --lang=cpp -o <output directory> -h <output header directory> <AIDL files...>
The compiler will emit some .cpp
files in the output directory and their corresponding .h
files in the header directory.