Snap for 9685341 from b5519577ea14a193d2deca7ab4a3221f3a86bc9a to udc-release

Change-Id: Ica46f512e959157fbcb99e9dd421b543a5e9df36
This commit is contained in:
Android Build Coastguard Worker 2023-03-04 06:08:02 +00:00
commit fc2d08f92b
4 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,8 @@ allow hal_audio_default aoc_device:chr_file rw_file_perms;
allow hal_audio_default hal_audio_ext_hwservice:hwservice_manager { find add };
add_service(hal_audio_default, hal_audio_ext_service)
allow hal_audio_default amcs_device:file rw_file_perms;
allow hal_audio_default amcs_device:chr_file rw_file_perms;
allow hal_audio_default sysfs_pixelstats:file rw_file_perms;

2
aoc/sepolicy/service.te Normal file
View File

@ -0,0 +1,2 @@
# Audio
type hal_audio_ext_service, service_manager_type;

View File

@ -0,0 +1,2 @@
# Audio
vendor.google.whitechapel.audio.extension.IAudioExtension/default u:object_r:hal_audio_ext_service:s0

View File

@ -98,6 +98,8 @@ void copyFile(const char* SrcDir, const char* DestDir) {
std::ifstream src(SrcDir, std::ios::binary);
std::ofstream dst(DestDir, std::ios::binary);
dst << src.rdbuf();
src.close();
dst.close();
return;
}