summaryrefslogtreecommitdiff
path: root/libs/binder/RpcState.cpp
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-10-30 23:10:15 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-10-30 23:10:15 +0000
commit9ddc976d043c90a01ff71154c06d651e84104a73 (patch)
tree54fe3f43acb31e9ac4d64961d1bd1b1ce63f132b /libs/binder/RpcState.cpp
parentf310305e15db64b79e45f6080f32a52874478c44 (diff)
parent687728e4dd034fc2b3116c8aac41b3e79f7c8b01 (diff)
Merge "RPC Binder: limit experimental wire protocol use" into main
Diffstat (limited to 'libs/binder/RpcState.cpp')
-rw-r--r--libs/binder/RpcState.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp
index 26a2f4fa39..749c2f81ea 100644
--- a/libs/binder/RpcState.cpp
+++ b/libs/binder/RpcState.cpp
@@ -412,10 +412,8 @@ bool RpcState::validateProtocolVersion(uint32_t version) {
return false;
}
#else
- // TODO(b/305983144)
- // don't restrict on other platforms, though experimental should
- // only really be used for testing, we don't have a good way to see
- // what is shipping outside of Android
+ ALOGE("Cannot use experimental RPC binder protocol outside of Android.");
+ return false;
#endif
} else if (version >= RPC_WIRE_PROTOCOL_VERSION_NEXT) {
ALOGE("Cannot use RPC binder protocol version %u which is unknown (current protocol "