yashsingh1/xdaforums huggingface dataset:
[Android Software Development] hassanabid94:
Ok google detection fixed finally

I can confirm the "okay google" detection gets fixed, once you revert to google now and train the voice model and again revert to the google assistant.

Heres exactly what i did.

1. Enolled in the google app beta (you do this by going in to the playstore, browsing to the google app screen, scrolling down and select i'm in for beta esting)

2. Added the "ro.opa.eligible_device=true" line to the build.prop

-changed product model to Pixel XlL

3.cleared the app data of the google app. Go to settings >apps >google app > manage storage > clear all data and click ok.

4.rebooted and waited a few minutes.

Presssand hold the home button the google assistant comes up, but the train voice screen continiously comes up when you say "okay google" so..

5. Go the build.prop again

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

-renamed the product model to what ever it was before

Save and reboot.

6. Once it reboots you should have google now again, go to settings of the google app, go in to "okay google detection" tap always on and train your voice model.

7. Go in to build.prop again add "ro.opa.eligible_device=true" line

Change the product model to Pixel XL.

Save and reboot

DONE ! (Once you reboot, i would suggest waiting 5 minutes so itagain recognises the build prop changes) it should now trigger the assistant when you say okay google.

I am using nexus 6 with stock rom rooted btw.
[Android Software Development] Mic1604:
I have been able to notice something. If one enables airplane mode, the "OK Google" settings screen inside voice settings doesn't crash. Maybe something is happening server-side?
[Android Software Development] Rls4ever12:
[MENTION=4888215]hassanabid94[/MENTION] context working as in telling you what's on screen
[Android Software Development] Dr.DL:
Nexus 6P, android 7.0 , flashed the ZIPs

Google cards are no longer working, anyone facing same problem?
[Android Software Development] aouerfelli:
You're a genius. Yeah, that makes it a lot easier to figure out a solution now.
[Android Software Development] bobby janow:
I finally got it working, but I had to change the ro.product.model=Nexus 5X to Pixel and not just add it at the end of build.prop. Then I cleared the data after reboot and went to the Google app. It asks you a couple of questions but then scroll all the way down to the bottom of the news and there will be a click to start Assistant. If I just held the home button first Now On Tap opened. After I set up Assistant then holding the home button opened it correctly.

And as an FYI Android Pay still works rooted with suhide. But that's an entirely different animal. Point being it doesn't look like altering the build.prop will break it.
[Android Software Development] hassanabid94:
Yup,its working once you press and hold the home button and the assistant pops up,swipe up on the screen and the screen context information should come up.
[Android Software Development] :
It's working on Yureka Plus with AICP 7.0.0_r14.

????✌✌✌??
[Android Software Development] michel sedgh:
I can get the Assistant but can't get OK Google to work :(
[Android Software Development] RagedElimanator:
Oh I have confirmation of it working on Moto E 2nd Generation with 4G LTE.
[Android Software Development] bobby janow:
It asked you to train right? The 3 time thing. I think there is a way to retrain it if you need but I haven't gotten into it that far yet.

edit: Yeah, it's under settings Voice then retrain.
[Android Software Development] Pyrokineticdew:
It asked me to train, but it won't let me turn on the setting to use Ok Google everywhere. It just turns off immediately.
[Android Software Development] bobby janow:
Then I don't know, sorry. Someone will help out hang in there.
[Android Software Development] ZaKaRia OuH:
please,help i need to Revert back to stock build.prop

and since i just flashed the zips i don't know what to put here to get google now and retrain Google voice model then edit build.prop to avoid the hotword bug.
[Android Software Development] rchtk:
The prop zip created a build.prop backup file in the same directory as where you had downloaded the zip file.
[Android Software Development] ZaKaRia OuH:
here's a trick to avoid the app crashig turn on airplane mode and switch off wifi then go to google now settings/voice/''ok google decection then turn on cellular data or wifi( depends on what you use to access internet) and Boom ! it doesn't crash then

now turn on say '''ok google'' anytime and you can even click retrain voice model
[Android Software Development] ZaKaRia OuH:
just turn on airplane mode and switch off wifi if you are connected using wifi and give it a try ;)
[Android Software Development] lordsinasina:
Has anyone managed to use the Tasker method to bypass the training window ? It only works once for me when I activate the profile and then it stops working after that. The permissions and device administrator are all set for Tasker and auto input
[Android Software Development] ZaKaRia OuH:
sorry,but i can't find the ro.opa.eligible_device line in the build.prop backup ??

should i just delete it in build.prop since it was just added ? or should i modify it ?
[Android Software Development] Sreekantt:
any suggestion on how to activate ok google while device is sleeping ???

---------- Post added at 10:12 PM ---------- Previous post was at 10:10 PM ----------

tasker method is working for me .......airplane mode helps if u'r ok google word prediction doesn't recognise on any screen but if we train in airplane mode...it doesn't register in any way ....finaly u have to use tasker as of now ......
[Android Software Development] ZaKaRia OuH:
you can switch airplane mode off as soon as you enable say ''ok google'' anytime then click on retrain voice model and say '' ok google'' 3 times.....

it won't crash just give it a try.
[Android Software Development] amitks:
I tried disabling in build.prop; clearing cache and dalvik, restarting, training google now, and then reenabling with the full process, but it still crashes abruptly for me. Any suggestions?
[Android Software Development] Sreekantt:
it just wont register ...i mean it isn't saving my voice...now crashing isn't d main problem her...it is not saving d registered voice
[Android Software Development] webg3brasil:
Fake Nexus ROM Nougat for Nexus 4 works, Thanks. '-)
[Android Software Development] Ann.Vogelfang:
Nice! Your trick worked for me!
[Android Software Development] dazeone:
Google assistant working on Nexus 6p using Android N-IFY no build prop tweak. Just update Google app. OK Google works fine too. No issues

sent from my Modded Moto G3
[Android Software Development] lightmastertech:
Anyone got it working on a Nexus 6P running BenzoROM? After tutorial, it keeps switching back to Now on Tap.
[Android Software Development] Dr.DL:
How to restore google now on tab and delete the assitant?
[Android Software Development] ZaKaRia OuH:
go back to stock Build.prop

by renaming Pixel with: Nexus 5,

and delete the added line> ro.opa.eligible_device=true then reboot.
[Android Software Development] jasku123:
Flashable Zip build.prop edits not sticking

I have a Nexus 6P with an unlocked bootloader but no custom recovery. For some reason, TWRP does not stick after I flash it, regardless I use fastboot to flash the recovery image, boot into recovery to flash the two zip files and after I flash (while I'm still in recovery) I use adb pull to check that the build prop was edited and indeed it has however when it boots back to the system and I use adb pull to pull the build.prop file and check the contents of it, it shows that it has not been edited. Does anybody know why this occurs?

edit: also not rooted
[Android Software Development] lordsinasina:
How did you manage to make OK Google work ?
[Android Software Development] mitchdickson:
Because you aren't rooted.
[Android Software Development] chsaiteja98:
Guys i havegoogle voice not working since many days

Assistant working in headset only but in normal speaker mode it keeps on listening

For me it didnt even work in earlier versions

Google voice sear h doesnt work how to solve this
[Android Software Development] Akilesh Akil:
It should be some problem with your ROM.I switched to another ROM and flashed the 2 zip files and now it's working:o
[Android Software Development] chsaiteja98:
App Won't crash with this trick but recognized voice dosent save it asks again again to train voice

Any suggestions
[Android Software Development] RLBL:
Working on Nexus 6, rooted, stock 7.0 (needed to wipe Google App data after reboot). OK google asks for a retrain.

Method 1 used with edit of build.prop using FX file explorer (with root add-on).

Me very happy

Wife very jealous
[Android Software Development] Tech Knowns:
Not able to get OK Google to work correctly on my OnePlus One.

I put it on Airplane more.

Went to Google App/Voices

Turned on Airplane Mode

Turned on the OK Google detection

Clicked on the Retain Voice option.

I said OK Google 3 times and as soon as I said it the 3rd time it switched of the Airplane mode (Because if I don't do it, it crashes)

Then when I say OK Google it brings the "Teach Your Assistant to recognize your voice" page when I click 'Do it later' Assistant starts listening. So it activates by voice but I have to click "Do it Later" every time to make it work
[Android Software Development] friendofoblivious:
Actually I got it figured out. Reflashed and cleared the data for google. Works great now.
[Android Software Development] dark_knight_95:
What procedure did u follow I cannot get it to work on my g3 running crdroid rom:crying:

Edit got it to work the people who get now on tap even after assistant pops up try replacing the device name to Pixel not and not adding it to the bottom of the page .
[Android Software Development] bdwilk:
I read earlier to train your voice for Ok Google before you try to modify the build. Prop then after you modify don't wipe the data for the app. It will remember your voice then and not ask each time. It worked for some. Worth a shot.
[Android Software Development] BIade:
Cool, the Pixel Launcher is stylable through substratum :D
[Android Software Development] yyz71:
Hey bro you're Tasker profile is it working?
[Android Software Development] PabloCruzIII:
I have Google Assistant but I have to dismiss the GA setup in order to use it. Other than that it works. I've tried just about every method there is in this thread and the other Guide. Different ROMs, reboots and build prop edits, airplane tricks... everything. Nothing seems to work. On Nexus 6 using Nutty and PureNexus. I can't seem to get the toggle to stay on in Voice Detection. It just flips back to off every time.
[Android Software Development] Bat-Maniac:
Google Assistent working fine on my Nexus 6 with Stock NBD90Z!

Thank You very much for this!

Now I have Shamu Pixel XL :svetius::cool:
[Android Software Development] rpjwalter:
So has anyone else noticed that this removes HDR+ on the google camera on Nexus 6?
[Android Software Development] Bat-Maniac:
For me HDR+ is still working on Nexus 6 Stock NBD90Z
[Android Software Development] cris_webb:
Not for me.
[Android Software Development] rpjwalter:
Yeah, the option is gone for me.
[Android Software Development] vince.lupe:
ALRIGHT GUYS: A lot of information here. What's the best way that WORKS to get Google Assistant working on a Nexus 5X running Pure Nexus N?
[Android Software Development] Bat-Maniac:
Did You use flash the zip file or manually edited build.prop?
[Android Software Development] rpjwalter:
I manually edited.
[Android Software Development] brianelv:
Reading the OP.
[Android Software Development] vince.lupe:
Already did and nothing works.
[Android Software Development] mitchdickson:
User error. Are you rooted?
[Android Software Development] DigitalPrinceX:
Possible Hotword Detection Fix :

I can confirm this method is working on my Nexus 6 with Pure Nexus nougat ROM.

Special Note:

In your Settings>Google>Search & Now>Voice primary language must be English(UK)

This was mentioned by another person in this thread that English(US) language file has something missing related to hotword detection.

Tested this between English(US) and English(UK) and i can confirm hotword detection breaks the moment English(US) is set to primary. Reverting back to English(UK) and repeating the steps above had it working for me again.

Whether it would work with other languages is unknown to me.
[Android Software Development] vince.lupe:
Yes, I am rooted - but, even after editing build prop and then reseting data for Google App, it still loads Google on Tap instead :/
[Android Software Development] mitchdickson:
Did you restart immediately after editing the build.prop? That file is loaded when booting so changes are not effective until restart.

And if your system language is set to anything other than English, I would change that too.
[Android Software Development] vince.lupe:
Yes, I rebooted right away and did it a few times :/ Should I wait to press and hold the home button after reboot or should I do it right away after reboot?
[Android Software Development] mitchdickson:
Are the build.prop changes persisting after reboot?
[Android Software Development] Bat-Maniac:
Try to uninstall Google Camera or its Updates, Clean its Cache and App Data and Update again with PlayStore... Perhaps it will work?
[Android Software Development] Nimroko:
So the phone in France and the assistant in English?
[Android Software Development] instantdetox:
Works like a charm on my Oneplus 2!!! Theres only one issue. I can't get the 'ok google' hotword working. Tried the method mentioned above. But i cant get the google assistant without wiping data. I get the now on tap page.
[Android Software Development] hibby50:
Open the search app and go into the settings and see if the assistant options are available at the top. It should be toggled on ;)
[Android Software Development] :
You can give this method a shot.

PS: Change your language to English UK

Tapatalked from Portable Heater
[Android Software Development] slimshotty:
Another satisfied customer. Good job dev!
[Android Software Development] vince.lupe:
Alright, I'll give a try :D Thank you :D
[Android Software Development] TheKsprx:
Is there some way to activate the assistant without giving permission to record and store all my data: voice, SSN,IP, home address, my password's bank account, my dog's age, the amount of time my neighbour's great grand mother took to give birth to his father's mother, etc.??
[Android Software Development] Garner:
Where did you get the nav bar from?
[Android Software Development] Bat-Maniac:
It is a Substratum overlay

https://play.google.com/store/apps/details?id=com.varefaz.NNavbar
[Android Software Development] Garner:
Thank you!
[Android Software Development] gargyagotra:
Working for English India language on Nexus 5 Nougat build by [MENTION=6100326]itigr[/MENTION] Only issue found is Ok Google Hot word detection first time set up is coming up again and again
[Android Software Development] Bat-Maniac:
One question: will you get app updates for your device via Play Store when your device is now identified as a Pixel XL?
[Android Software Development] vivekbalan:
Yes. I am facing the same. Other than that, everything else is working fine.
[Android Software Development] Ilhamdi:
its work like a charm, i used methode 2, and i get google assistant on my redmi 2 1gb variant with ROM OFFICIAL 7.x REDMI 2 Tesla ROM 3.0 BETA, but i have a problem with hotword when i say ok google.
[Android Software Development] bdwilk:
I read earlier to train your voice for Ok Google before you try to modify the build.prop then after you modify don't wipe the data for the app. It will remember your voice then and not ask each time. It worked for some. Worth a shot.
[Android Software Development] crislsizl:
Not working on my s4 :(

Hello everyone i need help, please!

Ich got a s4 I9505 and Android 7.0 also from jdc and tried method 2. I did install the zip files in the right order and wiped the Google app data but nothing happened. In my system information my phone is also still a s4. Can someone please help me?
[Android Software Development] :
It's not working. I have tried that approach too.
[Android Software Development] Dr.DL:
Well, I thought that I should replace the build.prop with the backup one.

But the phone keep stucking at google logo.

As regarding your method, can I use a file explorer and open the build prop as a text and edit it? :confused:
[Android Software Development] cutmymeat:
I did it!

Edited: Dammit was just my Tasker working.
[Android Software Development] manpildo:
Yes.
[Android Software Development] Ntress:
"OK GOOGLE" is not working here - tried any method in this thread.

the thing is that the "ok google" voice settings is always disable itself immediately when i enable it, I also tried to go back to stock build.prop and reset the google app data but this is how it is, it let me to enable it for less than 1 second and immediately disable it..

what can i do ?
[Android Software Development] Dr.DL:
But why nexus 5?

mine is 6P ? :confused: :(
[Android Software Development] dankatz1:
So after playing a bit with the assistant and searching for some of my photos, it opened Google Photos and it now treat me as a Google Pixel, uploading all my photos at maximum quality saying there is no storage limitations, and not giving me an option to change that.

I really hope it really works that way and not going to fill up whatever left of my storage haha
[Android Software Development] manpildo:
If you want to return to stock build.prop then type whatever was there originally.
[Android Software Development] doki81:
make sure under setting - google - search & now - google assistant....check the language you have. make sure only 'English (us) or (uk) is selected. remove all other non supported language.
[Android Software Development] madvinegar:
You can add Samsung Galaxy S4 mini GT-I9195 in your first post list. :D

Also, I flashed pixel launcher and google wallpaper picker via twrp.
[Android Software Development] Dr.DL:
K, I did it, thanx for help

But being totally ruined. :crying: :crying: :crying:

Google now is not supported in my country :P *for unknown weird reasons* and I had to do maneuver upon fresh system installation.

Now it's all gone. :crying: :crying:
[Android Software Development] manpildo:
Love and hate relationship with Android eh? ;) Some things never change.
[Android Software Development] gargyagotra:
I tried but it's not working for me..strange thing is that on saying the hotword it is able to trigger the hotword training setup wizard but somehow the voice model is not persisting after several round of trainings
[Android Software Development] iamsiva9132:
Thanks for it ..

Redmi Note 3 (kenzo) CM 14

Also working .. Plz update ur Device list
[Android Software Development] bdwilk:
Just keep reading and trying new things if you really want it.
[Android Software Development] Bluffer94:
Works just fine on the OnePlus One and CM 14 Unofficial (NRD90M), except ok Google is asking for setup everytime.

Gesendet von meinem Pixel XL mit Tapatalk
[Android Software Development] Garner:
As the Google Assistant Non-Root/ No build prop editing thread below,

would it be possible to edit the apk to enable it to work like on Marshmallow?

http://xdaforums.com/android/software/guide-google-assistant-marshmallow-t3478450
[Android Software Development] teyodor:
Working on Android One 2nd Gen Running Stock Rooted Nougat. +1
[Android Software Development] Sreekantt:
Which phone is u'rs?... Its not enabled in mine.... Wt r d steps u followed....
[Android Software Development] dankatz1:
Nexus 6P.

Flashed the zip files.
[Android Software Development] ZaKaRia OuH:
that's a problem with the Hotword and retraining voice model.

i have the problem too,and can't solve it.

i even tried going back to stock build.prop,delete google app update,retrain voice command,edit build.prop again,update the google app without deleting it's data but to no avail

---------- Post added at 11:08 AM ---------- Previous post was at 10:59 AM ----------

Yeah exactly.
[Android Software Development] lordsinasina:
Are you language settings set on English UK specially for voice ? It seems English US doesn't work with this method
[Android Software Development] ZaKaRia OuH:
i have already changed language to Uk.

i even went back to stock build prop and set english Uk as primary language instead of eng Us.
[Android Software Development] netzotov:
Worked for me, thanks! Flashed zip first, but only phone name changed (nexus 6p/NBD90x). Manually changed build.prop and it worked (after changing system language from Dutch to English (US), haha)
[Android Software Development] rpjwalter:
​

This worked for me. Also have ok Google working from screen off on my Nexus 6.
[Android Software Development] gargyagotra:
Can you share the exact steps you followed along with the language-locale and ROM version you are using..
[Android Software Development] riaanck:
If I already have the latest beta goolge installed do I still have to flash the googleassistantvelvet.zip?

where do I place the tweaks.prop on my device?

Also in what order should I flash the zip files?

Really want to try this, but I'm a little confused.

I'm using Huawei P8 Lite with Sokkoban custom rooted rom B574 MM 6.0
[Android Software Development] Pavilo-Olson:
Manually editing the build.prop file, rebooting and then clearing the google app data is the best way.

If you want to try flashing tho here you go:

Flash the velvet zip, then flash the buildprop zip. Those two are all you need, the second zip installs the tweaks.prop for you.
[Android Software Development] bdwilk:
This is for Android N 7.0 or higher firmware. It doesn't work on MM 6.0
[Android Software Development] dazeone:
With Xposed and N-ify module it works without any editing on 6.0.1
[Android Software Development] Onknight:
It Crashed on my Nexus 6 But Got it working

now every time I say OK Google it takes me back to voice Training

I do it 4 times now I just skip it

But it's getting annoying
[Android Software Development] bdwilk:
I'm just quoting the OP. Maybe you should tell that dude that. He's trying to do it the OP way.
[Android Software Development] dazeone:
If he's on 7.0 there is no Xposed working yet.
[Android Software Development] bdwilk:
He said he's on MM 6.0.
[Android Software Development] dazeone:
[MENTION=3921419]riaanck[/MENTION] if on mm you'll need Xposed framework and N-ify module
[Android Software Development] riaanck:
Thanks for the response to all, so xsposed N-ify are my only options then?
[Android Software Development] dazeone:
If on 6.x.x. yes.
[Android Software Development] bdwilk:
That's what [MENTION=4620656]dazeone[/MENTION] says. I'm currently on RR MM and I have xposed. I'll check it out and see if it works for me too.
[Android Software Development] dazeone:
[MENTION=7478074]Bdwilk[/MENTION] and@riaanck if it works for you post back.
[Android Software Development] bdwilk:
I just tried it. N-ify is active and works. But I still have Google on tap. No assistant. Did you do anything other than just activate the module? I'm on 6.5.35.21 Google app.
[Android Software Development] dazeone:
Get latest Google app
[Android Software Development] saisid16:
One plus 3 - cm 14 unofficial.

Flashed the velvet.zip and the build prop zip files. Assistant popped up when internet was off, asked me to turn on internet. After I did, it went back to now on tap. Cleared data and tried again without internet. Same thing happened.

In short, assistant is disabled when internet is turned on.

Any help guys?
[Android Software Development] ghostinrags:
All good.

Nexus 6, stock N, root, unlocked, custom recovery. Flashed the zips, cleared cache and Dalvik, modified my build.prop, reboot and it worked off the bat. Camera is fine. No issues at all.
[Android Software Development] bdwilk:
Flashed the velvet. Now on 6.6.14.21.

Still nothing. Anything else? BTW I have the assistant working on cm14. I'm just experimenting for anyone else that doesn't have N available to them.
[Android Software Development] ghostinrags:
Did you modify your build.prop? I had to manually do mine.