From c54353929b96907a707481bab8d565fb5f2fb950 Mon Sep 17 00:00:00 2001 From: Cyan_Hsieh Date: Mon, 17 Apr 2023 13:16:24 +0800 Subject: [PATCH] Set audio.camerasound.force for JP devices Test: set to JP sku and check No camera sound option Bug: 277875182 Change-Id: Ibb7bd6a1046de6d6b97b0c93ae13e260c80f15bb --- conf/init.husky.rc | 6 ++++++ conf/init.shiba.rc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/conf/init.husky.rc b/conf/init.husky.rc index 938733a..b793fca 100644 --- a/conf/init.husky.rc +++ b/conf/init.husky.rc @@ -91,3 +91,9 @@ on property:vendor.all.modules.ready=1 chown system system /sys/bus/i2c/devices/4-0043/default/delay_before_stop_playback_us enable vendor.vibrator.cs40l26 + +# For Japan sku, always enforce camera shutter sound +# Since this property is read by the audio server in system service, +# it should be written by the system init. +on property:ro.boot.hardware.sku=GE9DP + setprop audio.camerasound.force true diff --git a/conf/init.shiba.rc b/conf/init.shiba.rc index cade034..7f29af0 100644 --- a/conf/init.shiba.rc +++ b/conf/init.shiba.rc @@ -91,3 +91,9 @@ on property:vendor.all.modules.ready=1 chown system system /sys/bus/i2c/devices/4-0043/default/delay_before_stop_playback_us enable vendor.vibrator.cs40l26 + +# For Japan sku, always enforce camera shutter sound +# Since this property is read by the audio server in system service, +# it should be written by the system init. +on property:ro.boot.hardware.sku=GZPF0 + setprop audio.camerasound.force true