Bluetooth tethering for samsung z flip 7

43 views
Skip to first unread message

Markus Järvisalo

unread,
Nov 25, 2025, 6:52:34 AM (9 days ago) Nov 25
to Automate for Android
Hi,

Is there any way to enable bluetooth internet tethering/sharing using automate?

I've exhausted all options given by chatgpt and while I felt I made some progress, none of the shell commands actually turn on bluetooth tethering.

I've tried the following:
settings put global bluetooth_tethering_enabled 1
settings put system bluetooth_pan 1
settings put global tethering_bluetooth_enabled 1
svc bluetooth enable_pan

None of the bluetooth tethering block from Automate work so shell scripting is the only option I guess but those do not work.

I've enabled developer mode and given WRITE_SECURE_SETTINGS permission to Automate:

adb shell dumpsys package com.llamalab.automate | Select-String "WRITE_SECURE_SETTINGS"

      android.permission.WRITE_SECURE_SETTINGS
      android.permission.WRITE_SECURE_SETTINGS: granted=true

So... What more can I try?

l

unread,
Nov 25, 2025, 8:51:33 AM (9 days ago) Nov 25
to automa...@googlegroups.com
The phone firmware must support Bluetooth tethering - Automate merely
turns it on. Can you enable Bluetooth tethering manually?

Henrik "The Developer" Lindqvist

unread,
Nov 25, 2025, 9:21:35 AM (9 days ago) Nov 25
to Automate for Android
Use the Bluetooth tethering set state block, choose an "Bluetooth tethering workaround" option in setting that works, the "Privileged service" option should work on most devices.

Markus Järvisalo

unread,
Nov 25, 2025, 9:25:04 AM (9 days ago) Nov 25
to automa...@googlegroups.com
Yes. The phone supports bluetooth tethering. I use it all the time for my car. I just want to Automate turning it on when the phone connects to my car's bluetooth. Now with no reliable way to automatically turn bt tethering on, I have to do it manually every time. Bixby routines would also be perfect but for some reason Samsung has removed that from there. Seems like Automate is the only App left but I would just like to know if there is such a shell command for Samsungs Android variant which does the job.

--
You received this message because you are subscribed to a topic in the Google Groups "Automate for Android" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/automate-user/Rrioke6bChg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to automate-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/automate-user/20251125144954.709e398f%40l7400.lan.

Markus Järvisalo

unread,
Nov 25, 2025, 9:36:38 AM (9 days ago) Nov 25
to automa...@googlegroups.com
I think I tried all the combinations... None work.

Here is the log:

-25 16:26:41.464 I 25@1: Flow beginning
11-25 16:26:41.465 I 25@9: Bluetooth tethering set state
11-25 16:26:41.496 F 25@9: java.lang.IllegalStateException: Unknown error
11-25 16:26:41.499 I 25@9: Stopped by failure
11-25 16:27:12.170 I 26@1: Flow beginning
11-25 16:27:12.170 I 26@9: Bluetooth tethering set state
11-25 16:27:12.178 F 26@9: java.lang.IllegalStateException: Unknown error
11-25 16:27:12.181 I 26@9: Stopped by failure
11-25 16:27:30.737 I 27@1: Flow beginning
11-25 16:27:30.738 I 27@9: Bluetooth tethering set state
11-25 16:27:41.008 W 27@9: Failed to start privileged service
11-25 16:27:41.010 W 27@9: java.util.concurrent.CancellationException: Please execute: sh /sdcard/Android/data/com.llamalab.automate/cache/start.sh
11-25 16:27:46.097 F 27@9: java.util.concurrent.TimeoutException: Service startup timeout
11-25 16:27:46.099 I 27@9: Stopped by failure
11-25 16:31:23.544 I 28@1: Flow beginning
11-25 16:31:23.547 I 28@9: Bluetooth tethering set state
11-25 16:31:23.811 W 28@9: Failed to start privileged service
11-25 16:31:23.812 W 28@9: java.lang.UnsupportedOperationException: Privileged service disabled, see settings.
11-25 16:31:38.906 F 28@9: java.util.concurrent.TimeoutException: Service startup timeout
11-25 16:31:38.916 I 28@9: Stopped by failure
11-25 16:31:41.914 I 29@1: Flow beginning
11-25 16:31:41.915 I 29@9: Bluetooth tethering set state
11-25 16:31:41.924 F 29@9: java.lang.IllegalStateException: Unknown error
11-25 16:31:41.928 I 29@9: Stopped by failure
11-25 16:33:51.271 I 30@1: Flow beginning
11-25 16:33:51.272 I 30@9: Bluetooth tethering set state
11-25 16:33:51.281 F 30@9: java.lang.IllegalStateException: Unknown error
11-25 16:33:51.286 I 30@9: Stopped by failure
11-25 16:34:14.839 I 31@1: Flow beginning
11-25 16:34:14.840 I 31@9: Bluetooth tethering set state
11-25 16:34:25.098 W 31@9: Failed to start privileged service
11-25 16:34:25.100 W 31@9: java.util.concurrent.CancellationException: Please execute: sh /sdcard/Android/data/com.llamalab.automate/cache/start.sh
11-25 16:34:30.196 F 31@9: java.util.concurrent.TimeoutException: Service startup timeout
11-25 16:34:30.205 I 31@9: Stopped by failure

--
You received this message because you are subscribed to a topic in the Google Groups "Automate for Android" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/automate-user/Rrioke6bChg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to automate-use...@googlegroups.com.

Henrik "The Developer" Lindqvist

unread,
Nov 25, 2025, 10:09:04 AM (9 days ago) Nov 25
to Automate for Android
Since you've chosen the "Manually" option for "Privileged service start method" then as the log say:
11-25 16:34:25.098 W 31@9: Failed to start privileged service
11-25 16:34:25.100 W 31@9: java.util.concurrent.CancellationException: Please execute: sh /sdcard/Android/data/com.llamalab.automate/cache/start.sh
11-25 16:34:30.196 F 31@9: java.util.concurrent.TimeoutException: Service startup timeout

If you have an Android 11+ device then using the "Android Debug Bridge" option is easiest to use, select it then follow the onscreen instructions to pair Automate with your device.

Markus Järvisalo

unread,
Nov 25, 2025, 2:17:44 PM (9 days ago) Nov 25
to automa...@googlegroups.com
Thanks Henrik,

I executed the start.sh script but that didn't work.

Then.

I'm not sure what happened but I went to choir practice and when I came back the ADB activation method using port 5555 just worked.

So, I guess this will keep working until I restart the phone and then I need to redo the adb tcpip 5555?

Henrik "The Developer" Lindqvist

unread,
Nov 25, 2025, 2:33:20 PM (9 days ago) Nov 25
to Automate for Android
Yes, ADB should work until the device is rebooted. If you have an Android 11+ device, using it's "Wireless debugging", then it's possible to make a flow that re-enable it.

мJ Zкxy

unread,
Nov 26, 2025, 1:21:37 PM (8 days ago) Nov 26
to Automate for Android
Or you can use accessibility on Automate by checking if tethering is off and turn it on with block Interaction.
Reply all
Reply to author
Forward
0 new messages