Me being simultaneously impressed
and having no idea what any of this means.
Nice work
@Slingky I assume I'll need to start with this?
Automate almost any task on your device
play.google.com
Yes, install the app.
After that, you will be able to download the "flow" (from the link I provided in 1st post) which is some king of script if you prefer.
But, for that kind of flow that needs special permission, you will have to ;
Download Android SDK
Android SDK Platform-Tools is a component for the Android SDK.
developer.android.com
Run command prompt in "admin mode"
go to the directory you extracted the android sdk and run theses commands;
# list devices to find serial number of your phone
adb devices
-> give permission to your computer on your phone by acknowledging the dialog
# be sure to replace <serial number> with the serial number of your phone found at previous step
adb -s <serial number> shell pm grant com.llamalab.automate android.permission.WRITE_SECURE_SETTINGS
** start the flow so it is running in background and execute itself each time a bluetooth device is connected/disconnected.