yashsingh1/xdaforums huggingface dataset:
[ONE General] okak24:
In my XNPH05Q after last update before CM12, this dont work. This update i talk is a very small ota incremental, about 8mb, but after this dont work any version. I tryed, i flashed this and after restart this open menu refresh new app and continue this and dont go to phone. This stop in actualization apps. Sorry my english. Can some one help me?
[ONE General] MexiDroid:
:( i want for 5.1.1 :(
[ONE General] GigabitEthernet:
Trying to use this with CM11 M11 and upon completing training the phone reboots and then never responds to "Hey Snapdragon" upon rebooting?
[ONE General] linuxxxx:
Hey snapdragon for CM-12.1

http://puu.sh/jPGVz.zip > for cm12.1
[ONE General] tiny4579:
Awesome. Doesn't seem to want to download on mobile for me though.
[ONE General] yonoshiro:
You Sir are a God amnongst men!. Lol. This file works perfectly. I am currently running Broken OS 3.6 (Android 5.1.1) with Ak Kernel and this particualr vocie wakeup file works exremely well. It only stops responding once upon first boot, otherwise it works like a champ and has negligible battery drain.
[ONE General] thecoolkid:
Hi, can this be made to work on CAF Roms?
[ONE General] thecoolkid:
I pulled the files from the latest CyanogenOS update YOG4PAS3JL. Should work great on CM based ROMs. Attached to the post if anyone's interred ;)
[ONE General] thecoolkid:
And again with working Voice Wakeup from today's update COS 13 ZNH0EAS26M for CM13 :)

You can thank me for the zip and OP for knowing which files to pull :) Enjoy! :D
[ONE General] thecoolkid:
Voice Wakeup from today's update COS 13 ZNH0EAS2JK for CM13 :D

Mostly bug fixes and version bump for the peace of mind :angel:
[ONE General] KURDKiNG:
It works 5 percent of the time, im on resurection remix btw but yo thnx for yer hard work
[ONE General] rino757:
Just wanted to say that I flashed this on the latest Exodus build (Marshmallow). No boot loop, one app crash on first boot. Set up process asked me to train the voice thing and now I can say "Ok Oneplus" to wake the device, but doesn't do anything other than that. No setting available for changes either.
[ONE General] Chaoscrasher:
Hey guyysss

I installed this mod on my op3 without making a backup. I know that's a bad idea, and I was about to do one however someone distracted me.

Now my notification bar is really laggy :s

Any ideas how I can uninstall?

Edit: I just reflashed my base ROM; that did the trick.
[ONE General] fards:
Oh and the Sony xz series also carry the app and libs for anyone interested..
[ONE General] rdar_93:
I was browsing through the forums like I usually do and boom I come across this breath of fresh air!

I actually got my device after they took this feature off too, which made me sad cause I actually like "Hey Snapdragon" and having a command code that wakes the device from sleep is pretty cool.

I hope that there isn't any licensing issues, cause I'd love to have this on my phone.

Btw is it limited to CM11S only or can it be used on PA/PAC/Slim roms?
[ONE General] jojo_whit3:
I finally decided to post the mod. I feel like I've done my due diligence in attempting contacting the appropriate parties. However, I've only received automated messages or was ignored completely. So here it is...enjoy!
[ONE General] lqdcat:
Didn't work for me. Running multi-rom with liquid smooth on primary.
[ONE General] jojo_whit3:
Can you be more descriptive? Did you get a boot loop? FC? etc?
[ONE General] jaimex2:
The CM keys are public so we should be able to sign it and give it the access it needs.
[ONE General] gr4nchio:
Does not seem to work for me.

Installed, trained, disabled OK Google.

And now any time I say hey snapdragon the phone reboots....
[ONE General] rdar_93:
Installed and works flawlessly on my Opo running PAC rom with CWM recovery (philz) :D

Thanks again!
[ONE General] xayz:
For me the phone also reboots when I finish the training. And every time I start the phone it reboots after 10 sec. Perhaps the kernel could be a problem? I have Franco installed.
[ONE General] souljaboy:
It rebooted for me too, but only the first time. I installed google, turned on google now, unselected detection. I have the wake menu set to launch google now. Everything looks good. But when I say the word. The phone doesnt wake up.

Now I re-did the voice thing again, and I have bootloop too. Homescreen shows and reboot 5 seconds later.

CM11 nightly with AK kernel.
[ONE General] jakemog:
CM11S does not work, reboots on first training and does not respond.
[ONE General] jojo_whit3:
To anyone getting reboots, I need to know what ROM and kernel you're using. Also, run a logcat and then make the phone reboot so I can see what the error is. Otherwise, I can't help.
[ONE General] souljaboy:
Just tried with cm11 nighly stock kernel. Same thing.

Its hard to get a logcat because even entering safe mode doesn't make you not bootloop after 5 seconds.

The log can only be pulled with adb after.
[ONE General] jakemog:
Reboot is not that big of a problem, it does not respond to "hey snapdragon" running the latest ak kernel.
[ONE General] gr4nchio:
I am on cm11s 38 with AK kernel 068. I have not managed to get a logcat... yet will post if I manage.

Thanks
[ONE General] blazze11:
Tried it with the latest Mahdi-Rom. The notification for training showed up. I went trough the setup. Afterwards my device reboots and it does not appear in the settings.
[ONE General] jojo_whit3:
Can you go back to the stock kernel and try it? I never tested any 3rd party kernels...just the ones in the stock cm11s builds.
[ONE General] gr4nchio:
OK went back to stock kernel and the app works.

If the phone is already on it opens google search for me, however if the phone is off it brings me to the lockscreen ... any way to bypass that (I am not using a pin or password protection, just the lockscreen)?

Also, any suggestions on how to investigate what might be going wrong with AK kernel?

Thank you for your work and help.

Edit:

Quick follow up. Logcat from phone off shows:

W/BroadcastQueue( 1449): Permission Denial: broadcasting Intent { act=com.android.keyguard.action.DISMISS_KEYGUARD_SECURELY flg=0x10 } from com.cyanogenmod.voicewakeup (pid=2557, uid=10102) requires android.permission.CONTROL_KEYGUARD due to registered receiver BroadcastFilter{4265ff18 u0 ReceiverList{425aa490 1594 com.cyngn.keyguard/10004/u0 remote:42599af0}}
[ONE General] souljaboy:
I have produced two logs, the device itself didn't reboot, it appears to be almost random, the program doesn't work after setting it up properly nonetheless. Each is of the setup process.

This is cm11 nightly, stock cm11 nightly kernel.
[ONE General] jojo_whit3:
For now you have to disable the lock screen altogether. The Voice Wakeup app isn't granted the CONTROL_KEYGUARD permission because it isn't signed by the correct CM11s system key.
[ONE General] jojo_whit3:
Thanks for the log cat. Looking at it real quick, this is the problem...

10-25 22:15:30.521 E/ListenService( 224): ListenService:registerSoundModel - ERROR session id 0 not active
10-25 22:15:30.521 I/IListenService( 224): ... returns 12
10-25 22:15:30.521 I/IListenService( 1782): registerSoundModel returns 12
10-25 22:15:30.521 E/(Native) ListenReceiver( 1782): registerSoundModel: ERROR service->registerSoundModel returns status 12
10-25 22:15:30.521 E/ListenVWUSession-JNI( 1782): ERROR receiver->registerSoundModel failed with 12

My guess is it's something kernel related. In the msm8974.c file, there's some listen service devices (LSM1 - LSM6 i think) defined. I'll have to look into it when I have some time later. I would guess that something was left out of the defconfig file so it's not being compiled in the kernel...which is why people with 3rd party kernels are having issues.
[ONE General] rdar_93:
Just a little update, sometimes when I say "Hey Snapdragon" it doesn't work (which I thought was normal) but randomly after some minutes it decides to activate and at first I thought my phone was going crazy so I rebooted and tried it again later on and the same thing happened.

It was really funny so I thought I should share with you guys to see if anybody else had the problem.
[ONE General] fards:
If you're trying this on cm nightly then you're most likely going to have problems as the apk is odexed in the zip.

Try the version from the other thread
[ONE General] acuicultor:
Can you point me to the other thread. Thanks.

sent from my crispy bacon
[ONE General] fards:
It's been linked to already
[ONE General] newellj79:
I don't see it.
[ONE General] fards:
Don't worry about it. That one doesn't work on cm nightlies either.

The one in opcan be installed as normal app, so the odex shouldn't really matter.
[ONE General] jojo_whit3:
Can you tell me what version of PAC you were able to get this working on? Thanks!
[ONE General] rdar_93:
I got it working on RC1, didn't flash any nightlies.

PS I quoted my update just above yours so you can see what I said about it not working on time (sometimes)
[ONE General] jojo_whit3:
Thanks...that gives me an idea for why its not working with the CM nightlies.

Also, I haven't ran into that delay issue before. If you can get a logcat of that happening, it would be helpful.
[ONE General] rdar_93:
It's completely random but I'll see what I can do.

Noob question (please excuse my ignorance because I have not had reason to produce a logcat for this device yet)

How do I produce a logcat? Do I just download the app from the playstore or do I need to do anything with adb?

I only produced one logcat for my old phone, and I did it through recovery (4ext has the option to generate a logcat in scenarios of failed flashing)
[ONE General] jojo_whit3:
I just use adb.... adb logcat > log.txt

If there's an app on the playstore, you can give that a try. I've never used it before so I can't say how well it works.
[ONE General] rdar_93:
I'll see what I can get for you. It may take a while because it randomly happens, so if it does (hopefully) I'll get the logs to you right away.

PS it happens when the screen is off lol plus the last time it took some hours to happen.

So my device isn't recognized by adb...
[ONE General] angourakis:
As already reported on the thread, it is not recognizing my voice. Running CM11 nightly (26/10/2014) + AK Kernel v71b11

If I can provide anything to help, just let me know!

Regards,

Rafael
[ONE General] jojo_whit3:
I'm going to post an update tomorrow morning, but here's what I've learned today....

The Voice Wakeup apk will not work for anyone using a CM11 based kernel compiled after October 11th. I'm 90% certain this is the commit that breaks the mod...and it needs to be reverted to get it working. I tested my theory by flashing the cm-11-20141008-SNAPSHOT-M11-bacon.zip and the Voice Wakeup seems to work just fine.
[ONE General] tiny4579:
Have you tried putting the apk in priv-app? I think it needs it for permissions. I know screen record needs to be there.
[ONE General] jojo_whit3:
I haven't tried it, but I don't think that's the issue. The apk requires the CONTROL_KEYGUARD permssion...which is protection level 2, i.e. signature. Signature permissions are...

The CM11S private key (.pk8 file) isn't up on CMs github as far as I can tell. I can sign the apk with the regular CM11 keys so then it should work for all CM11 based ROMs.
[ONE General] tr1gg3r.man:
"You look at your Aunt Sassy and you never go out of the house with your snapdragon snapping, you understand me?"

Wish you could make it so that you can say "okay bacon" or "waken bacon"! ;-P

Sent from my bacon!
[ONE General] jojo_whit3:
Version 2 is up...check out the OP.
[ONE General] ashishv:
v2.0 just wakes up the device to lockscreen, no google now. Using cm11 33R and stock kernel.
[ONE General] jojo_whit3:
You have to disable your lockscreen. 33R is CM11S....not CM11. The CM11S private key isn't publicly available AFAIK...so the only workaround is disabling the lockscreen altogether.
[ONE General] eqbirvin:
Xposed?

There is an xposed mod that allows apps to open on top of the lock screen. I wonder if that will work for those of you in CM11s who just get the screen wakeup. I will look up the module right now!

---------- Post added at 03:53 PM ---------- Previous post was at 03:48 PM ----------

Just did some research, the xposed module "App Settings" allows selected apps to open over lockscreen. So maybe if you selected google voice search, voice wake, and google now/google search to open on top the lockscreen, it may open your voice search instead of just waking the screen.

link to apps settings http://repo.xposed.info/module/de.robv.android.xposed.mods.appsettings

anyone on cm11s willing to try?
[ONE General] jojo_whit3:
I tested this module real quick on my MotoX. It seems to work well and should be applicable to this device. Thanks for the tip!
[ONE General] jojo_whit3:
I updated the OP because I figured out the reboot issue. On October 12th, CM updated their repository with a series of commits that made a lot of changes to the listening service kernel module. I believe there's a bug in there somewhere that makes the phone reboot when the VoiceWakeup app is attempting to register the soundmodel after training. To make this app work, the following commits need to be reverted.

401904a29760a7a8e93d79aeb25d51b86ee38d5e
ed1a73d224f2fbf7eb0f4e3d31282f72b3873b3d
3094e977c7840159bccf1102824dc23c832137c1
5ece66503e61768811db8148913d38a469a65daf
8c04f2e6ed27eb07544a2d6caa9a88f68bc2538b
9ad69f5d5c61ce2b77525cea96e7a1e1a148f1f3

I compiled the latest CM11 kernel source to test these modifications and it seems to work. I attached the flashable zip to the OP. If you want AK, franco, or other kernels to work with this mod, you'll have to ask those developers (nicely) to implement these changes.
[ONE General] eqbirvin:
PA?

Im downloading CodenameLungo PA 10/23 rom to test this on. Does anyone know if this works with official PA? I know I will be flashing the new kernel posted along with it. I will also update after i test. :good:
[ONE General] tr1gg3r.man:
Not sure if it works with PA... Let us know! :)

