[MOD][Xposed] Ok Google for 3rd party launchers / on per app basis

Search This thread

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
30
Jerusalem
mohammadag.xceleo.org
Requires Xposed Framework!

This module enables Ok Google on all 3rd party launchers on KitKat and above.
It also allows you to enable Ok Google on a per app basis.

Requires 4.4+ and a newish version of Google Search (confirmed working on 3.4+)

This works by using the same method OEMs use to add "Ok Google" to their home screen, as seen on the Galaxy S5 and the LG G3.
Launcher developers, you can add this to your launcher with: https://github.com/MohammadAG/Ok-Google-Hotword-Lib

FAQ:
* How's the battery usage?
Exactly the same as GEL.​
* I don't get "Say "Ok Google"" in the search bar, only a filled mic?
The hint is only shown for a few times when you first use Google Search, it's hidden after a while.​
* Does this work with all languages?
No idea, if it doesn't work with GEL, it won't work here, however.​
* Any other hotwords besides Ok Google?
No, since this uses Google Search's built in service, only Ok Google is supported. For other uses, consider OpenMic.​
* Why is this only on KitKat?
The Google Search recognition service only works on KitKat.​

Video:
By @-NickHalden-: https://www.youtube.com/watch?v=8HuVFompEHo&feature=youtu.be

Screenshots:
More screenshots here: http://imgur.com/a/18LEJ
ljolJTZl.png


Compatibility:
4.4 only
Supported launchers:
  • Version 1.2 supports all launchers, just open the app once.
Tested OEM launchers:
  • Xperia Stock Launcher
  • HTC Sense 6 / Blinkfeed
  • TouchWiz (S5 has this built in)
  • LG (untested - G3 has this built in)

Download:
http://repo.xposed.info/module/com.mohammadag.thirdpartylauncherhotword

Source code:
https://github.com/MohammadAG/Xposed-Ok-Google-Hotword-3rd-Party-Launchers

Support development:
If you found this mod useful, consider donating with PayPal.
 
Last edited:

akuma48465

Senior Member
Apr 19, 2013
133
27
How can I, activate this module in Nova launcher, by the way my system is in Spanish

Sent from my GT-I9505G using XDA Premium 4 mobile app
 

devdav2167

Senior Member
Mar 22, 2014
70
103
This is awesome! I'd like to see if adding this to Aviate would be at all possible. Again, thanks for all you hard work!
 

Seadra

Senior Member
Aug 18, 2013
1,074
209
32
couple of questions.

- I don't like widgets on my homescreen, so is it possible without any search widget to do this?
- it isn't working as perfectly as it was working with GEL, why is that?

Thankyou for your work.
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
30
Jerusalem
mohammadag.xceleo.org
All launchers requested above are supported in 1.0.3. Now on the repo.

couple of questions.

- I don't like widgets on my homescreen, so is it possible without any search widget to do this?
- it isn't working as perfectly as it was working with GEL, why is that?

Thankyou for your work.

1- It works without widgets for me.
2- How exactly? I'm assuming you mean it doesn't open inside the app, but rather as a separate app? That's because GEL is Google Search. The voice recognition is handled by Google Search, so that should be identical.
 
Last edited:
  • Like
Reactions: yusioo7

jm700wx

Senior Member
Sep 22, 2008
175
70
Rhode Island
Sweet!! Awesome work!! I'm using this on Nova and it is flawless. I also love that I do not have to have the Google search widget on the screen!!!
 

superdioz

Senior Member
Mar 15, 2008
337
85
Rome
does it work in english only?
my system is set to italian and it doesnt work, i tried with nova, google launcher and launcher3, with and without widget, do i miss something?
 
  • Like
Reactions: Kwbmm

Top Liked Posts

  • There are no posts matching your filters.
  • 177
    Requires Xposed Framework!

    This module enables Ok Google on all 3rd party launchers on KitKat and above.
    It also allows you to enable Ok Google on a per app basis.

    Requires 4.4+ and a newish version of Google Search (confirmed working on 3.4+)

    This works by using the same method OEMs use to add "Ok Google" to their home screen, as seen on the Galaxy S5 and the LG G3.
    Launcher developers, you can add this to your launcher with: https://github.com/MohammadAG/Ok-Google-Hotword-Lib

    FAQ:
    * How's the battery usage?
    Exactly the same as GEL.​
    * I don't get "Say "Ok Google"" in the search bar, only a filled mic?
    The hint is only shown for a few times when you first use Google Search, it's hidden after a while.​
    * Does this work with all languages?
    No idea, if it doesn't work with GEL, it won't work here, however.​
    * Any other hotwords besides Ok Google?
    No, since this uses Google Search's built in service, only Ok Google is supported. For other uses, consider OpenMic.​
    * Why is this only on KitKat?
    The Google Search recognition service only works on KitKat.​

    Video:
    By @-NickHalden-: https://www.youtube.com/watch?v=8HuVFompEHo&feature=youtu.be

    Screenshots:
    More screenshots here: http://imgur.com/a/18LEJ
    ljolJTZl.png


    Compatibility:
    4.4 only
    Supported launchers:
    • Version 1.2 supports all launchers, just open the app once.
    Tested OEM launchers:
    • Xperia Stock Launcher
    • HTC Sense 6 / Blinkfeed
    • TouchWiz (S5 has this built in)
    • LG (untested - G3 has this built in)

    Download:
    http://repo.xposed.info/module/com.mohammadag.thirdpartylauncherhotword

    Source code:
    https://github.com/MohammadAG/Xposed-Ok-Google-Hotword-3rd-Party-Launchers

    Support development:
    If you found this mod useful, consider donating with PayPal.
    11
    Major update, 1.2 is now on the repo.
    You can now select apps on which Ok Google would work, useful for car launchers or any other app really.

    I've also reworked the code, all launchers should be supported now.
    8
    Action Launcher

    Thanks for your work and consideration!

    Done. 1.0.1 on repo.
    6
    1.2.7 allows multiple activities to work as intended.
    6
    It will not use more than what GEL uses.
    All launchers will be supported tomorrow, I'll add an update that reads a list of launchers and hooks them automatically tomorrow.

    I won't add a way to disable this with charging, it's unnecessary bloat since it only works on the homescreen, and it's the official way. For that, use OpenMic.

    Sent from my HTC One_M8 using Tapatalk