replicant-frameworks_native/libs
Nick Pelly c81bb207c6 Fix failure to open AVRCP input device due to EPERM.
Sleep for 100us and try to open the input device again if it fails, with a
maximum of 10 attempts.

We need the retry logic because setting permissions on a new input device is
racy. The init process watches for new input device (via uevent) and sets the
permission on them in devices.c:make_device(). However at the same time
EventHub.cpp watches for new input devices from the system_server process, and
immediately tries to open them. I can't see a simple way to avoid this race
condition.

As best as I can tell this race condition has always exisited.
There must have been some timing change that happened recently that causes us
to hit this race condition much more often. See repro notes in referenced bug.

Bug: 2375632
2010-01-20 19:56:24 -08:00
..
audioflinger Fix issue 2323920: Notification & A2DP audio stutter. 2009-12-22 09:06:46 -08:00
binder Modify the binder to request 1M - 2 pages instead of 1M. The backing store 2009-11-12 16:31:12 -08:00
surfaceflinger fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly 2009-12-11 00:56:10 -08:00
ui Fix failure to open AVRCP input device due to EPERM. 2010-01-20 19:56:24 -08:00
utils Debugging for issue #2228381 android.view.InflateException 2009-11-20 14:26:42 -08:00