• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MODULE] Google Assistant Enabler for Magisk v9/v10/v11

Search This thread
This module enables Google Assistant on Nougat phones/tablets.

If you have Marshmallow/Nougat device you may no longer need this module after Google rolls out Google Assistant to all eligible devices. Find out more at https://blog.google/products/assistant/google-assistant-coming-to-more-android-phones/

Version 10.0.2 no longer changes phone model/manufacturer and requires Magisk 10 (thanks @candiesdoodle for investigation). Magisk 9 users can download the legacy 10.0.1 version which is the latest version which doesn't use Magisk 10-introduced features and also it still changes the phone model/manufacturer.

Make sure to check the README at GitHub for instructions/requirements/links.

NOW IN OFFICIAL MAGISK REPO!

According to this, you don't need this module if you're using Open Gapps.
 
Last edited:

oreo27

Senior Member
Sep 24, 2012
649
142
I see you made some resetprop changes. Is this all that's required to run Google Assistant?

Does the Xposed module of similar description do the same?
 

nickmilla15

Senior Member
Apr 14, 2013
1,385
770
Orlando
Will this fix the settings in the google app for "okay google" detection? I flashed v1 of the module and now those settings are greyed out/I'm unable to say "Ok google" and activate it from the home screen (or any other screen)

Edit: Flashing v2 didn't fix. I'm going to clear app data and see if that does it

Edit 2: Clearing app data didn't fix it. Any ideas?
 
Last edited:

loserskater

Inactive Recognized Developer
Jun 6, 2008
2,160
4,433
Palmdale, CA
Will this fix the settings in the google app for "okay google" detection? I flashed v1 of the module and now those settings are greyed out/I'm unable to say "Ok google" and activate it from the home screen (or any other screen)

Edit: Flashing v2 didn't fix. I'm going to clear app data and see if that does it

Edit 2: Clearing app data didn't fix it. Any ideas?

When you try to enable it does it enable for about a half second and then disable? If so, enable it and then quickly tap delete voice model. After that you should be able to enable it properly.
 

mpgrimes

Senior Member
Jun 7, 2010
454
146
45
Lethbridge
Only issue I have noticed with this.. When enabled, HDR+ mode is no longer available on nexus 6p. Disable this mod and HDR+ shows up again. Any way around it?
 
Will this fix the settings in the google app for "okay google" detection? I flashed v1 of the module and now those settings are greyed out/I'm unable to say "Ok google" and activate it from the home screen (or any other screen)

Edit: Flashing v2 didn't fix. I'm going to clear app data and see if that does it

Edit 2: Clearing app data didn't fix it. Any ideas?
Try these steps:
1. Disable the module
2. Reboot
3. In the Google Now setup voice model/OK Google from any screen
4. Enable the module
5. Reboot to recovery
6. In recovery, wipe cache and dalvik/cache
7. Reboot
8. You should have google assistant working.

Only issue I have noticed with this.. When enabled, HDR+ mode is no longer available on nexus 6p. Disable this mod and HDR+ shows up again. Any way around it?
No clue, I'm guessing HDR+ probably depends on specific prop which my module overrides in order to enable Assistant.
 

gongzhen

New member
Aug 8, 2011
3
1
Still in trouble.... Cannot format Dalvik cache as twrp for the model does not support f2fs data partition. But resetprop succeed and shows Pixel XL in status. Any ideas?

Well....It turns out to be a delay. After I woke the phone with "Ok, Google" twice, the assistant appears.
 
Last edited:
  • Like
Reactions: stangri

acupunk

Senior Member
Dec 31, 2013
184
27
Samsung Galaxy Tab S7 / S7 Plus
Try these steps:
1. Disable the module
2. Reboot
3. In the Google Now setup voice model/OK Google from any screen
4. Enable the module
5. Reboot to recovery
6. In recovery, wipe cache and dalvik/cache
7. Reboot
8. You should have google assistant working.

Not working for me on viper10 4.4 full ROM. Only seems to make a delay in OK Google detection. Otherwise, no assistant.
 

yaoming123

Member
Aug 9, 2009
9
0
Thanks for the mod. I have 10.0.1 installed and have followed the directions to enable the assistant. While the assistant has been enabled, every time I activate it with "OK Google" the assistant setup comes up and asks me to train my voice and what not. This does not happen when enabling the assistant by long-pressing the home button, in which case the assistant activates normally without the prompt to set it up. I am on the Oneplus 3T running OxygenOS 4.0.0 and Google app v6.9.36.21.arm64.
 
Thanks for the mod. I have 10.0.1 installed and have followed the directions to enable the assistant. While the assistant has been enabled, every time I activate it with "OK Google" the assistant setup comes up and asks me to train my voice and what not. This does not happen when enabling the assistant by long-pressing the home button, in which case the assistant activates normally without the prompt to set it up. I am on the Oneplus 3T running OxygenOS 4.0.0 and Google app v6.9.36.21.arm64.

