mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 21:56:26 -08:00
LG8n: Build and rename audio service HAL
[Woomymy]: Make it 64 bits for yunluo Change-Id: Ia55929f56d2aef62dcea28487584c3c0afb7dab1 Signed-off-by: SamarV-121 <samarvispute121@pm.me> Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
parent
3e77aa0be5
commit
f6ca203252
36
audio/Android.mk
Normal file
36
audio/Android.mk
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := android.hardware.audio.service.mediatek.rc
|
||||||
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
LOCAL_MODULE_CLASS := ETC
|
||||||
|
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
|
||||||
|
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
||||||
|
include $(BUILD_PREBUILT)
|
||||||
|
|
||||||
|
LOCAL_PATH := hardware/interfaces/audio/common/all-versions/default/service
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := android.hardware.audio.service.mediatek
|
||||||
|
LOCAL_REQUIRED_MODULES := android.hardware.audio.service.mediatek.rc
|
||||||
|
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||||
|
LOCAL_VENDOR_MODULE := true
|
||||||
|
LOCAL_MULTILIB := 64
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := \
|
||||||
|
service.cpp
|
||||||
|
|
||||||
|
LOCAL_CFLAGS := \
|
||||||
|
-Wall \
|
||||||
|
-Wextra \
|
||||||
|
-Werror
|
||||||
|
|
||||||
|
LOCAL_SHARED_LIBRARIES := \
|
||||||
|
libcutils \
|
||||||
|
libbinder \
|
||||||
|
libhidlbase \
|
||||||
|
liblog \
|
||||||
|
libutils \
|
||||||
|
libhardware
|
||||||
|
|
||||||
|
include $(BUILD_EXECUTABLE)
|
13
audio/android.hardware.audio.service.mediatek.rc
Normal file
13
audio/android.hardware.audio.service.mediatek.rc
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
on post-fs-data
|
||||||
|
mkdir /data/vendor/audiohal 0771 system audio
|
||||||
|
mkdir /data/vendor/audiohal/audio_param 0771 system audio
|
||||||
|
|
||||||
|
service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service.mediatek
|
||||||
|
class hal
|
||||||
|
user audioserver
|
||||||
|
# media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
|
||||||
|
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct wakelock context_hub system sdcard_rw
|
||||||
|
capabilities BLOCK_SUSPEND SYS_NICE
|
||||||
|
ioprio rt 4
|
||||||
|
task_profiles ProcessCapacityHigh HighPerformance
|
||||||
|
onrestart restart audioserver
|
|
@ -49,7 +49,7 @@ PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.audio.service \
|
android.hardware.audio.service.mediatek \
|
||||||
android.hardware.audio.effect@7.0-impl \
|
android.hardware.audio.effect@7.0-impl \
|
||||||
android.hardware.audio@7.0-impl \
|
android.hardware.audio@7.0-impl \
|
||||||
android.hardware.soundtrigger@2.3-impl
|
android.hardware.soundtrigger@2.3-impl
|
||||||
|
|
Loading…
Reference in a new issue