yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Gu$houn*:
For everyone having problem with their country code, you could inspire here ... [•]

It's com.google.android.quicksearchbox

P.
[Android Software Development] kakofonija:
ok, I don't have "micro_hotword.data,OK Google,en-CA,en-US/" line in *.bin also I don't have hotword option in google now settings at all, i am running evervolv's kitkat 4.4.2 on htc desire with functional google now launcher with google search 3.2.17.., there is "config" folder inside */srec, so it looks like "*/srec/config/en.us"... I will try your suggestion but i need to know where exactly to put "micro_hotword.data,OK Google,en-CA,en-US/" line inside that *.bin file?

please see screenshots

TIA
[Android Software Development] net4u:
Hi,

Does this also address the infamous crash of google search on gel launch?

thank you
[Android Software Development] osama-selo:
Thanks for this method... :victory:

but... can u please share with us the wallpaper shown on the screenshots? :rolleyes:
[Android Software Development] Andrev01:
Is this fix easy to disable, I mean - to revert it? :) And will it be reseted when flashing new version of rom?
[Android Software Development] memnoc:
I posted a screenshot (dropbox folder in op) of my settings.bin, try to copy all the lines, but it looks like you're missing the whole voice recognition ..weird.. Can you tell me the name of the apk in data/app and system/app?

Lines are:

micro_hotword_locale_resourceszen-US,en-US/micro_hotword.data,Ok Google,en-GB,en-GB/micro_hotword.data,Ok Google,it-IT,en-US/micro_hotword.data,Ok Google

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] memnoc:
Not sure what crash are you talking about.. Try and let us know, I don't have any crash anyway

In the dropbox folder in op :)

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] lordriguez:
Yes i known but i have only a ''files'' folder in that folder
[Android Software Development] raul338:
It works on cm11! But using GEL, not with launcher3 form cm11, but it works :P

Note, i have to set permissions and restart twice... is that normal?
[Android Software Development] net4u:
Hi,

is about an crash that afects some devices when try to launch GEL. It regulary crash google search, so the GEL is unusable on this devices. In my case is LG L9 but I know that at least on the first days of GEL being available are also another devices afected.
[Android Software Development] kakofonija:
thank you, you mean the name of google search apks or all apks in those folders?

sorry for bad english

btw. voice recognition working ok
[Android Software Development] ogbrandon:
Great hack, good job finding this!

Working fine on my Nexus 4 with German language (de-DE).

Are we able to change the phrase by editing "Ok Google" in the file? :o
[Android Software Development] Dovidhalevi:
How to Enable Off-line on Armv6 Devices

I have seen it work. Actually took the voice input and produced results! Just ONE time. Usually Google Search will simply FC if I click the mic icon but I go there in some other way. How? Anyone's guess.

/system/usr/srec is on ROMs. No room for it on my old phone so I symlink it to sdext. However, since this relates to user-apps, why would/should it be on /system. I usually keep it symlinked to the on-line version but found that this was not necessary. On-line voice from older Voice Search and programs using this, all installed as user-apps from Play, seemed to look elsewhere.

I also have the offline version available. But the language files get downloaded to a /data/data.... location (also have no room so symlinked on I side-loaded) to sdext (Google Search will not download them on my device).

I do not care about "OK Google." Would like to see either offline work on Google Search use the online recognition.

A thread reports getting my device to download the language file using an ICS hacked velvet version and getting offline input to dictation, not using Google Search.

I have latest Google Search side-loaded as user app, GEL as well, works 100%, mostly stable but no offline voice recognition.
[Android Software Development] rambo69:
It worked for me htc one 4.4.2 but the only thing it does is searching on the Internet it doesn't open apps or call if command is given

Verstuurd vanaf mijn HTC One met Tapatalk
[Android Software Development] memnoc:
I think you need chrome for that, also try to open Gnow menu and see if in search option 'apps' is ticked

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] memnoc:
Google of course.. It could basically have 3 names : velvet or GoogleNow in system /app or priv-app, in data/data it's always com.android.google.quicksearchbox

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] memnoc:
To revert delete the language folder and settings.bin reboot and you're fine

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] memnoc:
You're possibly right ..so you do have online dictation working right?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] ogbrandon:
The .bin files are still chinese on my other N4. Even after running Google Now. Any idea?

