Add bluetooth_lea_mode_prop for persist.bluetooth.leaudio_dynamic_switcher.mode.
Only allow coredomain/bluetooth/system_app to access.

Bug: 397105257
Change-Id: I3c547c5fa94ed22050b7c0a68d841eabad7c0efa
Test: m .
diff --git a/private/bluetooth.te b/private/bluetooth.te
index 0b001e2..d3d65bb 100644
--- a/private/bluetooth.te
+++ b/private/bluetooth.te
@@ -55,6 +55,7 @@
     binder_cache_bluetooth_server_prop:property_service set;
 set_prop(bluetooth, bluetooth_a2dp_offload_prop)
 set_prop(bluetooth, bluetooth_audio_hal_prop)
+set_prop(bluetooth, bluetooth_lea_mode_prop)
 set_prop(bluetooth, bluetooth_prop)
 set_prop(bluetooth, exported_bluetooth_prop)
 set_prop(bluetooth, pan_result_prop)
diff --git a/private/property.te b/private/property.te
index cd87e7a..41db046 100644
--- a/private/property.te
+++ b/private/property.te
@@ -2,6 +2,7 @@
 system_internal_prop(adbd_prop)
 system_internal_prop(adbd_tradeinmode_prop)
 system_internal_prop(apexd_payload_metadata_prop)
+system_internal_prop(bluetooth_lea_mode_prop)
 system_internal_prop(ctl_snapuserd_prop)
 system_internal_prop(ctl_prefetch_prop)
 system_internal_prop(ctl_uprobestats_prop)
diff --git a/private/property_contexts b/private/property_contexts
index d80931c..3aac93d 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -634,6 +634,7 @@
 persist.bluetooth.snooplogfilter.profiles.rfcomm.enabled    u:object_r:bluetooth_prop:s0 exact bool
 persist.bluetooth.factoryreset                              u:object_r:bluetooth_prop:s0 exact bool
 persist.bluetooth.leaudio.allow_list                        u:object_r:bluetooth_prop:s0 exact string
+persist.bluetooth.leaudio_dynamic_switcher.mode             u:object_r:bluetooth_lea_mode_prop:s0 exact string
 
 bluetooth.a2dp.source.sbc_priority.config            u:object_r:bluetooth_config_prop:s0 exact int
 bluetooth.a2dp.source.aac_priority.config            u:object_r:bluetooth_config_prop:s0 exact int
diff --git a/private/system_app.te b/private/system_app.te
index 9a70375..06d49e9 100644
--- a/private/system_app.te
+++ b/private/system_app.te
@@ -60,6 +60,9 @@
 # Allow Settings to enable Dynamic System Update
 set_prop(system_app, dynamic_system_prop)
 
+# Allow Settings to access le audio mode property
+set_prop(system_app, bluetooth_lea_mode_prop)
+
 # ctl interface
 set_prop(system_app, ctl_default_prop)
 set_prop(system_app, ctl_bugreport_prop)