diff --git a/aoc/dump_aoc.cpp b/aoc/dump_aoc.cpp index b3827c8..baf056e 100644 --- a/aoc/dump_aoc.cpp +++ b/aoc/dump_aoc.cpp @@ -29,9 +29,10 @@ int main() { runCommand("AoC logging wake", "timeout 0.1 cat /sys/devices/platform/*.aoc/control/logging_wakeup"); runCommand("AoC hotword wake", "timeout 0.1 cat /sys/devices/platform/*.aoc/control/hotword_wakeup"); runCommand("AoC memory exception wake", "timeout 0.1 cat /sys/devices/platform/*.aoc/control/memory_exception"); - runCommand("AoC memory votes", "timeout 0.1 cat /sys/devices/platform/*.aoc/control/memory_votes_a32"); - runCommand("AoC memory votes", "timeout 0.1 cat /sys/devices/platform/*.aoc/control/memory_votes_ff1"); + runCommand("AoC memory votes", "timeout 0.5 cat /sys/devices/platform/*.aoc/control/memory_votes_a32"); + runCommand("AoC memory votes", "timeout 0.5 cat /sys/devices/platform/*.aoc/control/memory_votes_ff1"); runCommand("clean AoC buffer","echo ' ' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"); + runCommand("AoC DVFS (A32)", "echo 'dbg info -c 1 DVFSA32' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"); runCommand("AoC DVFS (FF1)", "echo 'dbg info -c 2 DVFSFF1' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"); runCommand("AoC Monitor Mode Status", "echo 'monitor_mode status' > /dev/acd-debug; timeout 0.1 cat /dev/acd-debug"); return 0; diff --git a/audio/sepolicy/aidl/hal_audio_default.te b/audio/sepolicy/aidl/hal_audio_default.te index 2512a17..1ae90c7 100644 --- a/audio/sepolicy/aidl/hal_audio_default.te +++ b/audio/sepolicy/aidl/hal_audio_default.te @@ -1 +1,4 @@ add_service(hal_audio_default, hal_audio_ext_service) +# Allow audio-hal to register battery_mitigation service +allow hal_audio_default hal_battery_mitigation_service:service_manager find; +binder_call(hal_audio_default, battery_mitigation) diff --git a/battery_mitigation/sepolicy/vendor/battery_mitigation.te b/battery_mitigation/sepolicy/vendor/battery_mitigation.te index 7552bd2..3133ab5 100644 --- a/battery_mitigation/sepolicy/vendor/battery_mitigation.te +++ b/battery_mitigation/sepolicy/vendor/battery_mitigation.te @@ -31,3 +31,5 @@ binder_use(battery_mitigation) wakelock_use(battery_mitigation) # Allow battery_mitigation to run aidl service add_service(battery_mitigation, hal_battery_mitigation_service) +# Allow battery_mitigation to run audio mitigation callback +binder_call(battery_mitigation, hal_audio_default) diff --git a/gpu/sepolicy/service_contexts b/gpu/sepolicy/service_contexts new file mode 100644 index 0000000..88ee08c --- /dev/null +++ b/gpu/sepolicy/service_contexts @@ -0,0 +1,4 @@ +# Note that native/passthrough HALs use the "{type}/{instance}" pattern from +# SEPolicy perspective and are looked up via the corresponding filename +# "{type}.{instance}.so". +mapper/pixel u:object_r:hal_graphics_mapper_service:s0 diff --git a/mte/fullmte-pixel.mk b/mte/fullmte-pixel.mk index 6cc525d..ac2aba8 100644 --- a/mte/fullmte-pixel.mk +++ b/mte/fullmte-pixel.mk @@ -3,6 +3,3 @@ include build/make/target/product/fullmte.mk PRODUCT_MODULE_BUILD_FROM_SOURCE := true BOARD_KERNEL_CMDLINE += bootloader.pixel.MTE_FORCE_ON -# TODO(b/324412910): Remove this when the stack-buffer-overflow is fixed. -PRODUCT_PRODUCT_PROPERTIES += \ - arm64.memtag.process.android.hardware.composer.hwc3-service.pixel=off \ No newline at end of file