Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 437bfb32 authored by Amy's avatar Amy Committed by Shubang Lu
Browse files

Make PROPERTY_SYSTEM_AUDIO_MODE_MUTING_ENABLE read-only.

This property was manually set to false in LocalDevice before.
Adding false value in atom.mk and make the property read-only now.

ag/4947274

Test: local tested.
Bug: 80297700
Change-Id: Ibf9890233b111653b340c381d86639da1086d9a0
parent 9a59d9c9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -279,9 +279,8 @@ final class Constants {
     * <p>True means enabling muting logic.
     * <p>False means never mute device.
     */
    // TODO(OEM): Change property to ro and set to true to disable muting.
    static final String PROPERTY_SYSTEM_AUDIO_MODE_MUTING_ENABLE =
            "persist.sys.hdmi.property_system_audio_mode_muting_enable";
            "ro.hdmi.property_system_audio_mode_muting_enable";

    /**
     * When set to true the HdmiControlService will never request a Logical Address for the
+0 −2
Original line number Diff line number Diff line
@@ -77,8 +77,6 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDeviceSource {
        // TODO(amyjojo) make System Audio Control controllable by users
        /*mSystemAudioControlFeatureEnabled =
        mService.readBooleanSetting(Global.HDMI_SYSTEM_AUDIO_CONTROL_ENABLED, true);*/
        // TODO(b/80297700): set read-only property in config instead of setting here
        SystemProperties.set(Constants.PROPERTY_SYSTEM_AUDIO_MODE_MUTING_ENABLE, "false");
        mAutoDeviceOff = mService.readBooleanSetting(
                Global.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED, true);
        mAutoTvOff = mService.readBooleanSetting(