yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Apad121:
GUIDE: [UPDATED NOVEMBER, WITH [MENTION=4100203]masterchop[/MENTION] APP "OK GOOGLE" AND GOOGLE ASSISTANT FULLY WORKING ON ANDROID 7.x]

Hi everyone

Just wanted to say that I got Google Assistant working on this ROM and it seems fast to work really well! :)

BTW the bug above happens to all devices that aren't pixel or nexus.

THE BUG WITH OK GOOGLE IS WORKING NOW..... SEE BELOW IN STEP 9:

GUIDE ---- I had to find lots of articles and looked through many guides because CM14.1 was slightly different to CM14 and android nougat. Because of how we flashed different Gapps it made the installation quite difficult. However after a bit of problem solving and determination I succeeded in getting Google Assistant on this great ROM.

1 Go to build.prop (I just used BuildProp Editor from the Play store, once in the app I pressed the edit button on the top right)

2 I changed "ro.product.name=cm_jflte" to "ro.product.name=Pixel XL" (I am not convinced this is neccassary but I did it anyway and it works)

3 Add "ro.product.model=Pixel XL" at the bottom (the ROM didn't have the ro.product.model bit that most phones seem to have...)

4 Add ro.opa.eligible_device=true after the above (Add this underneath the 3rd step)

5 Save the build prop then Reboot phone (Almost there)

6 Clear Google app data (This is to help ensure the process works)

7 Launch Google assistant as if you would launch now on tap so go to settings>functions> select home button >long press >select search assistant (OR SET IT TO ANY OTHER BUTTON YOU WANT)

8 Go to Google app settings and check you have enabled Google assistant

9Install the application and setup (credit to [MENTION=4100203]masterchop[/MENTION] for making this app :D) ChopAssistant https://play.google.com/store/apps/details?id=choplabalagun.blogspot.com.chopassistant&hl=en

10 FINISHED! :laugh: (Please read the rest below)

IF IT STILL DOESN'T WORK DO NOT WORRY ---- IF YOU FLASHED A SMALL GAPPS SUCH AS PICO GAPPS THEN THERE IS STILL 1 MORE STEP!!!

11 Now if you had to install the google app when you first setup the phone, then you need to move the file "com.google.android.googlequicksearchbox-1" from data/app to system/priv-app

Google Assistant for CM14.1, this guide covers most errors and problems you will face for installing it on any device including CM14 and Android 7.x

Reboot and NOW GOOGLE ASSISTANT should work with "OK Google" working too!

PLEASE LEAVE A LIKE IF THIS HELPED! :laugh:

[IMG="Google Assistant on CM14.1"]http://i.imgur.com/trMSqcg.png[/IMG]
[Android Software Development] chsaiteja98:
Did as you said but still tasker does nothing it says no profiles active

Need help see were i was wrong
[Android Software Development] dhruvpatel_9880:
Google assistant is working but unlimited original backup is not working in Google photos . Google photos is not recognizing as a Pixel device . Any suggestions or help . I want unlimited original backup please help
[Android Software Development] boswelja:
Go buy a pixel phone if you want unlimited original quality backup.. hacks from here, or anywhere probably won't get you that
[Android Software Development] aslam_:
well, i got ;)
[Android Software Development] boswelja:
..

I have no comment
[Android Software Development] Apad121:
It probably is possible if you replace most things in the build prop with the same things that the Pixel has in the build prop.

Similar to my last post you can just replace everything the Pixel has. You just need to find the build prop of the pixel somewhere.

Please like if this helped:laugh:
[Android Software Development] Apad121:
Unfortunately after this I still get the screen that tells me to train Google assistant for OK Google recognition...

Any other suggestions, thanks:)
[Android Software Development] Floxen:
I want the same thing... :)
[Android Software Development] mcdull:
Not for anyone. You may say anyone using nexus with aosp instead. From what I learnt in this thread, none with cm14 got ok google to work properly.
[Android Software Development] Polycarbonate:
I'm trying to move Google App to system but when I reboot afterwards Google app disappears, I'm on Santosh M latest rom, 200 Mb free in system (root) memory, can anybody help me with this?
[Android Software Development] Akilesh Akil:
OnePlus 2 on CM 14
[Android Software Development] swat4samp:
Dude, thanks a ton :victory: Works perfect. I flashed this zip, wiped cache/dalvik, rebooted, changed build.prop manually (little skeptical to flash build.prop zip lol), cleared google app data, gave all permissions to it,rebooted and voila. :highfive:

