[ALPS03878175] Remove nvram policy
[Detail] 1. Since Android P, system and vendor cannot use on-disk files to communicate. Nvram is vendor_data_file, while audio-daemon is system process. 2. Actually since Android O, audio-daemon use AudioSystem::getParameters() to send command to audio driver who is the real one who touch the nvram. This is already a HIDL, In other words, audio-daemon does not touch nvram directly. [Solution] Remove unnecessary policy, which may cause build break. MTK-Commit-Id: ed37b24d8b1d939ee4d428e3ed49ba3155e953ec Change-Id: I87c9cf8a6fb3952e24f0fb140b5cc65a59712350 CR-Id: ALPS03878175 Feature: Audio Tuning Tool
This commit is contained in:
parent
cce2bb9a1a
commit
c5ef24d95d
@ -1,14 +1,6 @@
|
|||||||
# ==============================================
|
# ==============================================
|
||||||
# Policy File of /system/bin/audiocmdservice_atci Executable File
|
# Policy File of /system/bin/audiocmdservice_atci Executable File
|
||||||
|
|
||||||
# Read/Write NV
|
|
||||||
allow audiocmdservice_atci nvram_device:devfile_class_set rw_file_perms;
|
|
||||||
typeattribute audiocmdservice_atci data_between_core_and_vendor_violators;
|
|
||||||
allow audiocmdservice_atci nvram_data_file:dir create_dir_perms;
|
|
||||||
allow audiocmdservice_atci nvram_data_file:{file lnk_file} create_file_perms;
|
|
||||||
allow audiocmdservice_atci nvdata_file:dir create_dir_perms;
|
|
||||||
allow audiocmdservice_atci nvdata_file:file create_file_perms;
|
|
||||||
|
|
||||||
# Access to storages for audio tuning tool to read/write tuning result
|
# Access to storages for audio tuning tool to read/write tuning result
|
||||||
allow audiocmdservice_atci { block_device device }:dir { write search };
|
allow audiocmdservice_atci { block_device device }:dir { write search };
|
||||||
allow audiocmdservice_atci mnt_user_file:dir rw_dir_perms;
|
allow audiocmdservice_atci mnt_user_file:dir rw_dir_perms;
|
||||||
@ -17,4 +9,3 @@ allow audiocmdservice_atci bootdevice_block_device:blk_file { read write };
|
|||||||
|
|
||||||
allow audiocmdservice_atci hal_audio_hwservice:hwservice_manager find;
|
allow audiocmdservice_atci hal_audio_hwservice:hwservice_manager find;
|
||||||
binder_call(audiocmdservice_atci,mtk_hal_audio);
|
binder_call(audiocmdservice_atci,mtk_hal_audio);
|
||||||
allow audiocmdservice_atci mtk_audiohal_data_file:dir create_dir_perms;
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user