I'm using the text editor from ES.

Edit: Deleting the .bin files, then launching Google Now with a re-login fixed it.

On another note, it must be possible to mod the .apk to enable this.
[Android Software Development] jordirpz:
When i reboot my phone, the startupsettings.bin , is the original another time.(i changed the line, save changes and give all permissions in bin file) (appears new bin.bk file)what i make wrong?

vía n7(2) r-paco
[Android Software Development] d2616ae26016:
It just works fine. By the way...

1) You don't need to set full permissions to the files (it might be dangerous): the language folder (e.g. it-IT) just needs rwx r-x r-x, while StartupSettings.bin just needs rw- --- --- (which is already set by default).

2) Some features of Google Now just don't work in other languages. For example, if you say "What time is it in California" in English Google will automatically give you the answer:

But if you say "Che ore sono in California" in Italian Google will just search the net:
[Android Software Development] memnoc:
full permission are not dangerous, I tested it, it's more like a safe way for me to see if people doing it right, however you have a point, the only permission needed are r/w, but as I said it's not dangerous in this case.

Guide has been updated, new method and simplified old one..new comers should be follow the first or the second according to their needs/capabilities. Thanks
[Android Software Development] memnoc:
Try again or see the op for the second method

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] Andrev01:
You mean the language folder I'll create, yes? And everything will be ok then? :)
[Android Software Development] Aashuk Mehta:
Does this work on any other launcher apart from gel?

Book op states any launcher
[Android Software Development] Belgadon:
Awesome. Works perfectly.

Using it on my Nexus 5 (Stock) with de-DE (german).

Thanks for bringing it up!
[Android Software Development] jonata:
so the esadecimal to change country it's ok ...

as i Posted few pages back

give me a thank you ?

;)
[Android Software Development] memnoc:
can you link the post please?
[Android Software Development] punkmexic:
For Spanish Mexican prefix

For Mexican Spanish would it be es-mx

Or hola
[Android Software Development] bob8x:
Yep!

Just tested offline and online dictation: both of them are working!
[Android Software Development] lukes91:
hi! many thanks for the guide :good: i tested it right now on HTC One X with ViperX 4.0.7 (sense5 + android 4.2.2) and works fawlessly when i'm in google now screen or after clicking on search bar widget... doesn't work in sense home, but i'm not sure if it's expected with android 4.2.2 :)
[Android Software Development] fraydz:
Followed everything, couldn't make it work on my GT-i9305 running CM11. I'll give another try after work. Thanks anyway
[Android Software Development] coldbeermt:
Hex Code for English, Canada ("en-CA") is: 65 6E 2D 43 41

Hex Code for Spanish, Spain ("es-ES") is: 65 73 2D 45 53

Hex Code for Italian, Italy("it-IT") is: 69 74 2D 49 54
[Android Software Development] francescobabbaro:
Good guide, but when I open the file .bin I see only a Chinese text, I use GEL launcher and I have launched gnow at least once. I'm using CyanogenMod 11, can anyone help me? Thanks in advance.

Sorry for my bad English.
[Android Software Development] Flintberg:
Works for Polish, Nexus 7 2012, GEL. Doesn't work on stock launcher and Action Launcher.
[Android Software Development] PAulyhoffman:
confusing OP

The way I am reading this is that I can make google now search from any browser using "OK google" in any language with any launcher. I am using Nova and I know that the widget doesn't work. what about the persistent search bar? normally that doesn't work either, but the way I am reading this, with the hack, it will work.?

Or does this ONLY allow GNow to search using "OK google" in a new language, using whatever language you choose for the line you are editing.

