I was able to solve my issue by including the libraries from this repository:
If you're working with Qt on Android for USB serial communication, this library provides the necessary JNI bindings and Java classes to make it work. After integrating it properly, everything started working as expected.