I'm on ABCrom nexus 5 btw.
[Android Software Development] gerciolisz:
It said there is no updater script in metainf XD I know about "a" folder and i had looked at it but I thought it would be easier to manually change those 2 lines from tweak.prop :)
[Android Software Development] esincho:
The zips didn't work for me. Nexus 6p. The Flash was successful
[Android Software Development] gerciolisz:
Does OK Google works for you , also are OK Google detection settings works for you?
[Android Software Development] bananameat:
I was one of the unlucky ones to have nothing work for hours with no Google assistant to show for it, but this worked with okay Google working. Though I did it a little differently:

I had the Google Nexus 5X with the build prop file only edited with the addition of the opa line.

I was fiddling with the phone deleting Google app data and rebooting and such all day when I finally gave up and decided to edit my model name to Pixel XL.

Almost immediately after changing my model name after that I saw your comment and did the following->

reboot into recovery wipe cache/dal

reboot

delete Google app data, uninstall Google app, give full permissions to old Google app, set up okay Google commands

reboot into recovery wipe cache/dal

reboot

update Google app

reboot into recovery wipe cache/dal (maybe not necessary)

reboot

go to Google app and hold down home screen button, Google assistant shows up (holding down the home screen button is all you should have to do to make it show in my experience, if assistant doesn't it didn't work)

that's what worked for me anyway. I feel like it would've worked if I did it exactly like you did as well. I didn't do anything fancy like reverting to build prop stock.

One key take away with this anyway is that for whatever reason in my case I absolutely could not get Google assistant to show up without also editing the model name to Pixel XL.
[Android Software Development] StrizzMatik:
Not working for me. Using the OP3 with CM14
[Android Software Development] rydako:
Is it possible to open now on tap once assistant is enabled? Seems to replace now on tap, but they both have different functionality.
[Android Software Development] dan_delaney:
FC for me as well, probably something tied into Android 7.1 that we just don't have yet.
[Android Software Development] edwaine:
Same thing happened to my phone
[Android Software Development] swat4samp:
It works as now on tap too, just scroll down and u can see whatever information it finds on default screen.
[Android Software Development] rydako:
Oh Brilliant! Didn't notice that. Thanks!
[Android Software Development] islandfever2009:
I've done some minor build.prop editing before, but I guess I'm still a noon. Would anyone mind telling me his to get this working on a Nexus 6 rooted, running NDBZ09? Thanks!
[Android Software Development] gerciolisz:
There is something like OK Google enrollment in system apps maybe it should make a difference if we get it from pixel system dump?
[Android Software Development] Yasharkhan:
Can you share that apk?
[Android Software Development] Guiper:
How did you guys got the new home buttons? I still have the old ones... Also now on tap doesn't work for me, always show nothing on screen. Tried it on AMD stock and nothing.

Btw, you definitely need to add the line and change model to Pixel. Only adding the line didn't manage to get Google Assistant enabled. Changing back the model to Nexus 6P disables Assistant in a matter of minutes.
[Android Software Development] Hussainally:
Dude u are a life saver ..I followed your step to the letter and it worked ..super happy .

Thanks brah
[Android Software Development] rydako:
I'd suggest using the method [MENTION=6105718]FaserF[/MENTION] created below. After flashing go into settings and clear all data for 'google app' then hold down home button to activate Google assistant. If you have any issues - swipe left in the google launcher to get to google now, left again (From the very edge) to open the menu, tap settings and see if google assistant is Listed at top.

If your phone wont boot after flashing the files, wipe cache in your recovery and reboot.
[Android Software Development] edwaine:
Sorry I'm using a custom rom on Nexus 5 and change the stock navbar buttons on substratum engine app.
[Android Software Development] htb2050:
Is there a way to chat with it like allo or is it voice only?
[Android Software Development] JaylanPHNX:
You could switch to a gapps package that includes Google app.
[Android Software Development] Polycarbonate:
Thanks for the quick reply, just flashed nano, in addition to not installing Google app, it uninstalled most of my system apps (Pixel launcher wallpaper ect), although in the Priv-app folder on system, velvet apk is indeed there, just not anywhere as installed.
[Android Software Development] shahid221:
Step by Step Guide to get Google Assistant

This is very simple 1 minute video explains the steps to get google assisant within a minute. Hope it helps. :D:D

