I want to read some files in native code with file descriptors.
I get FileDescriptor using the getFD() method on FileInputStream
but I discovered that I can't just fetch the fd field in JNI because of this.

They changed the fd field to descriptor
I don't know since when did they make this change.
I want a reliable way to get the file descriptor across different android versions.