Search code examples
androidadbvoice-recognitionandroid-tvgoogle-assistant

How to open google assistant in Android TV Emulator


I'm working with the voice assistant, but I'm not sure how I can open the google assistant in the Android TV Emulator.

I was able to setup my microphone, and it's working when I open the google assistant in the android tv home. However, I want to open it while using my app. If it was a real tv, I would have the mic or assistant button on the remote controller, but in this case I just have the emulator.

An ADB command to trigger it would also help.

Thank you,


Solution

  • This adb command should work specifying the Assistant component

    adb shell am start-activity com.google.android.apps.googleassistant/.AssistantActivity