:confused:
[Android Software Development] furb3t:
On my nexus (maguro) with CM11 I have no found dir with files to modify :(
[Android Software Development] memnoc:
can you please give me an example command or situation where I can use offline dictation? still not working here, maybe I'm doing it wrong lol

thanks
[Android Software Development] bob8x:
For offline dictation I'm intending in hangouts or whatsapp, as Google Now seems to not work without internet...

obiviously you need to have italian data downloaded ( xD)

P.S: you have a hangout/chat pending...
[Android Software Development] memnoc:
honestly I don't know really what you mean with "any browser"...this guide is meant to be working on any launcher that supports Gnow, Nova is partialy supporting it, Sense is fully, Gel is fully, and so on...if you try please let us know, and thanks in advance:good:

My Gnexus is the same..one thing I noticed..you have what in my system/priv-app is called velvet.apk in your system/app is called GoogleNow.apk..am I right? This is odd, for so many reasons, most of them I think related to this difference..are you using banks gapps maybe? If so, try to flash PA gapps, they have the velvet.apk inside..it's the only reason I could think off
[Android Software Development] memnoc:
all right, I got it from the beggining, I was just trying to be sure, thanks:good:
[Android Software Development] thenetvines:
Won't any minor update to Google Search break this hack immediately? It happened before to me with another method on an older version of Google Search.

Also, I've seen people in other language forums (I speak Spanish, and English, and I think they were Russian, and Italian forums) creating flashable zips to be able to say other hotwords, like "OK Jarvis", instead of "OK Google".

Do you know anything about that?
[Android Software Development] coldbeermt:
More attempts I do, more failures I find.

Google Nexus 4, KitKat 4.4.2 stock and rooted. Google Search version 3.2.17.1009776.arm

I could edit data/data/com.google.android.googlequicksearchbox/app_shared_prefs/StartupSettings.bin on plain text, and change en-CA by es-ES. Ok. I reboot phone, but no answer when I say "Ok Google" on the launcher (GEL 0.10.1.920880).

Google Now works, and offline spanish voices are there.

If I edit (hex) data/data/com.google.android.googlequicksearchbox/app_shared_prefs/SearchSettings.bin, changing en-CA by es-ES, I have fails from Google Search (Google Search app was stopped, inform or accept), even after reboot.
[Android Software Development] memnoc:
Es is Spanish?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] coldbeermt:
Yes, es-ES (español-ESPAÑA)
[Android Software Development] memnoc:
It happens, do the following: open Gnow, do a reasearch, a complete one, reboot, check the file again

Or

Delete the bin, reboot, it will recreate itself properly (hopefully)

Or

Try hex code hack, chineese is the cripted version of ASCII, hex code should be readable

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] memnoc:
Are you sure about any point of the guide? Permission, hex values, ecc?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] coldbeermt:
777 on the bin files.

Hex values correct (and re-checked)

ecc... :eek: ecc... :eek: what the hell means ecc? :confused:
[Android Software Development] furb3t:
You're right, I have velvet.apk in system/priv-app and GoogleNow.apk in system/app, but I'm using PA gapps......at this point what file I have to modify?????
[Android Software Development] memnoc:
you have to check if the files in data/app and the one in system/app (or priv-app) are the same version! If so, the the hack should work
[Android Software Development] memnoc:
ecc=eccetera>excetera (etc)

then I don't know mate, sorry. Try to give more info..device, rom, android version, google search version
[Android Software Development] coldbeermt:
It's wrote on a previous post. With every detail.

Enviado desde mi Nexus 4 mediante Tapatalk
[Android Software Development] furb3t:
Yes they are related at the same version; I don't see any startupsettings.bin to modify.... ??? #confused :)
[Android Software Development] :
Romanian

Thanks for your post! I'll try these for Romanian.
[Android Software Development] memnoc:
that's happens randomly on a nexus 4 only as far as I can see, and I don't know what causes it, since your doing the right thing..check if the bin is still edited after a reboot
[Android Software Development] lukes91:
many thanks for mentioning me in OP :o

edit: i'm writing down all the hex codes for languages in op, i'll post them here as soon as i finish ;)
[Android Software Development] memnoc:
no problem mate, and thanks a lot for what you're doing, it will come in handy for new comers:fingers-crossed:
[Android Software Development] stah17:
THANX!

Works great on HTC ONE with ge-GE for Germany!
[Android Software Development] punchpunch:
S4+cm11= works great in de-DE (German)

