From 970a2bc9d2ba547777bd73d2cbc86b261de6c5c5 Mon Sep 17 00:00:00 2001 From: Cyan_Hsieh Date: Thu, 7 Apr 2022 16:44:35 +0800 Subject: [PATCH] Set audio.camerasound.force for JP devices Test: set to JP sku and check No camera sound option Bug: 227405874 Change-Id: I9f647175ac83d12ddfa1d54e5deb419dbea63877 --- conf/init.cheetah.rc | 6 ++++++ conf/init.panther.rc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/conf/init.cheetah.rc b/conf/init.cheetah.rc index cf1af49..af53fa9 100644 --- a/conf/init.cheetah.rc +++ b/conf/init.cheetah.rc @@ -32,3 +32,9 @@ on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_complet on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 write /sys/class/spi_master/spi0/spi0.0/synaptics_tcm.0/sysfs/high_sensitivity 1 + +# 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=GFE4J + setprop audio.camerasound.force true diff --git a/conf/init.panther.rc b/conf/init.panther.rc index b3cc621..8d2bf97 100644 --- a/conf/init.panther.rc +++ b/conf/init.panther.rc @@ -12,3 +12,9 @@ on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_complet on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 write /proc/focaltech_touch/high_sensitivity 1 + +# 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=G03Z5 + setprop audio.camerasound.force true