libbinder_ndk: BAD_TYPE on bad checkInterface
As is convention. Previously PERMISSION_DENIED which isn't as clear and
also isn't consistent.
Bug: 111445392
Test: ./ndk/runtests.sh (note, this passing just indicates that this
path isn't exercised. Multi-process tests are still in progress).
Change-Id: Ic66a61e87b7066224fff5ed7423fcfb0d50ffa93
diff --git a/libs/binder/ndk/ibinder.cpp b/libs/binder/ndk/ibinder.cpp
index b1b4194..f16cde6 100644
--- a/libs/binder/ndk/ibinder.cpp
+++ b/libs/binder/ndk/ibinder.cpp
@@ -122,7 +122,7 @@
binder_flags_t flags) {
if (isUserCommand(code)) {
if (!data.checkInterface(this)) {
- return STATUS_PERMISSION_DENIED;
+ return STATUS_BAD_TYPE;
}
const AParcel in = AParcel::readOnly(this, &data);