[YOUTUBE]sr4DDFu2BKw[/YOUTUBE]
[Android Software Development] nicorvienne:
deleted - wrong thread
[Android Software Development] BlackHoleOS Dev:
Will this work on moto e 2015 on cm 14 7.1
[Android Software Development] tiger100:
I was able to get this to work on my moto x 2014. If you follow the steps it should work. The tricky part is using Autoinput.
[Android Software Development] NLBeev:
Train the voice in the settings of Google App BEFORE activating Assistant.

After that start Google App press the microphone button and repeat 'OK Google' until data appears on the screen.
[Android Software Development] Apad121:
Unfortunately I still cannot get Google assistant to work with OK Google, even if I now clear the data and train the voice data.

Additionally before I changed the Build prop I trained the voice model. After changing the Build prop and waiting a bit and then saying ok Google, the annoying page came up telling me to retrain my voice model...

Btw I am not on a nexus device I am on a S4 running CM14.1 Android 7.1.

I think it is not possible to train the voice model on Google assistant successfully unless you are on a nexus.
[Android Software Development] NLBeev:
I read some posts..... CM 14 does not like Google Assistant.
[Android Software Development] Apad121:
Yes I completely agree, CM14.1 is even more difficult to get it on working on than CM14 for some reason....

But I did manage to install it using the guide I made here: http://xdaforums.com/showpost.php?p=69479381&postcount=376

Using my guide it should install Google Assistant on any Android 7.x device :D

---------- Post added at 22:15 ---------- Previous post was at 22:14 ----------

Hi there

Try this guide that I created http://xdaforums.com/showpost.php?p=69479381&postcount=376

Please leave a like if this helped :D
[Android Software Development] Polycarbonate:
Thanks friend, I already fixed it on my own, all I needed to do was move to system/apps, then reboot, then install Google again, then reboot again, my problem was that Google app didn't show up after placing on /system then rebooting, but got it to work, thanks for the reply, mighty generous!
[Android Software Development] Apad121:
Ok good to see it worked for you.

I still have problems with it showing a screen along for us to train ok Google voice model.
[Android Software Development] Polycarbonate:
You and me both, recently on the latest Google beta app the "OK Google Detection" menu didn't crash.
[Android Software Development] Apad121:
You're on the latest Google beta? How did you get access to the beta version of the app?

Yeah I get this menu when I say ok Google:confused:
[Android Software Development] Polycarbonate:
My ok google isn't working, just the voice is saved, still asking to retrain though, but it's a start, I'm on Nexus 5 AOSP BTW, here's the link to beta test https://play.google.com/apps/testing/com.google.android.googlequicksearchbox

Also you can just go to apkmirror and download the latest beta.
[Android Software Development] drozek:
How do I get the google assistant to launch from lock screen. There is the phone app and camera app and in the settings I can change the different icons but cannot find anything with the google assistant. Thank you
[Android Software Development] BlackHoleOS Dev:
Can this work on moto e 2015 on cm 14.1
[Android Software Development] Apad121:
Hi there,

Because you are on CM14.1 like myself use this guide I created instead.

http://xdaforums.com/showpost.php?p=69479381&postcount=376

Please leave a like if this helped :D
[Android Software Development] Polycarbonate:
If you are rooted, download this: https://play.google.com/store/apps/details?id=de.j4velin.systemappmover

And move the Google App to /system.
[Android Software Development] drozek:
The google app is already in /system and when I select the google app it goes back to the google app that looks like the different cards not google assistant
[Android Software Development] Polycarbonate:
What's your device? I'm on a Nexus 5, what do you mean you select the google app? I'm sorry I didn't quite understand what you tried to express.
[Android Software Development] mubaidr:
Confirmed working on Motorolla Droid turbo/Moto Maxx (Just needed to change build.prop and was able to install pixel launcher from playstore)
[Android Software Development] drozek:
When I try to change my lock screen icon to the google app, then I turn off my screen I can swipe from the bottom left up to open the google app. Thats what I want to open the google assistant. I have a nexus 6
[Android Software Development] Polycarbonate:
Ah now I understand, I'm sorry, I think you need to have the "Detection on any screen on."
[Android Software Development] creepty:
can someone help me, i didn't backup my build prop on my nexus 6P 7.1.1 (beta) and i want to revert and come back to google now instead of google assistant i don't know how to edit now..
[Android Software Development] NLBeev:
There are 2 entries in build.prop that activates Assistant.

