From 8fcd26e448a3a9828226d660fc6a5dc1a76f9ff8 Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Wed, 3 Jul 2019 16:31:20 -0700 Subject: [PATCH] Rename audio hal service The audio HAL service name previously contained the audio HAL version of the first audio HAL it supported. Nevertheless, the same service can and do host all audio HAL versions. Aka there is only one audio HAL service, and the version in its name is technical dept and should not be changed. This caused many confusions during vendor HAL upgrade as the service version number was erroneously updated leading to device boot loop. The new service name is: android.hardware.audio.service The old one was: android.hardware.audio@2.0-service Keeping both names valid as most phones will not rename the service immediately. Bug: 78516186 Test: boot & check the audio HAL is up with the old and new name Change-Id: I2ce0182fd919af6eb8325d49682b4374be00344e Signed-off-by: Kevin Rocard --- vendor/file_contexts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/file_contexts b/vendor/file_contexts index 1fa885d21..0a3e2d942 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -2,7 +2,7 @@ # Default HALs # /(vendor|system/vendor)/bin/hw/android\.hardware\.atrace@1\.0-service u:object_r:hal_atrace_default_exec:s0 -/(vendor|system/vendor)/bin/hw/android\.hardware\.audio@2\.0-service u:object_r:hal_audio_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.audio(@2\.0-|\.)service u:object_r:hal_audio_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.audiocontrol@1\.0-service u:object_r:hal_audiocontrol_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.evs@1\.0-service u:object_r:hal_evs_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle@2\.0-service u:object_r:hal_vehicle_default_exec:s0