I'm working on a voice assistant, and every time the app is deployed on the phone, I need to change again the default assistant to my app. Just a few clicks, but 100 times a day, that's some time gone !!
Something similar exists for setting the default launcher
adb shell cmd package set-home-activity "the.package/.TheLauncherActivity"
So I tried
adb shell cmd package set-assistant "the.package/.TheLauncherActivity"
adb shell cmd package set-voice-assistant "the.package/.TheLauncherActivity"
adb shell cmd package set-assist "the.package/.TheLauncherActivity"
adb shell cmd package set-voice-assist "the.package/.TheLauncherActivity"
It's weird because the assistant itself is more a service than an activity, but anyways, all I got is:
Unknown command: set-voice-assist (and the others)
So I guess I'm not even close.