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
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.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
diff --git a/sepolicy/vendor/vendor_init.te b/sepolicy/vendor/vendor_init.te
index d072d1f..efcd752 100644
--- a/sepolicy/vendor/vendor_init.te
+++ b/sepolicy/vendor/vendor_init.te
@@ -29,3 +29,7 @@
 allow vendor_init vendor_tui_data_file:dir create_dir_perms;
 
 set_prop(vendor_init, vendor_usb_prop)
+
+# To allow setting audio.camerasound.force based on
+# ro.boot.hardware.radio.subtype at boot
+get_prop(vendor_init, vendor_radio_sku_prop)