am: f9ea4b800c -s ours
am skip reason: change_id I1370edbbca46657506a990855d06a176f07c54d3 with SHA1 947c0f18f5 is in history
Change-Id: Iad8a578e5590e63a9bfd2696c29fbd9bac3e2e2a
am: 7ee1b660d6 -s ours
am skip reason: change_id I1370edbbca46657506a990855d06a176f07c54d3 with SHA1 947c0f18f5 is in history
Change-Id: I715c13b39f7107a39edbef20b91f35f0e485069b
am: 41dad39e94 -s ours
am skip reason: change_id I1370edbbca46657506a990855d06a176f07c54d3 with SHA1 947c0f18f5 is in history
Change-Id: I882a7df625a1fd3d51a4822ba4fef580d6011874
am: 839cd0691b -s ours
am skip reason: change_id I1370edbbca46657506a990855d06a176f07c54d3 with SHA1 947c0f18f5 is in history
Change-Id: I7cfc03f5b25b27fb88394f84885c176e7ee5b849
am: 21bbf7d12f -s ours
am skip reason: change_id Ibe4eee4fe49b7884e6d720e626d88125bbee0eb2 with SHA1 cf90b49317 is in history
Change-Id: Iefeb35120a3412e4605fb534d720c8fcf2a53931
The deprecated method AudioManager.isBluetoothA2dpOn() calls
getDeviceConnectionState on APM with an empty address, which
caused HwModuleCollection::getDeviceDescriptor to set an empty
address on the DeviceDescriptor for the currently connected
A2DP device. This method is called by MediaRouter.
When the address was reset, the java listener for audio device
connection monitoring was reporting the connection of an A2DP
device with an empty address, which in turn caused AvrcpManager
to behave as if the audio device connection failed.
If MediaRouter called isBluetoothA2dpOn() before AvrcpManager
received its called for device connection, the error would occur.
Bug: 132416679
Test: call isBluetoothA2dpOn() and check for valid address in dumpsys media.audio_policy
Test: atest AudioServiceHostTest#testInjectForRecord ; atest AudioHostTest ; atest AudioPlaybackCaptureTest
Change-Id: I1370edbbca46657506a990855d06a176f07c54d3
Merged-In: I1370edbbca46657506a990855d06a176f07c54d3
am: ee566469e6 -s ours
am skip reason: change_id I0581569a172f810e030aec879225e817bfa7851a with SHA1 47835553b6 is in history
Change-Id: I25896743805cd1b25942af1f4167a59771fe8e00
Security Vulnerability fix:- Heap use after free in getSecureStops
in android.hardware.drm@1.1-service.clearkey
Test: CTS tests
android.media.cts.MediaDrmClearkeyTest#testSecureStop
android.media.cts.MediaDrmClearkeyTest
Test: run drmpoc
no signal 6 on clearkey service after the fix
Test: adb shell ps | grep clearkey
pid ID does not change after running drmpoc
bug: 137878930
Change-Id: I78b2dc2bccde238a06398b3733cea8e574ea8ee7
Android provides 2 audio policy engines:
libaudiopolicyenginedefault and
libaudiopolicyengineconfigurable. This change makes the engine
to be loaded dynamically based on the configuration (currently
the engine name is hardcoded into AudioPolicyConfig). Dynamic
loading allows building and installing of both libraries without
any conflicts.
Technical changes:
- AudioPolicyManagerInterface renamed to EngineInterface
for clarity;
- For the purpose of dynamic loading, APM does not depend
anymore on the EngineInstance class. The class got removed
from the default AP engine, but left in the configurable engine
because it is also used by its plugins;
- Added EngineLibrary class to encapsulate dynamic loading
of the AP engine. The class name EngineInstance is repurposed
for a smart pointer to EngineInterface;
- services/audiopolicy/managerdefault/Android.mk converted
into Android.bp;
- Added engine loading failure test;
Bug: 132639720
Test: sanity tests for audio; audiopolicy_tests
Change-Id: I0581569a172f810e030aec879225e817bfa7851a
Merged-In: I0581569a172f810e030aec879225e817bfa7851a
Perform more checking for invalid input.
Test: CTS tests
android.media.cts.MediaDrmClearkeyTest#testSecureStop
android.media.cts.MediaDrmClearkeyTest
Test: run drmpoc
no signal 6 on clearkey service after the fix
Test: adb shell ps | grep clearkey
pid ID does not change after running drmpoc
bug: 137284652
Change-Id: I971bb33eec6d37ef86fa1a53501c1e6bda50fa3b
am: a731a79541 -s ours
am skip reason: change_id Ie2a94aace8286a1fad4e9f59232f761bcab0cc5e with SHA1 a523204f3e is in history
Change-Id: I5996192e216f09fc79ade08c814a598cf1a49435