From 6a66bfd4cb3091d61a80914ac5aa751257d2b26b Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Mon, 17 Apr 2023 23:42:19 +0000 Subject: libbinder RPC: Trusty always use stable wire proto Bug: 266741352 Test: N/A Change-Id: I39d5c252dd06ddf90fbc1e6195a5dac12f69a2e7 --- libs/binder/trusty/RpcServerTrusty.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/binder/trusty/RpcServerTrusty.cpp b/libs/binder/trusty/RpcServerTrusty.cpp index 3a99606ec9..68b000849c 100644 --- a/libs/binder/trusty/RpcServerTrusty.cpp +++ b/libs/binder/trusty/RpcServerTrusty.cpp @@ -65,6 +65,10 @@ RpcServerTrusty::RpcServerTrusty(std::unique_ptr ctx, std::stri mTipcPort.msg_queue_len = 6; // Three each way mTipcPort.priv = this; + // TODO(b/266741352): follow-up to prevent needing this in the future + // Trusty needs to be set to the latest stable version that is in prebuilts there. + mRpcServer->setProtocolVersion(0); + if (mPortAcl) { // Initialize the array of pointers to uuids. // The pointers in mUuidPtrs should stay valid across moves of -- cgit v1.2.3-59-g8ed1b