summaryrefslogtreecommitdiff
path: root/init.hardware.rc
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2018-06-15 15:26:56 -0700
committerEino-Ville Talvala <etalvala@google.com>2018-06-21 13:12:55 -0700
commit6005e32dfa249c455b68113974f11e54f767fdf4 (patch)
treef33b4589e9cb50f3f4ffa3ae7d37d0fbe42fb762 /init.hardware.rc
parent0a35e1163a0248cd3983cd6f1d8a27d3defb4fa3 (diff)
Enforce camera shutter sounds to always play for some markets
Carrier requirements in some markets require that the camera shutter sound is always audible. Our existing build-agnostic approach relies on MCC, which is only available with a SIM inserted. For more complete coverage, force shutter sounds on for all devices with radio.subtype of 1. Test: First set device to Japan radio mode: fastboot oem set_platform_info s s 1 Then verify that after muting ringer and media sounds: - Shutter sounds play in camera app, no visible setting in app to disable it. - pdk/apps/TestingCamera also plays shutter sounds. Bug: 110126976 Change-Id: I78e58e6e08db33756a943db9a1563a072038032a
Diffstat (limited to 'init.hardware.rc')
-rw-r--r--init.hardware.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.hardware.rc b/init.hardware.rc
index e662868..f610c86 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -875,3 +875,9 @@ on property:persist.vendor.charge.stop.level=*
on property:persist.vendor.charge.start.level=*
write /sys/devices/platform/soc/soc:google,charger/charge_start_level ${persist.vendor.charge.start.level}
+
+# For Japan radio builds, 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.radio.subtype=1
+ setprop audio.camerasound.force true