Files
frameworks_base/core/java/android/os
Josh Gao ca46512d0a FileBridge: fix fd ownership mismanagement.
This patch switches everything over to ParcelFileDescriptor, but the
important part of the change is changing FileBridge.getClientSocket to
return a ParcelFileDescriptor. Previously, it returned a raw
FileDescriptor that was closed by FileBridge, and the only non-test
caller of that function was taking it and constructing a
ParcelFileDescriptor from it, which would also attempt to close the fd,
leading to an fdsan abort.

Bug: http://b/162811367
Test: atest FileBridgeTest
Test: treehugger
Change-Id: I724ea7601bb072c98895f68abc08bb0e339d1db0
(cherry picked from commit 4c392e8057)
2020-11-06 13:12:51 -08:00
..
2020-03-20 15:13:37 -07:00
2020-01-17 11:27:41 -08:00
2020-01-27 13:19:46 +00:00
2020-11-03 11:21:43 +00:00
2020-01-07 08:18:02 -08:00
2020-11-03 11:21:43 +00:00
2020-02-12 17:35:15 +00:00