Thx a Lot :)
[Android Software Development] alexandreantunez:
Thank you! It works pretty good on my N4 with Brazilian Portuguese.
[Android Software Development] memnoc:
I'm out of thanks for today, but thanks anyway guys for reporting your experience:fingers-crossed:
[Android Software Development] francescobabbaro:
Now it works (I don't know how I have done exactly). Thanks a lot, it's a great feature.

Sorry for my bad English.
[Android Software Development] hasan4791:
Hi, Thanx for this awesome guide...I tried enabling Ok Google feature in English-IN(en-IN) and yes this option is included in voice->language option....I edited using root explorer and in text editor...after reboot the bin file got reset to original values...where I'm doing it wrong...??

Running Carbon rom (CM11) in LG optimus G E975
[Android Software Development] milestone2mod:
Got i working so far (with German):Widget works with GEL, Hotword menu is present in Google Now, "say OK Google"-prompt in the Widget is working too, but I could shout "OK Google" as loud as I could, nothing is triggered. Switched Language to en-US, same Problem. Rebootet few times, still nothing.

Does anyone have the same problem? Any solution?
[Android Software Development] memnoc:
Use es mate, root explorer edits the files improperly, es will work, see how in the screen right at the begining of the op

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] hasan4791:
es..:confused::confused:

Juz chk ur screeshot bro

https://www.dropbox.com/sh/sj9kopef3v21l3m/wTl1uswAva#lh:null-Screenshot_2014-02-15-15-50-38.png

You can see en-IN in the next line...Does it mean English India only right ?
[Android Software Development] Aashuk Mehta:
I'm using es, still the same issue

---------- Post added at 08:00 PM ---------- Previous post was at 07:59 PM ----------

Can anyone confirm, does it work on apex?

Or can someone provide a list of launchers that are working with this? I know Nova doesn't
[Android Software Development] hasan4791:
Have you tried en-IN srtring also..??
[Android Software Development] albertgoca93:
I know that it's off-topic but, what clock widget are you using?

Thank You!
[Android Software Development] memnoc:
Don't know why, many people here including me did it with es.. Are you sure you're giving permission like the screenshot shows ? By the way, you can still try method 2

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] memnoc:
Zooper pro plus a skin called Minarch, you can find in Play Device

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] Aashuk Mehta:
Yup
[Android Software Development] X-Jonte-X:
Thanks for sharing.

If I change the bin file will I still get ota updates? Or will it fail?
[Android Software Development] dondula:
Hi, I tried to follow these instructions but no matter what I do I can't get hotword detection from my home screen. I'm in the US using an HTC One on 4.4.2. I've attached screenshots below. If someone could let me know if i'm doing something wrong I'd really appreciate it.
[Android Software Development] memnoc:
Sorry Pal, if you're in US You do have fully support, why are You trying this Hack?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] ehrans:
Not a closed framework module to automate this? Weird!!!

Thanks for the news!! Editing my files now.

Enviado desde mi Nexus 5 mediante Tapatalk
[Android Software Development] dondula:
I thought this would enable hotword detection from my home screen like on the Nexus 5.
[Android Software Development] memnoc:
Indeed, but all You have To do is choose English To achieve this.. Isn't this working?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] gpvecchi:
No problem, man!

Procedure: switch Google Search to US English and reboot (important, as this will give you the "use hotword" in settings). Now, copy StartupSetting.bin from the folder you mentioned, edit it with hex editor changing en-CA text to your locale. Put it back, set permissions to 600 and reboot. Check that your language is selected in Now settings. No need for it-IT folder, but no offline commands...
[Android Software Development] theknut:
I'm already working on it... but can't make an ETA. It's not so easy actually. I found the method which reads the StartupSettings but when I browse through the prefs I can't find the specific settings. Later the settings are given to a method I can't hook to which (I think) loads the rest of the file.

