MagiskOnWSALocal icon indicating copy to clipboard operation
MagiskOnWSALocal copied to clipboard

[Feature Request] Enable voice interaction service for Google Assistant for the w/GApps builds.

Open ccelik97 opened this issue 3 years ago • 8 comments

Is your feature request related to a problem?/你的请求是否与某个问题相关?

Yes, as most people expect Google Assistant to work when it's a build with GApps included. :D

Describe the solution you'd like/描述你想要的解决方案

As recently shown/mentioned here on r/WSA (and I can confirm that it works), the following command enables voice interaction service for Google Assistant:

adb shell settings put --user 0 secure voice_interaction_service com.google.android.googlequicksearchbox/com.google.android.voiceinteraction.GsaVoiceInteractionService

I'm guessing that creating/adding an entry to a related .xml file (under the directory /etc/permissions or /etc/sysconfig, similarly to those that are found in OpenGApps' Core.tar.xz archives) may solve it.

More info here: https://developer.android.com/reference/android/service/voice/VoiceInteractionService

Additional context/其他信息

No response

ccelik97 avatar Oct 01 '22 17:10 ccelik97

That's great.

s1204IT avatar Oct 02 '22 01:10 s1204IT

I haven't found an easy way to set the default voice assistant app yet, so if you find a way you can remind me.

Howard20181 avatar Oct 02 '22 08:10 Howard20181

I haven't found an easy way to set the default voice assistant app yet, so if you find a way you can remind me.

I didn't do anything to set it as a default app for anything though. It's WSA with GApps, so the Google app is installed and I only ran that command. As in, if I launch the Android Settings app of WSA and navigate to Apps -> Default Apps it opens Windows' Settings -> Apps -> default apps -> Google page (and there I see that the Google app (and it's set as the default app as for everthing that it can be set as default already).

It can be run without ADB, but as a privileged user from within an Android system too e.g:

su -c settings put --user 0 secure voice_interaction_service com.google.android.googlequicksearchbox/com.google.android.voiceinteraction.GsaVoiceInteractionService

But the thing with both commands is the fact that it doesn't persist across (WSA) system restarts, hence why I brought up the possibility of setting it via an .xml file in system, similarly to how it's done when an OpenGApps .zip is flashed/used here to repack the WSA system images.

That or, maybe we could try making a Windows app to open the URL:ms-cortana2 links via Google Assistant of WSA instead? (but this could lead to saying "Hey Cortana!" to talk to Google Assistant xd.)

ccelik97 avatar Oct 02 '22 18:10 ccelik97

This might can be set by add overlay config to android frameworks as that is how Pixel device or any custom rom does that

someone5678 avatar Oct 05 '22 04:10 someone5678

PR welcome 😉

Howard20181 avatar Oct 05 '22 04:10 Howard20181

This might can be set by add overlay config to android frameworks as that is how Pixel device or any custom rom does that

After testing, No. There's no easy way since default app config is not possible to overlaying with rro.

someone5678 avatar Oct 05 '22 07:10 someone5678

Hey, I made a little Magisk module that solves this as a temporary workaround: Link to Telegram post: [Magisk] Google Assistant Enable Voice Interaction Service.zip

Btw Telegram requires an account to download the files from there so I think I should publish such stuff I made over here on GitHub etc too eventually for easier access lol, feel free to reupload it in the meantime.

ccelik97 avatar Oct 13 '22 06:10 ccelik97

How can we fix play store problem (can't sign in)

ghost avatar Oct 21 '22 08:10 ghost