Snap for 10492621 from 87ed5259e21fc4f6d7c2d405909cdc6a4cd5ce80 to udc-qpr1-release
Change-Id: Ifc3e765d3846fd096b26d659f17f7dcbeaa7a98e
This commit is contained in:
commit
96408a6a49
@ -2,7 +2,8 @@ DEVICE_MANIFEST_FILE += device/google/gs-common/audio/aidl/manifest.xml
|
||||
|
||||
# Audio HALs
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.audio.service-aidl.aoc
|
||||
android.hardware.audio.service-aidl.aoc \
|
||||
vendor.google.whitechapel.audio.hal.parserservice \
|
||||
|
||||
# AIDL software effects. These are the effects supporting in all projects.
|
||||
# For the project-specific effects, such as haptic generator, please add them
|
||||
|
@ -30,9 +30,11 @@ PRODUCT_PACKAGES += \
|
||||
audio.bluetooth.default \
|
||||
audio.r_submix.default \
|
||||
audio_spk_35l41 \
|
||||
audio_hdmi_aoc \
|
||||
sound_trigger.primary.$(TARGET_BOARD_PLATFORM)
|
||||
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/audio/sepolicy/hidl
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/audio/sepolicy/hdmi_audio
|
||||
|
||||
include device/google/gs-common/audio/common.mk
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
# Audio Hal AIDL Service for Aoc
|
||||
/vendor/bin/hw/android\.hardware\.audio\.service-aidl\.aoc u:object_r:hal_audio_default_exec:s0
|
||||
/system_ext/bin/hw/vendor\.google\.whitechapel\.audio\.hal\.parserservice u:object_r:hal_audio_parameter_parser_exec:s0
|
||||
|
14
audio/sepolicy/aidl/parser_service.te
Normal file
14
audio/sepolicy/aidl/parser_service.te
Normal file
@ -0,0 +1,14 @@
|
||||
# Define a parameter parser service
|
||||
type hal_audio_parameter_parser, coredomain, domain;
|
||||
type hal_audio_parameter_parser_exec, system_file_type, file_type, exec_type;
|
||||
init_daemon_domain(hal_audio_parameter_parser)
|
||||
|
||||
# The server will serve a binder service.
|
||||
binder_service(hal_audio_parameter_parser)
|
||||
|
||||
add_service(hal_audio_parameter_parser, hal_audio_parameter_parser_service);
|
||||
|
||||
binder_call(audioserver, hal_audio_parameter_parser)
|
||||
binder_call(hal_audio_parameter_parser, servicemanager)
|
||||
|
||||
allow audioserver hal_audio_parameter_parser_service:service_manager find;
|
@ -1,2 +1,3 @@
|
||||
# Audio
|
||||
type hal_audio_ext_service, service_manager_type;
|
||||
type hal_audio_parameter_parser_service, service_manager_type;
|
||||
|
@ -1,2 +1,4 @@
|
||||
# Audio
|
||||
vendor.google.whitechapel.audio.extension.IAudioExtension/default u:object_r:hal_audio_ext_service:s0
|
||||
android.media.audio.IHalAdapterVendorExtension/default u:object_r:hal_audio_parameter_parser_service:s0
|
||||
|
||||
|
1
audio/sepolicy/hdmi_audio/genfs_contexts
Normal file
1
audio/sepolicy/hdmi_audio/genfs_contexts
Normal file
@ -0,0 +1 @@
|
||||
genfscon sysfs /devices/platform/drmdp-adma/extcon/hdmi_audio u:object_r:sysfs_extcon:s0
|
3
camera/sepolicy/hal_camera_default.te
Normal file
3
camera/sepolicy/hal_camera_default.te
Normal file
@ -0,0 +1,3 @@
|
||||
allow hal_camera_default vendor_camera_binder_service:service_manager find;
|
||||
|
||||
binder_call(hal_camera_default, vendor_pbcs_app);
|
1
camera/sepolicy/service.te
Normal file
1
camera/sepolicy/service.te
Normal file
@ -0,0 +1 @@
|
||||
type vendor_camera_binder_service, hal_service_type, protected_service, service_manager_type;
|
1
camera/sepolicy/service_contexts
Normal file
1
camera/sepolicy/service_contexts
Normal file
@ -0,0 +1 @@
|
||||
com.google.pixel.camera.services.binder.IServiceBinder/default u:object_r:vendor_camera_binder_service:s0
|
@ -2,4 +2,10 @@ type vendor_pbcs_app, domain, coredomain;
|
||||
|
||||
app_domain(vendor_pbcs_app);
|
||||
|
||||
allow vendor_pbcs_app system_app_data_file:dir search;
|
||||
|
||||
allow vendor_pbcs_app app_api_service:service_manager find;
|
||||
|
||||
allow vendor_pbcs_app vendor_camera_binder_service:service_manager add;
|
||||
|
||||
binder_call(vendor_pbcs_app, hal_camera_default);
|
||||
|
@ -26,6 +26,8 @@
|
||||
#define GPS_MALLOC_LOG_DIRECTORY "/data/vendor/gps"
|
||||
#define GPS_MALLOC_LOG_PREFIX "malloc_"
|
||||
#define GPS_VENDOR_CHIP_INFO "/data/vendor/gps/chip.info"
|
||||
#define GPS_RAWLOG_PREFIX "rawbin"
|
||||
#define GPS_MEMDUMP_LOG_PREFIX "memdump_"
|
||||
|
||||
int main() {
|
||||
if(!::android::base::GetBoolProperty("vendor.gps.aol.enabled", false)) {
|
||||
@ -46,6 +48,8 @@ int main() {
|
||||
if (access(GPS_VENDOR_CHIP_INFO, F_OK) == 0) {
|
||||
copyFile(GPS_VENDOR_CHIP_INFO, concatenatePath(outputDir.c_str(), "chip.info").c_str());
|
||||
}
|
||||
dumpLogs(GPS_LOG_DIRECTORY, outputDir.c_str(), maxFileNum, GPS_RAWLOG_PREFIX);
|
||||
dumpLogs(GPS_LOG_DIRECTORY, outputDir.c_str(), 18, GPS_MEMDUMP_LOG_PREFIX);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user