You didn't delete Google Now's cache/clear its storage instead of clearing cache/dalvik/art from recovery by any chance? Did you train the voice model before installing the module?
I've had it happen to me once, the solution was to disable the module, reboot, train the voice model in Google now, enable module, reboot to recovery, clear cache/dalvik/art and then boot up. As far as I remember it's a hit or miss process. As others reported you may want to wait a bit after the phone boots up after final step before invoking Assistant.
 

yaoming123

Member
Aug 9, 2009
9
0
You didn't delete Google Now's cache/clear its storage instead of clearing cache/dalvik/art from recovery by any chance? Did you train the voice model before installing the module?
I've had it happen to me once, the solution was to disable the module, reboot, train the voice model in Google now, enable module, reboot to recovery, clear cache/dalvik/art and then boot up. As far as I remember it's a hit or miss process. As others reported you may want to wait a bit after the phone boots up after final step before invoking Assistant.

I actually did both, cleared the Google app cache before following the instructions to wipe the Dalvik/ART and cache in recovery. I cleared the app cache due to having to do this in a different incarnation of the assistant installer on a different device.
 

Sir-Shadow

Senior Member
Feb 26, 2012
103
47
Isfahan
Try these steps:
1. Disable the module
2. Reboot
3. In the Google Now setup voice model/OK Google from any screen
4. Enable the module
5. Reboot to recovery
6. In recovery, wipe cache and dalvik/cache
7. Reboot
8. You should have google assistant working.

These steps worked for me on HTC 10 LeeDrOiD.
Step 3 was the key I was missing. I couldn't register my voice and that was because I hadn't enabled "OK Google from any screen".
Also after I launched Google app I waited a little to see Google Assistance prompt.
 
  • Like
Reactions: stangri

taopg7

Senior Member
Apr 2, 2013
147
66
Kathmandu
sabdasansar.com
"Google Now" doesn't support in my country.
I tried to install google assistant by enabling ok google detection (as per OP) but it didn't work.

Magisk 10.2 installed and rooted properly.

Device: OP3, Android version: 7.0

Is there any idea?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    This module enables Google Assistant on Nougat phones/tablets.

    If you have Marshmallow/Nougat device you may no longer need this module after Google rolls out Google Assistant to all eligible devices. Find out more at https://blog.google/products/assistant/google-assistant-coming-to-more-android-phones/

    Version 10.0.2 no longer changes phone model/manufacturer and requires Magisk 10 (thanks @candiesdoodle for investigation). Magisk 9 users can download the legacy 10.0.1 version which is the latest version which doesn't use Magisk 10-introduced features and also it still changes the phone model/manufacturer.

    Make sure to check the README at GitHub for instructions/requirements/links.

    NOW IN OFFICIAL MAGISK REPO!

    According to this, you don't need this module if you're using Open Gapps.
    2
    I see you made some resetprop changes. Is this all that's required to run Google Assistant?

    Does the Xposed module of similar description do the same?

    Yes it is .
    2
    Will this fix the settings in the google app for "okay google" detection? I flashed v1 of the module and now those settings are greyed out/I'm unable to say "Ok google" and activate it from the home screen (or any other screen)

    Edit: Flashing v2 didn't fix. I'm going to clear app data and see if that does it

    Edit 2: Clearing app data didn't fix it. Any ideas?
    Try these steps:
    1. Disable the module
    2. Reboot
    3. In the Google Now setup voice model/OK Google from any screen
    4. Enable the module
    5. Reboot to recovery
    6. In recovery, wipe cache and dalvik/cache
    7. Reboot
    8. You should have google assistant working.

    Only issue I have noticed with this.. When enabled, HDR+ mode is no longer available on nexus 6p. Disable this mod and HDR+ shows up again. Any way around it?
    No clue, I'm guessing HDR+ probably depends on specific prop which my module overrides in order to enable Assistant.
    2
    That will leave this:
    /data/magisk/resetprop ro.opa.eligible_device true
    Thanks man, I'll try the same on Nexus 6 to see if it works.

    If anyone wants to test the module with just this setting (without messing up model/manufacturer), try the module attached.
    2
    Okay I think this works.
    Within the module zip, before installing, comment out the following lines in post-fs-data.sh


    #/data/magisk/resetprop ro.product.model "Pixel XL"
    #/data/magisk/resetprop ro.product.manufacturer Google

    That will leave this:
    /data/magisk/resetprop ro.opa.eligible_device true

    Install and reboot. Worked for me on OP3 (OB10) even without clearing any cache. As said by others this probably works because the latest Google app (beta) supports it without the product properties. Hotword and voice train also works.
    @stangri sorry if I modded your module without permission and posted it here. Lmk if i should remove it.