• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Control 'OK Google' with Tasker?

stuarta

Android Enthusiast
Does anybody know how to alter the 'Ok Google' settings so they can be controlled through Tasker? What I'm trying to do is to enable the 'Ok Google' always on while bluetooth is on in my car, but off the rest of the time
 
Are you root-ed? What device?

If root-ed you can probably do it with the shell action to deliver the dialog clicks that you want to inmate it. There is a voice plug-in that could be used to start the process.

If you are using a Droid Maxx, Maxx 2, Turbo, or Turbo 2 the Motorola alternative does what you want already.

... Thom
 
Are you root-ed? What device?

If root-ed you can probably do it with the shell action to deliver the dialog clicks that you want to inmate it. There is a voice plug-in that could be used to start the process.

If you are using a Droid Maxx, Maxx 2, Turbo, or Turbo 2 the Motorola alternative does what you want already.

... Thom
N6 and not rooted
 
I think you are out of luck. The capability to simulate a button push by passing it a screen coordinate requires root-ing. I am not root-ed and verified that it fails on an un-root-ed device.

(BTW Touchless Control is the feature on the Turbo that IMNHO sets it apart from the competition.)

... Thom
 
Well I was thinking more flicking the switch that turns on and off the always on setting.
 

Attachments

  • Screenshot_20151120-195834.png
    Screenshot_20151120-195834.png
    369.9 KB · Views: 226
Well I was thinking more flicking the switch that turns on and off the always on setting.
Unfortunately one of the primary security features of Android prevents one app from directly influencing another ("sandboxing"). Tasker won't be able to change any configurations within the Google Search app unless there is a specific API to allow it. The workaround @Thom mentioned would essentially simulate the same touch events that your finger would trigger by launching the app, going into settings, and toggling the setting.

Without root, about the only other workaround I can think of would be using something like the AutoVoice plugin to essentially chainload Voice Search. You could then have "Always On" disabled and just use Tasker/AutoVoice to forward queries the Google app while Bluetooth is connected.
 
Ok thanks will look at that. Don't want the always on to be enabled but good to have it on while in the car to answer texts or anything
 
Back
Top Bottom