Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ddb9decb authored by Brandon Liu's avatar Brandon Liu
Browse files

Have AssetFileDescriptor.AutoCloseInputStream have different

implementation based on file descriptor type

For non seekable file decriptor like FIFO, keep original solution. For
seekable file descriptor, implement with pread. Because previously two
AssetFileDescriptors pointing to the same file could be using the same
underlying file descriptor and reading from both would provide unexpected results since they would both modify the file offset in the kernel data structure.

Test: Added new tests and verified affected pass
Bug: 168310122
Change-Id: I7599c43ab38b1bb15cc0999feb94e6412db40d9a
parent edfe4cbf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment