yashsingh1/xdaforums huggingface dataset:
[Android Software Development] nuchin:
I'm using opo pure nexus, assistant is working fine but the problem is with 'ok google' detection. Crashes everytime.

Edit: Its no longer crashing, but asks me to train everytime I say ok google. Have you fixed it?
[Android Software Development] Huiko12:
Got it working on CM14.1

OK, so i got it working my phone Android 7.1 (CM14.1)

1. Do the step on the tutorial (Wiping data on setting for google app just make me go into google now)

2. Clear data using Titanium Backup instead of setting.

Now assistant is working on my rom, before this it just showing Google Now.

Can someone confirm this working on other device?

Phone Detail: Xiaomi Mi3

Rom: Beanstalk 7.1.0 by Shahan_mik3 http://xdaforums.com/member.php?u=5162591

Gapps: Open Gapps 7.1 nano

Extra stuff that I flash: Google Pixel boot animation, SR1 SuperSU ver 2.78, Adaway Systemless Host, Google Assistant Vevlet as in method 2 of the tutorial.

P.S: I manually edit the build.prop usign Kernel Auditor
[Android Software Development] cescof:
it doesn't work on galaxy s2 cyanogenmod 14

---------- Post added at 06:33 PM ---------- Previous post was at 06:26 PM ----------

SOLVED:

i only setted english (US) language and it worked
[Android Software Development] nappingbeam7:
Can you tell about Moto g2 2014 cm14.1?
[Android Software Development] Mohsin Pathan:
Not working on my cm14.1 rom

Firstly, it was working on my cm14 but when I updated it too 14.1 it is not working. Please help :(
[Android Software Development] nappingbeam7:
There is no Home section.:confused: Pls try to solve this thing or write steps to be followed for it.
[Android Software Development] t2jbird:
Those having trouble on 14.1, try making your Google App a system app. That did the trick for me. Before I was holding the home button and not even getting On Tap to work.

I cleared Google App Data & Cache, reapplied the needed permissions, booted into TWRP, mounted system, went to advance>file manager, move the Google app folder from data>Apps to system>Apps, rebooted, profit.
[Android Software Development] JJay0258:
It's not working for me. Can you explain how you did it please?
[Android Software Development] ronit_jadhav:
It works !!!

Check this video :

https://youtu.be/q0FnodA0bZQ
[Android Software Development] fmbking:
Same on my LG G3. Now all that's missing is the "ok google" voice model saving.
[Android Software Development] suku_patel_22:
After the assistant is enabled, is it safe to update the app from PlayStore?
[Android Software Development] ronit_jadhav:
Yes... No problem... You can update!!!
[Android Software Development] Prasad98:
Can give us more details?

Like I'm here on a cm14.1 on a OnePlus 2 and I flashed the latest aroma gapps and selected Google search and hotword from aroma and many other gapps ?

What gapps package did you use?
[Android Software Development] Tarunshrm864:
Try clearing data in the app info of google app
[Android Software Development] Mohsin Pathan:
Tap is working, but Google assistant is not working. I moved Google app as system as you said and cleared data but now tap is working but Google assistant is not.
[Android Software Development] NLBeev:
On my Nexus 6. Stock Nougat; Google app is in system/priv-app/Velvet/Velvet.apk.

Assistent working as follows:

The two required lines must be in build.prop.

Check if there is no 2nd Google app in data/app/com......quicksearchbox.

Clear data cache of Google app in the settings.

Start Google app - train 'OK Google in the settings of Google App.

Reboot.

Check if 'OK Google' works. Repeat saying 'OK Google'. Until data/info appears.

Close Google App.

Long press home.

That's how I got it working with Assistant and a blacked out Google App version 6.3 .36.21 of the TBO team.
[Android Software Development] Mohsin Pathan:
I got it working on my cm14.1

Just flash these files via custom recovery.

https://www.androidfilehost.com/?w=files&flid=121914

Note- create a backup before you flash and keep the Downloaded files in your internal sdcard and not in any sub-folder then flash it.
[Android Software Development] songs354:
you can skip the process using tasker, you need to create a profile for that and then the voice detection works perfect, it was working for me on cm14 without any issues but after updating to cm14.1 the GA doesn't works anymore

i tried various methods and its working on cm14.1 again but it seems when i tap and hold the home the GA doesn't seems to pop up maybe this is a cm bug ?? its only working via tasker on voice detection
[Android Software Development] Prasad98:
This....this is what worked for me...!!!

Hurray!

Followed your steps exactly just after clean flashing a ROM and it worked!

Thank you so much for sharing !

Only the OK Google HotWord is not working but I can live with it....

Device : OnePlus 2

ROM : Unofficial CM 14.1 by Seraph08

Gapps : OpenGapps aroma package latest

Note : I used the word "Pixel" instead of "Pixel XL"

And I've attached my build.prop for reference
[Android Software Development] songs354:
well hotword detection is working for me via tasker but it doesn't works when i tap and hold the home button, strange and totally opposite, i can't seem to find the issue when i tap and hold it as it doesn't appears, even after clean flashing the rom doesn't pops up the screen search when i tap and hold the home button
[Android Software Development] suku_patel_22:
Thanks, updated and it works.

Will it continue to work if I never back to Nexus 5X in build prop ?
[Android Software Development] mtiberio:
I did all this on my NExus 6 with vanilla 7.0, and I did not get the retrain message every time, however, using ok google did not bring up the assistant, it brought up the old search. long press home brought up the assistant. So I turned off ok detection under settings->google->search and now, and I got the repeating retrain window. I turned ok detection back on in the same place, and then when I said ok google, I got the assistant...
[Android Software Development] Mohsin Pathan:
Google pixel experience all in one that is pixel boot animation, Google assistant, Pixel everything. Just flash needed via custom recovery. http://bit.ly/PixelExperience
[Android Software Development] weaver09:
IFTTT Integration

I have installed Google Assistant and everything seems to be working except for IFTTT integration. Has anyone had any luck trying to get this to work? I more specifically have been trying to get IFTTT to work with Google Assistant and Phillips Hue.
[Android Software Development] aouerfelli:
Works for me, although not for home automation. I have it set a new wallpaper on my device from Unsplash when I tell it to, and it works fine.
[Android Software Development] DigitalPrinceX:
A little unclear, but now that you have assistant activated, revert the build prop changes -> reboot -> retrain voice -> redo build prop changes -> reboot.

Now this is supposed to work.

To this day, I have followed these same steps many times after each clean flash ROM, and it works everytime.
[Android Software Development] Elanza_48:
Does it works on any device running cm 14 or only the one that are mentioned ?
[Android Software Development] hueythecat:
Got it working finally

Just came here to say:

On 6p, 7.1.1 developer, rooted, franco kernel.

Tried for ages with build.prop & deleting google app data with no luck.

From reading the recent posts prior to mine I changed two things:

1. I enrolled in the beta program at the bottom page for the google app in the play store

2. I change my search language setting in Google -> Search & Now to English UK

Restarted phone - deleted Google App data. Now it works.
[Android Software Development] nappingbeam7:
It isn't working. I tried this first.
[Android Software Development] haruyukisama:
Can confirm google assistant is working for rooted T-Mobile lg v20
[Android Software Development] OnkeIM:
Confirm

Can confirm, The hotword detection works now. There is no more voice training needed. Had to train in Google Now, readd build.prop edits and waited like 5 days until GA where there. In The meantime there where 2 automatic updates for Google Apps (beta).

Phone: Nexus 6 (shamu) with stock 7.0
[Android Software Development] nappingbeam7:
Finally Google Assistant working:good:
[Android Software Development] marty_s13:
Doesn't seem to work still on CM14.1 still. Doesn't FC on on ok Google detection settings anymore but ok voice detection still brings up the detecting voice every time. Still cool to have it half working though.
[Android Software Development] Anirudh44:
I am running CM 14.1 on my redmi note 3. Will the mod work in that device. I already have assistant on my nexus 5, searched various threads but couldnt find anything related to redmi note 3.
[Android Software Development] :
Yes. In theory, it will work on any device. Try it.
[Android Software Development] Anirudh44:
Thanks mate.
[Android Software Development] StarShoot97:
Cleared the apps data, still not working on my 6P
[Android Software Development] VictorGuidini:
Did someone get it working on Moto X 2014 (CM14.1)? I've tried to install it on CM 14 and 14.1 and it did nothing to both. I'm just getting on Now on Tap.
[Android Software Development] queenblight:
I'm with Lg Nexus 5x android 7.0.

Will this work on this phone?

Do I need root?

Will it bypass "not available in your country" thing?
[Android Software Development] nappingbeam7:
Follow my steps above.
[Android Software Development] ashokabs:
It works on my LG Nexus 5x android 7.1 and it should work on android 7.0.

Add the two lines in the build.prop file in /system folder. You will need to do it using adb and twrp recovery if you don't have root. The build.prop file has to be modified and it is easier if phone is rooted but not essential. If you search you will find how it is done without root. If you add the lines

ro.product.model=Pixel XL

ro.opa.eligible_device=true

then comment out the line ro.product.model=Nexus by adding # before the line as shown below. It worked for me.

# ro.product.model=Pixel XL

Regards,
[Android Software Development] rios.martinivan:
I can confirm that's working on my Moto E 2015 :D
[Android Software Development] bobthesalesclerk:
I got it working on moto g4 xt1625 but OK google force closes. Thank you for the tutorial.
[Android Software Development] mcdull:
yes. but the hotword is not working.
[Android Software Development] guyb99:
I've been following this thread from the start. Have uprooted N6P running 7.1.1 beta unrooted.

If I root to install assistant then unroot to go back to normal, will it break android pay and others?
[Android Software Development] cidxtc:
You don't need root to gain Google assistant. Everything can be done in custom recovery but you do need unlocked bootloader which I think kills android pay on nexus devices. Although I do believe that relocking bootloader will allow Android pay to work again.
[Android Software Development] Lmax579:
How would I launch it on my LG v20?
[Android Software Development] hkbladelawhk:
To launch on the v20, just hold down the home button.
[Android Software Development] bdwilk:
I think he just wanted everybody to know he has a V20.
[Android Software Development] VictorGuidini:
Now I got it working on Moto X 2nd gen (XT 1097). But the hotword is not working. It keeps going on training. I've tried to solve it by deleting the lines on build.prop, rebooting, adding it again, but no success. Any other fix?
[Android Software Development] Dualz:
Finally got my hotword working with GA flawlessly.

A bit of mucking around to write while at work so I'll just mention something I noticed that might have done the trick.

Clear all data from Google app, then from that screen reboot straight to TWRP and wipe Dalvik/cache and try setting up Hotword.

Just to note as well, am still using Australian English as the language instead of English UK.

I'll try to write more on this process when I get home from work.
[Android Software Development] Lmax579:
no, my phone is irrelevent, i just got the phone Monday, So if I press and hold home, it looks like google on tap
[Android Software Development] bdwilk:
Then you didn't follow the steps correctly to enable GA.
[Android Software Development] Lmax579:
Finally got it, it was a pain....
[Android Software Development] NLBeev:
Just for info. Although we haven't phone paying here in The Netherlands, I had an issue with my banking app. The entry ro.product.model need to be changed in Pixel.

After that change I had to register again. As a second/new phone.

When Android pay checks for an unlocked bootloader and/or product.model you will probably get issues.
[Android Software Development] guyb99:
I wonder if I should log out of pay before doing it?

To everyone - is Assistant worth it?
[Android Software Development] mcdull:
Hotword is known to work on official nexus rom and not cm14. Which rom you have?
[Android Software Development] Annunneo:
Tbh I don't really see the difference between it and Google now. For all this trouble its not worth it and then the whole thing is gone when you dirty flash an update...
[Android Software Development] Haizum74:
I have tried the zip method and had it working but was then messing about with languages in Assistant settings (added English US) and after that it did the retraining bug and wouldn't allow google detection or the OK google command without going back to training.

Bizarrely on one occasion it worked but for a brief second it sounded like there were two voices replying so I wonder if there is some conflict between google assistant and google now voice search that is preventing google assistant 'ok google' command to work?

I've tried the various temp fixes with no joy either.

---------- Post added at 02:22 PM ---------- Previous post was at 01:37 PM ----------

Ok, finally got "Say 'OK Google' at anytime" working with Assistant (so from any screen and locked aka the hotword).

This was from a freshly installed Rom N7.0 stock and rooted Nexus 6 with no build.prop edits and on Google Now.

*Some of these steps may not be required but just including all the things I did, just in case*

1) Go into Google Now settings, click on Voice and under Languages, make sure it is set to English (UK) only

2) Go to Offline Speech Recognition and update any languages that have an update request (for some reason I only had English US to update)

3) Go to Ok Google Detection and switch on and then train your voice.

4) Come back to the home screen and then use 'Ok Google' and ask it random questions. It doesn't matter what. I did it 4 times.

5) Now, using any Root Explorer, go into /system and then edit your build.prop

6) Change 'ro.product.model=*your model* to ro.product.model=Pixel XL

7) Scroll to the bottom of the list and right at the bottom add ro.opa.eligible_device=true

8) Save and come out and reboot your phone

9) Once rebooted, say the hotword 'Ok Google' and then ask it a question again.

10) Go back into Google Now settings and you should have Google Assistant showing at the top

11) Now come back out and try it again and it should now be working under Google Assistant.

I didn't have to wipe Google App data at all either. Bearing in mind this worked for me after 2 hours of trying all other suggestions and using the zip files and doing a fresh install of 7.0.
[Android Software Development] DT USC:
The problem I have having is the phone command integration. For instance I can say "call Bill smith" the assistant will read on the screen "call Bill smith" correctly, but then it will pop a web search for bill smith instead of actually calling. Anyone know how to fix this? it seems to be about 50/50 with my contacts if it will actually call them or do something else, even though it hears me correctly every time. I never had this problem with google now.

Everything else seems to be working well on nexus 5x with stock/rooted 7.0
[Android Software Development] Haizum74:
Just tried this and it didn't work for me but then I checked how I had entered the contact (it was 'Mum n Dad'), changed it to 'Mum and Dad' and it now works. Not had any other issues so might be the way the contact is spelt, possibly.
[Android Software Development] DT USC:
I thought about that, but when it reads it out it reads the exact way the contact does in my phone. for instance one of the ones that it is not working on is a contact I have saved as Gene Little Foundation. The assistant will read "call gene little foundation" then it says "here's a result from the web" and gives me a link. thanks for the suggestion though!
[Android Software Development] Haizum74:
Hmm, interesting. How you tried the text command?
[Android Software Development] DT USC:
hadn't thought about that. just tried the "text gene little foundation" and it worked perfectly fine. then tried "call gene little foundation" again, and it gave me the web link. it appears to just be with the call command.
[Android Software Development] Haizum74:
Damn, I've tried a few call to..... and its worked. How about 'phone.......'
[Android Software Development] ru11er:
Has anyone figured this out for the cm14 ROM? Thanks
[Android Software Development] tomic888:
A quick question:

Does changing the build.prop to Pixel XL (on my 6P) mean that

Google will think this phone is Pixel XL and basically the 6P will become

