No description
Find a file
Avichal Rakesh ea30826bf3 ExternalCameraHAL: dup fd when creating AIDL NativeHandle
AIDL's NativeHandle do not have a concept of unowned file
descriptors. If a NativeHandle object is created with an
fd, NativeHandle implicitly assumes ownership of the fd.
When passing fds over binder, ExternalCameraHAL used
makeToAidl which which accidentally transferred ownership
to the AIDL objects. Additionally, NativeHandles close
owned fds on destruction, which led to multiple closure
of fences.

This CL changes the logic to use dupToAidl to ensure that
NativeHandle objects are given ownership of a duped fds
and don't interfere with any of the fds used for internal
bookkeeping.

Bug: 313115623
Test: Verified by partner that ExternalCameraHAL no longer double closes fds.
Merged-In: Ic406634de6f22a290abb414e80a7747927368b68
Change-Id: Ic406634de6f22a290abb414e80a7747927368b68
2024-03-25 21:59:11 +00:00
apexkey Add OWNERS file for apexkey 2023-09-13 21:18:46 +00:00
atrace Merge OWNERS files for atrace 2023-09-08 20:25:29 +00:00
audio audio: Implement blocking in remote submix when there is no sink 2024-03-25 16:04:27 +00:00
authsecret Cleanup: use a shared apex_key 2023-10-10 10:30:03 +09:00
automotive automotive aidl: Add required @RustDerive annotations 2024-03-14 01:29:28 +00:00
biometrics AIDL: disable Rust explicitly 2024-02-06 17:36:03 +00:00
bluetooth Merge "Bluetooth vts hal: Enforce 1s startup" into main 2024-03-12 04:54:18 +00:00
boot Merge "Revert^2 "Add bootcontrol HAL APEX"" into main 2023-10-11 04:20:38 +00:00
broadcastradio Merge Android 24Q1 Release (ab/11220357) 2024-01-30 10:36:50 -08:00
camera ExternalCameraHAL: dup fd when creating AIDL NativeHandle 2024-03-25 21:59:11 +00:00
cas Merge "CAS AIDL: Start thread pool for default service" into main 2023-11-10 04:14:03 +00:00
common Add defaults for audio AIDL interfaces 2023-11-07 18:18:24 +00:00
compatibility_matrices Merge "Add 202404 FCM to next release config" into main 2024-03-07 23:57:36 +00:00
configstore Merge OWNERS files for configstore 2023-09-08 20:56:04 +00:00
confirmationui UpsideDownCake is now 34 2023-04-07 23:41:20 +00:00
contexthub Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
drm Remove unused OWNERS file 2023-10-16 15:02:54 -07:00
dumpstate Add dumpstate HAL APEX 2023-09-19 23:48:35 +09:00
fastboot UpsideDownCake is now 34 2023-04-07 23:41:20 +00:00
gatekeeper gatekeeper: generate Rust bindings 2023-10-30 08:17:12 +00:00
gnss Allow multiple registered GNSS HALs am: 3344506a78 am: 653221fa8e am: 7bff0ebe01 2024-02-22 22:52:05 +00:00
graphics Merge "Fix annotation in doc" into main 2024-03-20 00:41:09 +00:00
health Merge Android 24Q1 Release (ab/11220357) 2024-01-30 10:36:50 -08:00
identity Merge "identity: Set testMode to false for RKP." am: 087b29d75a am: 8ff617bdd0 am: 6c1c507c6b 2023-05-25 00:52:17 +00:00
input Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
ir Fix the path to IR HAL 2023-12-12 18:06:34 +09:00
keymaster Replace std::basic_string<uint8_t> with std::vector 2024-02-12 20:15:47 -08:00
light Replace use of deprecated logging functions 2024-02-07 12:55:53 +01:00
macsec Define MACsec HAL and ref impl 2023-10-16 19:12:21 +00:00
media Merge "Merge Android 14 QPR2 to AOSP main" into main 2024-03-07 06:41:02 +00:00
memtrack Add memtrack HAL APEX 2023-09-15 13:16:28 +09:00
neuralnetworks Bump android.hardware.graphics.common V4->V5 2023-10-03 16:14:03 +00:00
nfc Remove the default implementation for NFC aidl HAL 2024-03-14 16:27:22 +00:00
oemlock Merge OWNERS files for oemlock 2023-09-08 21:06:03 +00:00
power Merge Android 24Q1 Release (ab/11220357) 2024-01-30 10:36:50 -08:00
radio Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
rebootescrow Add rebootescrow HAL into APEX 2023-10-23 14:52:43 +09:00
renderscript Add clear dependency on libRS_internal 2023-11-28 16:28:20 +09:00
scripts Add OWNERS files to support dirs 2023-09-11 17:03:06 +00:00
secure_element Tag vts module VtsHalSecureElementTargetTest with secure element sim 2024-01-31 03:12:59 +00:00
security Tests for imported wrapped RSA and EC keys 2024-03-14 13:04:16 +00:00
sensors Update owners for sensor interfaces 2024-03-13 23:13:10 +00:00
soundtrigger Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
staging Create Secure Storage AIDL interface 2024-02-14 11:38:58 -06:00
tests HIDL multithreaded: increase timeout duration 2023-11-14 08:48:42 +00:00
tetheroffload Make availability to com.android.tethering explicit 2023-12-21 23:39:41 +00:00
thermal thermal: support more temperature and cooling device type 2023-12-08 17:48:33 +00:00
threadnetwork Merge changes Ie1b0c687,I4e6dfdfa,I2da14a56,I47041785,I34388f76, ... into main 2024-02-01 08:45:41 +00:00
tv Merge "Hdmi CEC Mock : Clear the existing callback when new callback is set" into main 2024-03-13 05:42:39 +00:00
usb Merge "Test: Don't check results when no type-c ports" into android13-tests-dev am: 6ec8db6abe 2023-12-15 03:18:16 +00:00
uwb Merge "uwb: Keep VTS timeout to be consistent with UWB stack" into main 2024-03-21 16:33:18 +00:00
vibrator [DON'T BLOCK] Test ownership migration rules 2024-02-05 15:45:22 +00:00
vr Merge OWNERS files for vr 2023-09-11 16:32:19 +00:00
weaver [DON'T BLOCK] Test ownership migration rules 2024-02-05 15:45:22 +00:00
wifi Merge "Adapt CheckApfIsSupported for VSR-15 compatibility" into main 2024-03-25 06:51:10 +00:00
.clang-format Replace clang-format with symlink. 2019-01-18 14:26:33 -08:00
.gitignore Ignores vim temporary files from git 2024-01-16 14:48:57 +08:00
Android.bp Stop using group_static_libs property 2021-08-30 23:20:08 +00:00
CleanSpec.mk Clean up android.hardware.automotive.vehicle intermediates. 2023-08-23 16:58:03 -07:00
current.txt Fix inconsistencies in VehicleArea HAL documentation 2023-03-29 20:12:05 +00:00
METADATA Add METADATA to interfaces: Apache2=NOTICE 2020-05-01 10:59:55 -07:00
NOTICE Apache2 module license. 2016-08-30 11:28:36 -07:00
OWNERS remove guangzhu from OWNERS 2022-08-01 16:19:14 +00:00
PREUPLOAD.cfg Add generate_vehicle_property_enums repo hook. 2023-06-08 18:34:57 +00:00
TEST_MAPPING Add CtsStrictJavaPackagesTestCases to TEST_MAPPING presubmits 2023-12-16 00:33:37 +00:00
update-base-files.sh Generate constants from the audio HAL V7.1 enums 2022-02-14 19:08:09 +00:00
update-makefiles.sh Remove update scripts for VTS makefiles. 2019-02-28 18:39:29 +00:00