Sent from my bacon!
[ONE General] eqbirvin:
Tested with CodeNameLungo PA Branch

Tested it with CodeNameLungo PA branch and HSM_kernel. It boots fine, I get the notification to train my voice. I go through training no problem. However, the voice wake section is not present in the settings. I also get no response on my device. But I will be taking it home and trying the same setup on my other One Plus One which is much newer than the one I have with me right now(early August vs late Sept). i wonder if the batch that your phone came in/was made has something to do with its ability to pick up the mic as well or at all. Once i'm home i will also install 38r on both new and old device with no other mods, then test them side by side. I will upload results when i get them, my friends! :D

---------- Post added at 06:19 PM ---------- Previous post was at 06:02 PM ----------

Also Im using Philz Touch 6.
[ONE General] corando98:
Wasn't working for me either at first so what I did was clear app data and then train your voice, if you try it without a reboot it wont work so you have to reboot after training your voice with the voice wakeup "on". That's how I got mine to work on CM11S 38R stock kernel.
[ONE General] eqbirvin:
Worked well using your method! Im on 38r with smooth scrolling mod and it works perfect after a restart.
[ONE General] jojo_whit3:
The build date of the phone should be irrelevant. If Voice Wakeup isn't present in the settings, then its probably due to some modification to the Settings.apk compiled in the PA ROM. I'll try to look into this when I get a chance.

