Automatic WiFi tethering on BT connection with car

by Geert Vanhaute

Version 10 (October 2, 2016)

Download (765 downloads)

Wi-Fi tethering is automatically switched on after connecting to bluetooth of my car (used for internet data for navigation). It is switched off after disconnecting. Conditions are that bluetooth is on, mobile data is on, battery is more than 15% or you are charging, powersave is off and roaming is off. Changing one of these will also enable/disable the tethering when connected to your car.
Bluetooth device and if an app has to be started when connecting with Bluetooth is asked on startup, with selection of the app. Next question is if this app has to be closed when disconnecting. (This only works with root due to Android limitation!)
Next question is if an app has to be started after disconnecting, with selection of the app. In that case, you will receive after each shutdown of tethering a question for 20 seconds if you want to open the app.
I use an app to store GPS location and time of where and when I parked my car.
Starting an app automatically after connecting is not yet possible, but if you need it I can adapt the flow.

*update 29/04/2016* roaming will now also disable tethering and will enable it when not roaming anymore.

*update 14/06/2016* if your battery is lower than 15% and you are charging your phone, wifi tether will still work. If you are tethering and your battery runs low, tethering will resume if you plug in your charger.
Also, I removed automatic enabling of GPS so root is no longer required.

*update 15/07/2016* Now you also have the choice to start an app when connecting. If enabled, app will stop when disconnecting. Killing an app is only possible if your phone is rooted. (Android limitation) This is the only reason why root permission is needed. If you don't have root, flow will work but the started app upon connection will not be stopped automatically. Mind that if you enable this app, it will always be started. (Unlike the app that starts when disconnecting where there's a question first.) If you need this behavior to be changed, let me know. It could also ask a question first.

*update 02/10/2016* wifi will be switched back on after thetering if it was enabled before

Just run this flow once, leave it running all the time and forget about it... No need to restart it each time take your car.


Kyle Miller, flow to switch on tethering should stop if bluetooth is off or not connected. So I think Automate doesn't follow the flow correctly.

4.5 average rating from 4 reviews

5 stars
3
4 stars
0
3 stars
1
2 stars
0
1 star
0
Warnings
0

Reviews and ratings can be submitted in the app.