unplugged-system/frameworks/native/libs/binder/trusty
2025-10-06 13:59:42 +00:00
..
binderRpcTest Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
include Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
include_mock Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
kernel Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
ndk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
build-config-usertests Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
logging.cpp Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
OS.cpp Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.md Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
RpcServerTrusty.cpp Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
RpcTransportTipcTrusty.cpp Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
rules.mk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
socket.cpp Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
TrustyStatus.cpp Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
TrustyStatus.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
usertests-inc.mk Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

Binder for Trusty

This is the Trusty port of the libbinder library. To build it, first you will need a checkout of the Trusty tree:

$ mkdir /path/to/trusty
$ cd /path/to/trusty
$ repo init -u https://android.googlesource.com/trusty/manifest -b master
$ repo sync -j$(nproc) -c --no-tags

After the checkout is complete, you can use the build.py script for both building and testing Trusty. For a quick build without any tests, run:

$ ./trusty/vendor/google/aosp/scripts/build.py generic-arm64-test-debug

This will build the smaller generic-arm64-test-debug project which does not run any tests.

The qemu-generic-arm64-test-debug` project includes the QEMU emulator and a full Trusty test suite, including a set of libbinder tests. To run the latter, use the command:

$ ./trusty/vendor/google/aosp/scripts/build.py \
    --test "boot-test:com.android.trusty.binder.test" \
    qemu-generic-arm64-test-debug

Building AIDL files on Trusty

To compile AIDL interfaces into Trusty libraries, include the make/aidl.mk in your rules.mk file, e.g.:

LOCAL_DIR := $(GET_LOCAL_DIR)

MODULE := $(LOCAL_DIR)

MODULE_AIDLS := \
        $(LOCAL_DIR)/IFoo.aidl \

include make/aidl.mk

Examples

The Trusty tree contains some sample test apps at trusty/user/app/sample/binder-test.