ro.product.model=Pixel or Pixel XL

ro.opa.eligible_device=true.

To deactivate Assistant: Change 'true' into 'false'.

Or delete the whole line ro.opa....etc.

Reboot.
[Android Software Development] bdwilk:
It's supposed to be with saying "OK google" not a button press.
[Android Software Development] drozek:
There has to be a way to activate it.
[Android Software Development] bdwilk:
the option isn't there in the Google app>settings>voice>OK google detection?
[Android Software Development] shahid221:
If you still dont know?

This video teaches you in a minute. How to get it.

[YOUTUBE]sr4DDFu2BKw[/YOUTUBE]
[Android Software Development] Link_of_Hyrule:
The voice training settings didn't crash any more unless I try to delete the trained voice data but is there a way to get the training to stick yet?
[Android Software Development] mumboender:
Works on my OnePlus 2 as well. I do recommend following the directions off of a different device or printing them out as Tasker did not behave well when I tried to multitask on the same device following the directions.
[Android Software Development] drozek:
the option is there but when I train it the slider doesn't change.

What I am trying to figure out what is the application or service that gets "activated" or "turned on" in the screen shot.
[Android Software Development] bdwilk:
Assistant is part of the Google application. There's problems with it retaining the voice setup though.
[Android Software Development] drozek:
Totally understand that but when I select google app under lock screen there is a bunch of items that I am sure can launch that assistant
[Android Software Development] bdwilk:
Try each one.
[Android Software Development] RaceFaceXC:
I have edited my build.prop successfully, trying methods of changing the ro.product.model=Pixel XL (and later also changing the ro.product.name=Pixel XL) in addition to adding the ro.opa.eligible_device=true and then a restart.

I had to force stop Google App and clear cache and launcher data. I did not have to clear the search/browsing/etc history data. Assistant appears to be working now. I report any issues I have as I find them.

6P, stock OTA beta rom, NPF10C

No issues otherwise, so far.
[Android Software Development] jmsdvs:
There is an app in the play store called Get Assistant. Worked for me. I have developer preview 7.1.1 rooted
[Android Software Development] Ultimategeppie:
Did (or do) you have any trouble with using the hotword "OK, Google" in combination with Assistant?

Kinds regards,

UltimateGepie
[Android Software Development] Shinzaemon:
When i say google now, i see the voice recognize screen every time. Even when i did it. But when i press long to home button assistant pops up and there is no voice recognizing. Is someone know how to fix it?
[Android Software Development] HaoZeke:
Hey, I can confirm this works on the Xperia Z5 dual (E6683) on aosp 7 with opengapps :) Thanks!
[Android Software Development] jmsdvs:
No, I have not had any trouble with voice or having to trouble shoot it. Worked from the get go. I did have to delete cache and data from Google app twice to get it to work. Then rebooted.
[Android Software Development] Apad121:
I think that only Nexus and pixel phones have OK google detection working.

What phone do you have assistant on?
[Android Software Development] jmsdvs:
I believe you may be correct. I'm sorry, I'm on a Nexus 6p
[Android Software Development] Apad121:
No need to be sorry to anyone, we are all members of the same community. :laugh:

Also yeah, I haven't heard anyone successfully use of Google with Google assistant on a device that isn't a pixel or a nexus.

I am on a Galaxy s4, so I hope one day soon we can figure out how to get Google assistant to pick up OK google properly.

---------- Post added at 07:03 PM ---------- Previous post was at 07:00 PM ----------

That app only works if you are on official firmware so Nexus or if you flashed a large Gaps file.

If you are not on a large gaps file then you will need to follow my guide which will work on any android 7.x ROM: http://xdaforums.com/showpost.php?p...l

Please leave a like of this Helped :laugh:
[Android Software Development] shawndak:
Same here. Wants to retrain my voice everytime. On 7.1 Nougat. Hope someone finds a fix!
[Android Software Development] Apad121:
You're welcome.

If I was on a nexus device that still gets updates quickly, then I wouldn't go into Custom ROMs as stock android is still inevitably more stable. Also xposed is overkill with customisation and just general tweaks are sufficient for most android tinkerers.

:laugh:
[Android Software Development] Sankara88:
I can also confirm this works on a nexus 6P with beta 7.1.1. Follow the guide, install the 2 zips in the right order, wipe data then wipe google app cache and it should pop up. Having fun with it now :)

