• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android HIDL vector data size limit issue

Trying to send data from client to hidl service and below is the observation.
1.When data length less than 907 bytes successfull sent
2.When data length more than 908 bytes mHal (where mHal = Ixyz::getService()) its becoming null.

Any idea regarding this please let me know.
below is the piece of code mentioned the sequence.

void HalWrite(uint16_t data_len,uint8_t* p_data){
hidl_vec<uint8_t> data
data.setToExternal(p_data, data_len);
mHal->write(data);
}
 
Back
Top Bottom