*Edit* It looks like you can at least launch the Voice Training activity with the following shell command...

adb shell am start -n com.cyanogenmod.voicewakeup/.VoiceTrainingActivity

*Edit 2* You might be able to access the Voice Wakeup settings using...

adb root
adb shell am start -n com.android.settings/.SubSettings -e :android:show_fragment com.android.settings.voicewakeup.VoiceWakeupSettings
[ONE General] AxoO69:
Hi !

I have a question : is it possible to flash it with a fully stock OPO 4.4.4 (38R)

(unrooted, stock recovery and stock rom)

Thanks
[ONE General] jojo_whit3:
It might be possible with fastboot. You'll have to do a bit of searching for more details, but the gist of it would be....

1.) Download a custom recovery image (TWRP for example)

2.) Copy the hsm zip file to your SD card

3.) Run "fastboot boot recovery.img"

4.) Make a backup

5.) Flash the mod

6.) Reboot

The fastboot "boot" command only loads the recovery image to RAM, so your device will boot normaly afterwards.
[ONE General] MobileThrowAwayAcc:
Out of curiosity, why isn't this under development? I would have never found this had it not popped up in Franco's Kernel's Thread.

Great find, btw!
[ONE General] eqbirvin:
I went back to CM11s 38R last night but thank you for finding that out!!! Also as a side note, thank you for this "port" I've been so excited to just testing this on different ROMs! You are awesome! :D

