From f3cb3c16fdf273a2627ba8d1010e550fe160c6d7 Mon Sep 17 00:00:00 2001 From: Cyan_Hsieh Date: Tue, 8 Jun 2021 16:45:14 +0800 Subject: [PATCH] Set audio.camerasound.force for JP devices Test: set to JP sku and check No camera sound option Bug: 188396079 Change-Id: Ic89a150701de17fb29130206c2e25ec929972e25 --- conf/init.oriole.rc | 6 ++++++ conf/init.raven.rc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/conf/init.oriole.rc b/conf/init.oriole.rc index 77f03f5..645f2b7 100644 --- a/conf/init.oriole.rc +++ b/conf/init.oriole.rc @@ -18,3 +18,9 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet on late-init && property:ro.boot.hardware.revision=PROTO1.0 setprop vendor.thermal.config "thermal_info_config_WHI_A.json" + +# 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=GR1YH + setprop audio.camerasound.force true diff --git a/conf/init.raven.rc b/conf/init.raven.rc index fb6b869..07da82c 100644 --- a/conf/init.raven.rc +++ b/conf/init.raven.rc @@ -30,3 +30,9 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet # Bluetooth on post-fs-data chown bluetooth system /proc/bluetooth/timesync + +# 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=GF5KQ + setprop audio.camerasound.force true