Add Bluetooth audio/HID/discoverability/alias support, fix SD card hotplug & caller ID matching, and expand ReMEdy J2ME JSRs + 64MB GC

This commit is contained in:
Luxferre committed 2026-11-01 16:18:04 +02:00
1 parent 456d3fbc42
commit 471916424e
51 files changed
+2961 -305

No files matched your search

+8 -1
View File
@@ -2019,6 +2019,8 @@ readstdin(void)
static int
bt_is_unblocked_fast(void)
{
if (access("/run/bluetoothd.pid", F_OK) != 0)
return 0;
DIR *d = opendir("/sys/class/rfkill");
if (!d)
return 0;
@@ -2689,7 +2691,12 @@ open_builtin_menu(const char *menu_name, int keep_idx)
int is_ear = (strstr(out_dev, "Earpiece") != NULL || strstr(out_dev, "earpiece") != NULL);
int is_hp = (strstr(out_dev, "Headphone") != NULL || strstr(out_dev, "headphone") != NULL ||
strstr(out_dev, "Headset") != NULL || strstr(out_dev, "headset") != NULL);
int is_spk = (!is_ear && !is_hp);
int is_bt = (strstr(out_dev, "Bluetooth") != NULL || strstr(out_dev, "bluetooth") != NULL ||
strstr(out_dev, "bluez") != NULL);
int is_spk = (!is_ear && !is_hp && !is_bt);
snprintf(label, sizeof(label), "%s Route to Bluetooth %s", ICON_BTH, is_bt ? ICON_TON : ICON_TOF);
add_menu_item(label, "printf 'Bluetooth\\n' > /tmp/sxmo_audio_out_device; sxmo_audio.sh device set Bluetooth >/dev/null 2>&1", 1);
snprintf(label, sizeof(label), "%s Route to Speaker %s", ICON_MUS, is_spk ? ICON_TON : ICON_TOF);
add_menu_item(label, "printf 'Speaker\\n' > /tmp/sxmo_audio_out_device; sxmo_audio.sh device set Speaker >/dev/null 2>&1", 1);