Im still testing the xposed module work around idea. So far i've tested 2 modules but neither one allows the voice activation to appear "over" Cm11s lockscreen. Still testing other modules though!

I know the build date is irrelevant for the software side but when I loaded both of my OPO's up with 38r, your kernel and the HSM, I could see a huge difference in the two regarding sensitivity of the microphone. At about a foot away they both pick up "hey snapdragon" just fine. But at arms length away, only the newer one would pick it up. I had to raise my voice level for the older one to work. (I did clean all of the mic ports on both devices using a can of air before testing)

That makes me thing that OnePlus moved the microphone/used a different one or something after the first few build patches.

I will update when i find more information
[ONE General] jojo_whit3:
So I posted this under the General forum because it was initally just a video. I'm not sure if the mods can move it to the Development forums or not.

Thanks, I'm glad you're enjoying it. That's interesting about the difference in microphones. I can probably increase the microphone sensitivity values in the mixer_paths.xml file to give the older phone a boost.
[ONE General] eqbirvin:
Im sure that would help out with the sensitivity! Also update Update on work arounds

I have tried all of the methods of work arounds i can think of (all of them consisting of xposed modules) and Its still a no go on my side. It wakes the screen then just sits at the lockscreen. Oh well! :) Still a awesome mod! Let me know if you want any testing with roms or anything. having Two oneplus one's helps out a lot for testing purposes haha
[ONE General] jojo_whit3:
So an update about the Voice Wakeup settings option...