I might just end up modifying the file each time the launcher is started / the constructor is called.
[Android Software Development] dondula:
I guess I'm a little confused. I thought the only phone that was able to use hotword detection when you're not in the Google now app was the Nexus 5. I want to be able to just say OK Google while at the main screen of my phone and have the search pop up. Is that not what this hack is for? I'm already on English but hotword only works if Google now is open.
[Android Software Development] memnoc:
then my guide is better, we have offline plus no folder needed, check out the updated op:good:
[Android Software Development] coldbeermt:
Forget. I think I have another kind of problem. I chose English Us as my primary language, deleted bin files and deactivated Now. Then rebooted phone. Bin file were regenerated. Still in English, activated Now and everything works fine. But if I select to activate the setting for the hot word (OK Google)... then I have again the ap Google Search App error.

It seems as if I have something wrong, but can't imagine the reason.

I've got last versions of Search (Now) and GEL. :(

But if I have errors in English, it's logical having the same issue in Spanish.
[Android Software Development] memnoc:
[MENTION=1290096]bob8x[/MENTION] please hit me up on hangout again
[Android Software Development] memnoc:
really odd...let me think, If i come up with a solution I'll let you know
[Android Software Development] coldbeermt:
Thanks memnoc, don't worry... Tomorrow I'll try to reinstall them. Let's see if I could solve it. I know this is not your problem not your responsibility, so I just thank you for your help and your trick.

Enviado desde mi Nexus 4 mediante Tapatalk
[Android Software Development] gpvecchi:
I did the same as in the link you posted: offline recognition doesn't work. Try putting your phone in airplane mode...
[Android Software Development] memnoc:
of course, I can ensure you it's perfectly working..what keyboard are you using?
[Android Software Development] gpvecchi:
Google keyboard. But if you put in airplane mode, even Google Now will not work... "Google now is unreachable"...

EDIT: dictation will work, but Google now doesn't (I mean something like "call home", not "what's the weather in California").
[Android Software Development] memnoc:
Dictation is what is supposed to work, gnow features only work online as google designed them this way

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] coldbeermt:
I uninstalled gel and search... Installed them again and it seems been working in English right now...

Do I need to edit the two files located at /data/data/com.google.android.googlequicksearchbox/app_shared_prefs?

StartupSettings.bin and SearchSettings.bin? Or just the first one?
[Android Software Development] snod33:
Nice Work

Hi i have a Freelander PX2 i used the first method enabled all permissions changed the value to en-GB then rebooted and it worked. Thank you for the work around.

[MENTION=3203753]coldbeermt[/MENTION] just StartupSettings.bin all permissions on and once changed you need to reboot.

If i can do it its very very easy lol
[Android Software Development] hardrockk:
I have a Nexus 4

I did the method 1 ...

When google now settings active "Say Ok Google to do a search by voice" ...........I have fails from Google Search (Google Search app was stopped, accept)

When google now settings NO-active "Say Ok Google to do a search by voice".......It works well

I have launcher GEL and NOVA......my version Google Now is....3.2.17.1009776.arm.....my languague is spanish (es-ES)

Sorry for my english.Regards
[Android Software Development] memnoc:
Sorry I'm not sure I got what you said..

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] coldbeermt:
It seems I solved the problem as I explained on my last post.

And yes, just needed to edit (hex method) StartupSettings.bin.

Now I have no velvet apk and Now (Search) and GEL apps are user apps.

[MENTION=4653674]hardrockk[/MENTION] : yo tenia tu mismo problema

Enviado desde mi Nexus 4 mediante Tapatalk
[Android Software Development] memnoc:
Hex method is more complicated but it works in case like yours.. Glad you solved

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] coldbeermt:
Probably I was confused by your expression on the OP: "open the bin files..." So previously, I edited twice files and I just needed to edit the last one. Please, correct it.

But in any case, even after deleting them and rebooting, I had errors even in English... So it seems a duplicated app problem or so on... Or just a mystery ;)

Enviado desde mi Nexus 4 mediante Tapatalk
[Android Software Development] hardrockk:
You edit StartupSettings.bin or you edit two files StartupSettings.bin and SearchSettings.bin?

I´ll try desinstall google now and make method 2

Thanks
[Android Software Development] memnoc:
I just mentioned one bin, so when I say 'the bin' I'm obviously referring to that single one.. Delete all, reinstall search, do the method one, give permission and reboot, it works, practically everyone here did this

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] malukiz:
Work perfectly with the first method (file edited with es explorateur). Thanks mate :)

French Nexus 4 user