the same as Pixel XL in terms of software? (pixel launcher, assistant and same OTA updates)
[Android Software Development] Prey521:
No
[Android Software Development] bdwilk:
How about permissions? Does the Google app have permission to make phone calls?
[Android Software Development] Jagermonsta:
not working on Sony Z2 with AOSP ROM (http://xdaforums.com/xperia-z2/development/aosp-6-0-marshmallow-sony-xperia-z2-t3235951/)

tried manual method and flashable zip

D:
[Android Software Development] DT USC:
Yeah, it will make some phone calls.

---------- Post added at 01:33 AM ---------- Previous post was at 01:31 AM ----------

"phone" and the contacts name gives me a Google search too. Weird.
[Android Software Development] bdwilk:
Sorry I can't experiment. I do cm14.1 nightlies so having to enable GA everyday isn't worth it. I prefer GoT anyways.
[Android Software Development] NLBeev:
It's how the question 'does Google know' is interpreted. When no internet connection Assistant does not work.

When I change the value of ro.product.model from Pixel to Nexus 6 again Assistant keeps working until a it is called/awake a second time.

At least Google uses the data of Assistant and my phone. That's normal, but with Assistant there is much more data transferred to Google servers.
[Android Software Development] Dualz:
Yes, sorry I forgot to mention am still stock and rooted.

I did try that method when I was on DU test build and and didn't get same result.

Will be trying on another new DU test build tonight and will report back with results if it helps.
[Android Software Development] muhammadtalha-13:
I cannot find build.prop tweak lines in my build.prop file. I am using a Droid Turbo on cm14.1 based rom. Any suggestion?
[Android Software Development] JaylanPHNX:
The product model one is in there somewhere. The other one you have to add yourself.

From my Tab Pro 8.4
[Android Software Development] muhammadtalha-13:
If the model is not there, can I add that manually as well? Will it work?

Edit: I added both lines manually, cleared cache and data for Google app and its working now. Thank You.
[Android Software Development] DrawN777:
thanks! will try it today!
[Android Software Development] TheSt33v:
Confirmed working on Motorola Droid Turbo, model XT1254. Ok Google works to activate the assistant, but it does suffer from the always retrain voice issue. Not a big deal for me though.
[Android Software Development] suku_patel_22:
Call and contact name works for me

Sent from my Pixelified 5X
[Android Software Development] TheXenons:
It doesnt work on kenzo Android 7.1 rom

Google app 6.8.14.21 and build.prop tweaked
[Android Software Development] brandon79:
Everything working on galaxy s5 cm 14.1. only problem is it doesn't work when the screen is off .if the screen is off and charging it works fine not sure what the problem is there. Other than that works great no retraining voice recognition or anything any ideas why it won't work when my screen is off and not charging .
[Android Software Development] sirdir:
Sorry, I've read through about 50 pages, then I gave up. Is there a fix for the google voice assistant setup that keeps showing up every time you say 'ok google'?
[Android Software Development] brandon79:
Removed
[Android Software Development] tiger100:
Interesting. I have been racking my brain on how to get the microphone to show up
[Android Software Development] Bat-Maniac:
Edit: This method only seems to work with Nexus devices on stock/AOSP based roms.

For anyone who is facing problems with voice recognition after you have edited your build.prop and enabled Google Assistant -

I did it like that and it works flawlessly on the Nexus 6 running stock 7.0:

1. become a beta tester for the Google App

- dowload/update to latest beta of Google App

2. go to your build.prop in system partition

- rename product model to Pixel XL "ro.product.model= Pixel XL"

- add the line "ro.opa.eligible_device=true"

- save build.prop

3. clear the app data of the Google App

- go to settings > apps > google app > manage storage > clear all data

4. reboot your device (wait a few minutes after booting up)

- press and hold the home button - Google Assistant should come up

train voice screen comes up continuously

5. go to build.prop again

- change product model back to what it was before (your device)

- delete the added line "ro.opa.eligible_device=true"

- save and reboot

6. when it reboots you shuld have google now again

- go to settings of the Google App

- got to "Okay Google detection"

- tap always on

- retrain your voice model

7. go to build.prop once more

- rename product model to Pixel XL

- add "ro.opa.eligible_device=true"

- save and reboot

8. once it reboots, wait for abaout 5 minutes so build.prop changes can

be recognized

Done! It shuld now come up Google Assistant when you say "Okay Google" on every screen.
[Android Software Development] tiger100:
I followed your steps on my moto x 2014 running AOSP 7.0. I have the microphone in the pill now. It looks like it is launching Google now instead of Google assistant. When I hold down the home button it tries to read what is on my Google screen.
[Android Software Development] Bat-Maniac:
Delete Google App data in app info and try again
[Android Software Development] tiger100:
Tried your suggestion. Still no luck. I can either have Google now with OK Google voice commands (microphone showing in pill), or Google assistant holding down home button with no OK Google
[Android Software Development] Bryanx86:
Your method in OP confirmed working on nexus 9, thanks.
[Android Software Development] NLBeev:
Same on my Nexus 6 with Nougat 7.0 and a changed Google app 6.6.??.21.

But with a previous G. app version 6.3.36.21 the build.prop tweak, activates Assistant.

Same with version 6.5.35.21.

Probably the rom-google-app combination is critical.

---------- Post added at 08:06 AM ---------- Previous post was at 07:53 AM ----------

Don't know about a fix. But training the voice BEFORE reboot and activation of Assistant sometimes helps.

My 'method' was as follows:

- change build.prop;

- retrain voice in Google.app settings;

- reboot;

- start Google app saying 'OK Google' until data appears;

- long press home button.
[Android Software Development] Qaibo:
Deleted the assistant too
[Android Software Development] ben_pyett:
While the assistant is a great novel addition, removal of the hot word functionality is a step backwards, as far as I'm concerned.

Thanks for letting us play with it at least. Hopefully it'll soon be officially released for our devices and will be fully functional.