Toggle between Google & automate assistant

by P. Andreas Schmidt, IVE

Version 2 (July 3, 2023)

Download (85 downloads)

No premium - no root
ADB needed

Update:
Since the example and purpose is to swap between Google and Automate as assistant to execute a flow in between, I adapted the flow to actually do that: if AM isn't the assistant then change settings, run flow, when fiber stops, swap back to Google Assistant (or you can put in whichever you want).

Thanks to this flow https://llamalab.com/automate/community/flows/34063 I made my own version.
It makes it possible to set AM as the assistant of the device. This can come in handy if you want to run things that need it (airplane mode, assistant requests) but don't want to have to grant it/change the setting for that, nor do you want AM to be so permanently.
Obviously you'll need two separate flows, for the one doing the assistant stuff will not start if AM is not set to be the assistant, so it can't do it by itself. You need another flow (this one, e.g.) changing the setting and then starting the other flow. Of course, once the main flow is started and perhaps you don't need this at once, it could revert the setting back, and then set AM again whenever needed.

There are two ways of doing it: One with the settings blocks, but this requires granting secure settings to AM via ADB, first (once).
The other option uses the ADB shell so you need developer options activated and a running wireless ADB connection. Before running you'll have to set the keychain in the ADB blocks to yours.

Thanks Michael Todd! The original flow only deactivated the assistant or reactivated it to Google. Mine toggles between Google and Automate.

5.0 average rating from 2 reviews

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

Rate and review within the app in the Community section.