Also it is funny to see the device as 'Huawei Pixel XL' too lol.
[Android Software Development] mochamoo:
I have had this working on my 6p for a couple of weeks or so now. I have noticed a strange thing with my battery in that when it reaches 15% life suddenly drops to near zero and it shuts off. I don't know if this is due to the 7.1.1 preview or possibly the build.prop edits. If it thinks its a pixel does it calculate/use battery differently since running 6p kernel? Anyone else seeing anything like this on their 6p?
[Android Software Development] aliusman999:
It works but i dont see the following options in SETTINGS

NEWS

MY DAY

SHOPPING LIST
[Android Software Development] Da_Gamer_pk:
I have tried every way listed on this thread to fix 'ok google' detection but hasn't succeeded by far.I have tried following:-

1. method using google beta app as mentioned in this thread.

2. clearing cache/dalvik after installing google velvet app then doing voice registration again for assistant.

3. Clearing google app data,editing build.prop,reboot and then doing voice registration for google now on tap. then i again edited build.prop,set eligibility "true" got assistant working again but it took me again to voice registration for assistant on using hotword. finished it again but everytime i use the hotword same assistant setup screen keeps poping up.

Currently I am on cm 14.1 unofficial tomato build for YU Yureka (android os version 7.1),using google beta app 6.8.19.21.arm64.

what else can i do to make hotword detection work.
[Android Software Development] NLBeev:
There's is still a trial available; BEFORE starting Assistant, start Google App and keep saying 'OK Google' until data appears. Then long press home button.

In this thread I've read several times that cm 14.1 doesn't like Assistant.

At last something OT. We all keep saying 'OK Google' but that's not true. [emoji1]
[Android Software Development] Da_Gamer_pk:
Is there a Tasker profile available to somehow fix this hotword detection. I couldn't find one yet. would be helpful just to bypass that same screen popping up every time hotword is said. :confused:

---------- Post added at 10:51 AM ---------- Previous post was at 10:45 AM ----------

Tried this one and it's still the same...too much stubborn I guess. :D
[Android Software Development] CodeVanya:
Tried this but the bug is still there. :(
[Android Software Development] shahid221:
If you still don't know how to get Google Assistant

Then Just Follow this video. Just trying to help who dont know how to get it.

[YOUTUBE]sr4DDFu2BKw[/YOUTUBE]
[Android Software Development] NLBeev:
Nice video, but a remark. Most of us here are rooted and know how to activate Assistant.

The main issue is the voice training 'OK Google'.

The trained voice isn't remembered or saved.

Annoying 'get started screen' keeps popping up.
[Android Software Development] tejasrao1996:
Will changing the build.prop to activate assistant effect the smooth functionality of the ROM? And is it necessary that the ROM has to be close to stock or AOSP? Because phone started hanging after activation of assistant.

Thank you.
[Android Software Development] Da_Gamer_pk:
As far as I know there has been no problem reported regarding effect on the smooth functionality of the ROM after installing activating the assistant using build.prop. Also assistant is almost working with every ROM now using the velvet app with Build.prop changes. problem might be with your Google app if phone is hanging.Mention which version of Google app u are using. Only known problem is of hotword detection with most of the ROM's. Everything else is working fine.
[Android Software Development] NLBeev:
A bottleneck could be the quality/speed of your internet connection.
[Android Software Development] shahid221:
we all need to wait for the update

With the next update everything will get solved.
[Android Software Development] Ken C:
Curious, on my device "moto X pure" running aicp 7.1 and can't find ro.product.model in my build prop. Is it under something else? I'm thinking I know what it is but am looking for confirmation
[Android Software Development] tejasrao1996:
I am using google app version 6.8.17.21 (beta)

And in my build.prop there was no "to.product.model" so I added it. Could it be that?
[Android Software Development] Da_Gamer_pk:
Try Google velvet app and see if the problem persists.link is in the beginning of the thread. U can remove ro.product.model from build.prop.Its not necessary for assistant. report back with the results

---------- Post added at 07:34 PM ---------- Previous post was at 07:30 PM ----------

No need to add it.only 'ro.opa.eligible_device=true' will be enough. worked for me. u can add 'ro.product. model" manually if it's not already there.. just in case..
[Android Software Development] rayzor666:
I have the same thing.... Anyone know why