[FR] AParcel_writeVector function in binder_parcel_utils.h file should support vector<int8_t> type
timipig opened this issue · 1 comments
Description
When I use the following code and compile in cmake the following error is triggered
vector<int8_t> server_message_id;
_aidl_ret_status = ::ndk::AParcel_writeVector(parcel, server_message_id);
if (_aidl_ret_status != STATUS_OK) return _aidl_ret_status;
I found out that the reason is that the overloaded function AParcel_writeVector does not support vector<int8_t>, but the other AParcel_writeByteArray function provided by the NDK does support vector<int8_t>. AParcel_writexxxArray is used inside the AParcel_writeVector function, so I don't understand why AParcel_writeVector supports vector<uint8_t> but not vector<int8_t>。
You'll need to file a platform bug following http://b.android.com (the frameworks component, probably). We don't own the APIs, and these headers actually are only in the NDK due to a historical accident anyway (that's really a helper library for aidl; it's not a platform API).