From 024727b29bd10909c2ddbb7a3cca9aa1dcec879d Mon Sep 17 00:00:00 2001 From: Andrei Homescu Date: Wed, 24 Aug 2022 23:54:59 +0000 Subject: libbinder: add makeDefaultRpcTransportCtxFactory Add a new OS-specific function that creates a new instance of the default RpcTransportCtxFactory. This is needed because Android and Trusty have different default transports: RpcTransportRaw and RpcTransportTipcTrusty, respectively. Bug: 230135749 Test: presubmit Change-Id: I4abd443fe9a08c1fa0cc41dfca7ef1cdb69fe0fb --- libs/binder/RpcSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/binder/RpcSession.cpp') diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index 8ddfa93c00..eee28d6dde 100644 --- a/libs/binder/RpcSession.cpp +++ b/libs/binder/RpcSession.cpp @@ -68,7 +68,7 @@ RpcSession::~RpcSession() { sp RpcSession::make() { // Default is without TLS. - return make(RpcTransportCtxFactoryRaw::make()); + return make(makeDefaultRpcTransportCtxFactory()); } sp RpcSession::make(std::unique_ptr rpcTransportCtxFactory) { -- cgit v1.2.3-59-g8ed1b