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
Loading
Please register or sign in to comment