CM11 has a commit that adds these settings to the Settings.apk app in their repo. Unfortunatley ROMs such as Slim and PA don't include this commit in their source files and Mahdi ROM even reverts the commit. If you're using one of these ROMs, you can go through the training still using a shell command. However, I'm not sure if it will still launch Google Now since the intent action is never being set.
[ONE General] runderekrun:
This is interesting. Do you think Cyanogen is planning to bring it's own voice wakeup feature?
[ONE General] CravingMender9:
If I am not mistaken, this IS the cm voice wakeup feature.

They removed it before launch for some reason (bugs?), but the OP gave it life again :)

Please correct me if I am wrong.
[ONE General] Kyle C:
Bummed that PA doesn't have the correct commits for this to work.... Much prefer it over CM
[ONE General] AcmE85:
It will come back, as stated in an reddit ama by Oneplus employees:

http://www.reddit.com/r/technology/..._and_david_from_oneplus_ask_us_almost/ckvjow7

http://www.reddit.com/r/technology/..._and_david_from_oneplus_ask_us_almost/ckvkp1l

As some already noticed, these commits that were merged recently (which are breaking this mod) are preparations for this upcoming feature.

I just hope it will be integrated into the nightlies and not cm11s exclusive!
[ONE General] jojo_whit3:
Here's a test zip for your older phone. I increased the microphone volume levels from 84 to 90, so I'd be interested to see if that helps at all.
[ONE General] MexiDroid:
is this a battery comsumption feature? or we have a dedicated chip like moto X? i kno qualcomm have any of that on the 800 Series
[ONE General] eqbirvin:
Hell. Yes. Thank you so much! Im gonna flash right now. :good:

---------- Post added at 11:47 AM ---------- Previous post was at 11:45 AM ----------

The 801 should have a dedicated chip. I believe i read that it did a few months back. Oneplus was really the first company to take advantage of the chip on snapdragons but ended up pulling the feature before final launch.
[ONE General] AcmE85:
As Android 5.0 will support this feature natively on devices with a dedicated chip, those merged patches could also be used as preparations for this feature in L.
[ONE General] Kyle C:
Confirmed working on PAC RC2 w/ stock kernel.

However, sometimes it does need a reboot OR a toggle of the setting for it to recognize my voice.
[ONE General] MexiDroid:
tested, and works with CM and custom kernel (38R kernel dowsnt works the wifi) i didnt tried the stock CM11 kernel

i use the LOUD zip because cant hear with the normal zip

but i think google now hear better than this, why? is there a way to enhanced the hear?

GREAT MOD

and i hope Android L works with snap 800...
[ONE General] eqbirvin:
the LOUD zip is used for increasing microphone sensitivity aka allowing it to "hear" better. Okay Google will work a bit better because they have put so much time into perfecting it and a few other factors. The LOUD zip does not increase speaker volume (correct me if im wrong OP) ;)

---------- Post added at 02:03 PM ---------- Previous post was at 02:01 PM ----------

Also I have confirmed working on crDroid with HSM kernel
[ONE General] jojo_whit3:
Yes. The Voice Wakeup app uses the Hexagaon DSP core that's built into the Snapdragon processor....so battery consumption is kept to a minimum.

This is correct
[ONE General] jojo_whit3:
I hope that's true. I use the always listening feature (combined with Tasker and Autovoice) a lot...especially in the car. This mod works well enough, but it's definatley not as polished compared to my Moto X.
[ONE General] jojo_whit3:
I recompiled the kernel to include the latest touchscreen driver....see the OP.
[ONE General] noobtoob:
Works flawlessly on Jedi OSP v1.1, with Jedi kernel. I played with it for a little on vanir (nightlies) and got it to work, but not solid enough. Using opo hsm v2 for all testing.

from the one+
[ONE General] Giocarro:
This project is very interesting, the only thing stopping me so far is the need to disable lock screen to make it work.

Being on ART I cannot use Xposed to fix this issue.

Hope that in the future it will be fixed, maybe thank to some new CM commit.

Keep up the good work!
[ONE General] lutherkingmartin:
Thank you for for this project.

Wifi don't work for me with CM11 nightly 1031 + opo HSM 2.0 + HSM Kernel 1031
[ONE General] Artificialkid47:
Yes, confirmed. Wifi doesn't work
[ONE General] jojo_whit3:
WiFi is working fine on my end. Does going back to stock kernel fix it?
[ONE General] noobtoob:
What do you mean disable Lockscreen? You talking about password, face, gesture, etc...? Mine works with all the above. Plus, if you are somewhere you want to use it, just create a profile with a no Lockean option (like car mode or something). If you don't like it, you can always uninstall or turn it off.

from the one+
[ONE General] eqbirvin:
The lockscreen works fine if you are NOT on CM11S. If you ARE on CM11S, you have to disable the lockscreen. Even if you disable the custom lockscreen option.

Reason being CM11S team has not released "keys" for their lockscreen to be bypassed.

Sent from my Glade Air Freshener

---------- Post added at 03:28 PM ---------- Previous post was at 03:26 PM ----------

Also, if you flash HSM V2 and HMS kernel, and your Wifi does not work, flash the CM11S kernel in the OP (if you are on CM11S)
[ONE General] Giocarro:
Yes, I'm actually on CM11s, thanks for the explanation.