yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] pablo71:
really weird meltdown

my flow is gone from watch and not even restoring from twrp is fixing it ???

everything was working great, then yesterday I saw on May 7 autovoice was updated to fix an issue with Google app 5.13 so I updated it, tried it, everything worked, but I didn't like 5.13 too much, so I rolled back to 5.7 and everything was working for a few hours then just stopped working... I restored a twrp backup on my phone from a month ago AND even wiped my watch completely and restored it's firmware from a month ago ... I'm feeling like Google has altered the data I'm getting to shut my watch off??

after all the wipes and restores to go back to last month, and it still not working, I tried reinstalling Google App 5.7.26.13 then Google api 1.6.2. then autovoice 2.046 and 2.047 updating hooks and rebooting all the way, but like hahamuntz above it works on phone but not watch .... I'm stumped big-time

[EDIT:] I have an exact duplicate phone running same exact twrp image from a month ago I restored main phone to yesterday, they are clone note 3's running Jedi Rom Kitkat, the only difference is the the 'file litter' I've accumulated on 'Internal Storage' this past month.. ClonePhone has a working flow, and Google searches are intercepted from the watch instantly by autovoice. ... but MainPhone won't intercept from watch, but it will intercept from a voice search on phone, BUT, there is a 10 seconds lag to intercept, AND a setting in my Google App 5.7.16.19 is broken : in Settings> Voice>"Ok Google Detection" is dead .. I press "Ok Google Detection" and nothing ... so even though on main phone I wiped system + data + dalvik + cache and restored the twrp image that ClonePhone uses Mainphone has something broken in Ok Google Detection ... maybe this is some junk dropped on my internal storage when I tried the Google App 5.13.xx.xx , or some Android Wear Companion App upgrade beyond 1.5.0.2714488 ... going to try scrubbing out internal storage on MainPhone and copying internal storage from ClonePhone to remove any traces of my last month's activity
[Xposed Framework Modules] hahamuntz:
(Really long quote: :D)

That actually sounds pretty weird.

But now that you mention it, my detection also lags sometimes... Sometimes commands are received immediately and sometimes it takes a few seconds. On the other hand, I have no problems with the Ok Google detection.

Please let us know if you get it working again.

Good luck
[Xposed Framework Modules] pablo71:
the cause is Google Play Services updating itself even though I have Auto Updates turned off in the app store ... I got an invisible update on May 16, then my first reboot after that was yesterday may 20, then my flow melted down.. I reverted to an earlier Google Play Services from apkmirror.com, and got my flow back and my Ok Google Detection Settings back (for 10 minutes until it updated again) ... gotta find a way to prevent these updates .. I have an app called Disable Service and i'm trying to figure out how to get that to stop Google Play Services from poisoning itself with an update
[Xposed Framework Modules] hahamuntz:
Would you be so kind to tell us which version you reverted to? :) Then I can mess around to with the problem and maybe we find a solution quicker

I just reverted back to the factory version and now every Google app refuses to work :D Android Wear won't even establish a connection to my watch. So that version is too old :D and there are quite a few on apkmirror...
[Xposed Framework Modules] pablo71:
from www.apkmirror.com I chose Google Play Services 8.7.03 ( SEE NOTE BELOW:) because that dates back to when my flow was working well , but I'm still getting the invisible update to 9.0.82 ( I got my flow working BADLY with 9.0.82 : it's flaky and lags ) .. I had to reinstall everything from a clean reboot than REBOOT IMMEDIATELY after the invisible update of Google Play Services just to get it working at all.

I'm still trying to figure out how to prevent updates on the background

NOTE: from apkmirror.com

App Notes:

To figure out the right version of Google Play services for your Android device, download Play Services info or go to Settings -> Apps -> Google Play services, and look at the last 3 numbers in the parentheses (OR THEY COULD BE FIRST NUMBERS TOO, YOU'LL FIGURE IT OUT). You'll see something like -XYZ where:

* X defines Android version:

0 for Android <5.0

2 for Android 5.0 and 5.1 starting with Play Services v8

4 for Android 5.0 and 5.1 before Play Services v8, Android >= 6.0 after

7 for Android 5.0

8 for Android TV

* Y defines CPU architecture:

1 for armeabi

3 for armeabi-v7a

4 for arm64-v8a

7 for x86

* Z defines DPI:

0 for universal

2 for 160

4 for 240

6 for 320

8 for 480

Notes:

It seems that -7YZ builds became -4YZ with Google Play services v6.5. If you were on -7YZ before, you should now install -4YZ.

It seems that -4YZ builds got split into -2YZ for Lollipop and -4YZ for Marshmallow with Google Play services v8. If you were on -4YZ before, you should now install -2YZ in Lollipop and -4YZ in Marshmallow.

Looks like -8YZ builds are for Android TV.

Examples:

-014 for Android <5.0 armeabi CPU 240 DPI device

-438 for Android 6.0+ armeabi-v7a CPU 480 DPI device

-876 for Android TV x86 CPU 320 DPI device
[Xposed Framework Modules] pablo71:
thought I had it fixed
[Xposed Framework Modules] iHelp101:
I apologize for not keeping this module updated. I always assume most people switched to AutoVoice/AutoWear. I attached an updated version of the module. It works like the latest versions of Google Search. You of course might need to open GS API -> Three Dot Icon -> Update Hooks. Enjoy the module!
[Xposed Framework Modules] Lyr3x:
edit: nvm. forgot to reinstall autovoice ;) but it dont work for me .. Moto 360 2

I tried your updated version but AutoVoice is not available under plugins
[Xposed Framework Modules] hahamuntz:
It works! Thank you so much. That is such an awesome feature.

Really happy right now :)
[Xposed Framework Modules] Lyr3x:
can you maybe help me to get this working?

Im running CM13 on my Moto X 2014
[Xposed Framework Modules] etc6849:
No apology needed. This module is great! I did purchase AutoWear, but lately it keeps crashing (at least the shake will not work after some random period, the rest of the triggers on the phone (watch display off, etc seem to keep working...) so I just uninstalled it and went back to this method after I noticed you fixed it.

Seems the update also fixed the double triggers I was getting when searching from the Google Now launcher. Fantastic!

I think I asked before, but please let us know if you are willing to accept donations ;)
[Xposed Framework Modules] pablo71:
when you say 'lately it keeps crashing' I think Autowear may not be the problem .. I bet if you used the watch app Advanced Settings to check the version number of Google Play Services on your watch it would say 9.0.83 (or 9+) and on your phone the Google Play Services app will say 9.0.82 (or 9+). possibly a couple reboots on both devices will fix Autowear
[Xposed Framework Modules] pablo71:
another invisible Google Play Services update temporarily broke my flow today but it's fixed ...

I'm just sharing this info hope it helps someone.

my flow stopped working, so I figured another awful invisible update of Google Play Services had just rolled in (yes, it had, it updated itself to 9.4.52) and it turned all my accessibility settings off.

it took a couple of reboots for me to figure out that I should open the Autovoice app to start fixing things and I noticed 'Google Now Integration Is Disabled' .. so I went to accessibility settings, everything was disabled, so I turned them all back on.

I was working at my driving job and had to pull over at work to get my hands-free driving flow working again so I could drive safely - thanks Google - I love your stuff but just leave my property alone, ok? I don't want your updates unless I WANT your updates, ok?
[Xposed Framework Modules] arne182:
I just did the update to Android 5.0.1 and now autovoice works perfectly with the accessibility service. No more need for Xposed or Voice API. :)
[Xposed Framework Modules] hahamuntz:
AutoVoice always worked for me, but the GoogleSearchApi allows you also to set up custom GoogleNow commands with your smartwatch.

That's the main feature I am using the Api for. Neither AutoVoice nor AutoWear have this feature as far as I know, please correct me if I am wrong.

So if the Api is needed depends on your use. If you just want custom GoogleNow commands AutoVoice is enough, but if you want to execute them through your watch you will also need the Api :/
[Xposed Framework Modules] flash3d:
You are correct. Xposed is not needed for autovoice and Tasker.

If you want to use commands from Android wear u need xposed and this api.

Would be great if Google pulls their head out of there asses and bakes in native support for Tasker in Android wear.

Sent from my bla bla bla bla bla
[Xposed Framework Modules] darkamikaze:
I wonder if there's another way we can forward voice commands to AutoVoice through "Ok, Google" without xPosed but at least have root on our auto wear device. The dependency with xPosed makes it hard when android rolls out an update :/
[Xposed Framework Modules] avenant:
does this latest update from may still work?
[Xposed Framework Modules] etc6849:
The hooks need adjusted as it only works for my phone and not my moto 360.
[Xposed Framework Modules] avenant:
Just wondering...

For updating the app to have current hooks from latest google updates, If it breaks with the 3 dots option in the app.

How does this work? One uses this source code: https://github.com/MohammadAG/Google-Search-API ?

How do you update the hooks? Some tutorial would be useful. So more people can update this app. There are lots of people out there who could update this app, if they knew how to.

Also with more and more phones having 64 bit android nowadays, is it possible to compile the above code in 64 bit?
[Xposed Framework Modules] iHelp101:
Here is an updated version of the module. You will need to open the module -> Three Dot Icon -> Update Hooks. You will also notice a Change Hooks option. This will allow you to update the hooks yourself. The module has one hook. The hooks class can be found by search for "setFinal", which will point to the needed class. In Linux you can use grep -Ril 'setFinal' to find the hook. I am not sure how you would do this in Windows.

The current hook is "com.google.android.apps.gsa.search.shared.service.w". When it break it usually goes up one letter So the next time it breaks it will likely be "com.google.android.apps.gsa.search.shared.service.x". My version of the module has always been open source (Linked below). It uses Android Studio and yes it will work with ARM, ARM64, and x86.

https://github.com/iHelp101/Google-Search-API
[Xposed Framework Modules] burtjonathan11:
Could not open file
[Xposed Framework Modules] zbombattack:
Getting Current Hooks

Could you go a little more in-depth as to how to find the hook for the version of the Google app you have and how you would apply it? Do you input the new hook in the change hooks dialogue and then reboot? Do you have to update the hooks as well before rebooting? Thanks for all your hard work on this great extension to my device.
[Xposed Framework Modules] zbombattack:
Current Hooks

So i found out a way to get the hooks for each google search package. I used apktool to extract the google search app and then ran

ls searchbox_6.6.14/smali/com/google/android/apps/gsa/search/shared/service

the smali files that have $ in them will have the last part of the hook in the front. For instance, the output for this is

a ab$8.smali m.smali
aa.smali ab$9.smali n.smali
ab$10.smali ab.smali OnTranscriptionUpdateEventParcelable.smali
ab$11.smali af.smali o.smali
ab$12.smali ag.smali p.smali
ab$13.smali ah.smali q.smali
ab$14.smali a.smali r.smali
ab$15.smali b.smali SearchServiceClient.smali
ab$16.smali ClientConfig$1.smali SearchServiceMessenger.smali
ab$17.smali ClientConfig.smali ServiceEventCallback.smali
ab$18.smali ClientConfig$SuggestConfig.smali ServiceEventData$1.smali
ab$19.smali ClientEventData$1.smali ServiceEventData$2.smali
ab$1.smali ClientEventData$2.smali ServiceEventData.smali
ab$20.smali ClientEventData.smali ShowVoiceActionsEventParcelable.smali
ab$21.smali c.smali StartActivityParcelable.smali
ab$2.smali d.smali w.smali
ab$3.smali g.smali x.smali
ab$4.smali h.smali y.smali
ab$5.smali i.smali z.smali
ab$6.smali k.smali
ab$7.smali l.smali

so the last part of the hook would be 'ab', making the full hook for google search 6.6 'com.google.android.apps.gsa.search.shared.service.ab'. Using this I found out that the hook for search 6.5 is 'com.google.android.apps.gsa.search.shared.service.y'. Just input that into the change hooks dialogue, reboot, and you should be good. For some reason xda is putting a space before the last part of the hook but you shouldn't.
[Xposed Framework Modules] etc6849:
It quit working again for me. Anyone have any suggestions?
[Xposed Framework Modules] iHelp101:
PM me your Xposed log and I will post the required hooked change.
[Xposed Framework Modules] zbombattack:
New Hooks

The full hook for google search 6.6 and 6.7 is

com.google.android.apps.gsa.search.shared.service.ab

, the hook for 6.5 is

com.google.android.apps.gsa.search.shared.service.y
[Xposed Framework Modules] Droid_Mg:
Awesome! It's working again. Google needs to stop playing with us :P
[Xposed Framework Modules] etc6849:
I pasted

com.google.android.apps.gsa.search.shared.service.y

to manually update my hook and it works now. Not sure what i did wrong before. Might have had the space from the other post or pasted the single quotes lol.

I really appreaciate what you do to help the xda community and thank you for your quick response. Sorry I took so long, been really busy.
[Xposed Framework Modules] Gamersware:
voice recogniton

Do someone know how to activate "Google Now" on a TVbox, I have tried with bluetooth-headset and a Airmouse with build-in Mic ( connects with USB-Dongle) and a driverless USBcam with MIC (witch workes by the Telegramm App)

But the TV-Box ( mini m8s 5.01 rooted) gives me after to try -OK Google- a "the Mic is not started" out.
[Xposed Framework Modules] zbombattack:
New Hooks for v6.9 (ends in y)

Here are the hooks for the current Google app versions:

v6.5

com.google.android.apps.gsa.search.shared.service.y

v6.6-6.8

com.google.android.apps.gsa.search.shared.service.ab

v6.9

com.google.android.apps.gsa.search.shared.service.y
[Xposed Framework Modules] fedexist:
I decompiled the latest google app apk (6.11.13.21.arm64), but I didn't find the .smali files with '$' symbol in the path above. Any clue about the new hooks?
[Xposed Framework Modules] pablo71:
Android Wear 2.0 Question

does anyone have autovoice working through their Wear 2.0 watch? I was reading that voice transcription on 2.0 is faster because it 'bypasses the phone entirely' and this has me thinking I won't be upgrading to Wear 2.0 ... ( I got about 20 autovoice tasker tasks I need for work, so reverting my work-watch back into a gadget-in-search-of-a-use isn't an option)

if wear 2.0 isn't compatible I post this adb command that can be used to disable Wear OS update checks (it works on my huawei watch) :

su -c pm disable com.google.android.gms/.update.SystemUpdateService; su -c pm disable com.google.android.gms/.update.SystemUpdateService$ActiveReceiver; su -c pm disable com.google.android.gms/.update.SystemUpdateService$Receiver; su -c pm disable com.google.android.gms/.update.SystemUpdateService$SecretCodeReceiver; su -c pm disable com.google.android.gsf/.update.SystemUpdateActivity; su -c pm disable com.google.android.gsf/.update.SystemUpdatePanoActivity; su -c pm disable com.google.android.gsf/.update.SystemUpdateService; su -c pm disable com.google.android.gsf/.update.SystemUpdateService$Receiver; su -c pm disable com.google.android.gsf/.update.SystemUpdateService$SecretCodeReceiver
[Xposed Framework Modules] jithu aravind:
Hi :laugh:
[Xposed Framework Modules] etc6849:
Anyone have the hooks for 6.12.25.21.arm?
[Xposed Framework Modules] fedexist:
No luck man. This is for example the latest content of the folder where the hooks could be found. I think they changed something in the App and the module is no longer compatible.

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 24/02/2017 18:46 p343a
d----- 24/02/2017 18:46 p345b
-a---- 24/02/2017 18:46 2053 aa.java
-a---- 24/02/2017 18:46 1049 ab.java
-a---- 24/02/2017 18:46 2223 ac.java
-a---- 24/02/2017 18:46 1073 ad.java
-a---- 24/02/2017 18:46 928 ae.java
-a---- 24/02/2017 18:46 4283 aj.java
-a---- 24/02/2017 18:46 431 ak.java
-a---- 24/02/2017 18:46 761 al.java
-a---- 24/02/2017 18:46 894 am.java
-a---- 24/02/2017 18:46 461 ar.java
-a---- 24/02/2017 18:46 8107 C1617u.java
-a---- 24/02/2017 18:46 283 C3771r.java
-a---- 24/02/2017 18:46 1697 C3772s.java
-a---- 24/02/2017 18:46 1162 C3775e.java
-a---- 24/02/2017 18:46 450 C3776f.java
-a---- 24/02/2017 18:46 508 C3777i.java
-a---- 24/02/2017 18:46 860 C3778j.java
-a---- 24/02/2017 18:46 956 C3779k.java
-a---- 24/02/2017 18:46 260 C3780l.java
-a---- 24/02/2017 18:46 931 C3781n.java
-a---- 24/02/2017 18:46 372 C3782o.java
-a---- 24/02/2017 18:46 3622 C3783p.java
-a---- 24/02/2017 18:46 3229 C3784q.java
-a---- 24/02/2017 18:46 1303 C3785t.java
-a---- 24/02/2017 18:46 980 C3786z.java
-a---- 24/02/2017 18:46 16743 ClientConfig.java
-a---- 24/02/2017 18:46 1314 ClientEventData.java
-a---- 24/02/2017 18:46 1129 OnTranscriptionUpdateEventParcelable.java
-a---- 24/02/2017 18:46 15406 SearchServiceClient.java
-a---- 24/02/2017 18:46 755 SearchServiceMessenger.java
-a---- 24/02/2017 18:46 162 ServiceEventCallback.java
-a---- 24/02/2017 18:46 1374 ServiceEventData.java
-a---- 24/02/2017 18:46 1472 ShowVoiceActionsEventParcelable.java
-a---- 24/02/2017 18:46 778 StartActivityParcelable.java
-a---- 24/02/2017 18:46 952 StartClientEventParcelable.java
[Xposed Framework Modules] zbombattack:
Attempt at New Hooks

Hey guys, so I tried to find the hooks by searching for "setFinal" this time in that folder that I normally used "ls" on. It was in one file for 6.10-12 so I figured why not and took down the file names for the hook endings. I ended up with this:

v6.10

com.google.android.apps.gsa.search.shared.service.ad

v6.11

com.google.android.apps.gsa.search.shared.service.ac

v6.12

com.google.android.apps.gsa.search.shared.service.ac

FYI I have NOT TESTED these hooks because my device is running nougat so no xposed. Let me know if they work so I can post them on reddit and whatnot.

Also, I made a quick site for easy reference of all the google app hooks I've found so far. Check it out
[Xposed Framework Modules] tineprogramming:
You made my day man. Thank you
[Xposed Framework Modules] zbombattack:
No problem, but like I said, I haven't been able to test them to make sure those are the right hooks. So please let me know if they are!
[Xposed Framework Modules] tineprogramming:
I'm trying to fix my phone asap as my phone is currently bootloop now haha. I will let you know if it's working. Also can you guide me how to find the new hooks, as I rely on this module very much to open my garage door using Autovoice with android auto in my car.
[Xposed Framework Modules] tineprogramming:
I tried. It's doesn't work man
[Xposed Framework Modules] zbombattack:
That really sucks. In that case it seems like Google has changed the app enough that this module doesn't work anymore. So unless the module Dev can find a way to get it working I don't know what else to do.
[Xposed Framework Modules] tineprogramming:
Yeah. I rely on this very much. I will try to do some research. by the way new google app has come out to 6.13 version today. Thank you for your hard work though. Maybe it's doesn't work because I mistaken something. Let's others confirm it more.

---------- Post added at 10:09 PM ---------- Previous post was at 10:07 PM ----------

However, if you need me to test it or provide you the log. I'm happy to help you with anything I could.
[Xposed Framework Modules] etc6849:
Do we need to paste the entire hook then reboot? If so 6.12 is not working for me either.
[Xposed Framework Modules] chwzr:
hmmmpf

now actually i have version 6.15.24.21

are there new hooks or a other mod or smthng else?

it would be a verry good if we could get this working again.

i wrote a entire app based on this framework for controlling my house ( basicly it connects to a raspberry pi over ssh and exec some scripts that speak to the 433mhz receivers in the electronics in my house) .

it worked verry good while laying on couch and saying "lights out" to take a nap haha :p

why is google doing this **** and dont offer custom voice commands for developers? i think it would be cool if every app can say "my action word is "xxx" and my commands are f1, f2,f3 " and when a user says "ok google, xxx f1" the right intent or activity gets fired up. life could be so easy.

and why they implemented a function to send whatsapp messages ( how did the devs of whatsapp do this shizzle?)

there is a whole interface for sending messages with whatsapp in google assistant. out of the box... :confused::confused::confused:

please google, do some magic, post some new hooks or offer devs a better voice api !!! :angel:
[Xposed Framework Modules] ricardojlrufino:
New Version of Google Search API

Google has changed method signatures.

I created a new modification with the changes:

Tested on Android 5.1

Download:

https://github.com/ricardojlrufino/Google-Search-API/releases

Source:

https://github.com/ricardojlrufino/Google-Search-API

In github page have instructions to decompile and find new hooks

Please update file:

hooksversion.properties
[Xposed Framework Modules] steviehs:
Ricardo, you made my day!

Afer a resynchronisation of my watch, the wear app on the phone stopped demanding for an update - a bevaviour which more and more apps get - very nasty. So I had to go for a new android wear app, which then asked me to update Google Now.

So I took your apk, and checked via your described method for the hooks and set this. Mission completed.

Google App 7.1.29.21.arm now has "com.google.android.apps.gsa.search.core.service.n"

I hope, I've done it right with the patch...

It is a shame for the big players that they became so incredibly rich because of the open structure of the internet, but they push you in their incomplete and unsecure walled gardens with their voice assistants...
[Xposed Framework Modules] Droid_Mg:
Thanks! It works again.
[Xposed Framework Modules] yugandar:
Hai
[Xposed Framework Modules] mndmlp:
Yes
[Xposed Framework Modules] ericsmith9696:
:highfive:
[Xposed Framework Modules] carloshlemos:
Android Marshmallow?

Hey guys, no one was able to execute on Android Marshmallow?
[Xposed Framework Modules] Jarve:
Jarve
[Xposed Framework Modules] ninestarkoko:
Did You manage to find the new class that needs to be hooked on latest 7.12. versions?

Seems like google has changed something in the .../core/service area

the setFinalRecognizedText is no more there.

the only useful class might be the SearchPlate one
[Xposed Framework Modules] Contitigno:
64 chiffres avec du 6 Bit

pour ce qui est du langage courant:

0=000

1=001

2=010

3=011

4=100

5=101

6=110

7=111

le langage est en 6bit le code a gauche et le chiffrement a droite

00=0

01=1

10=2

11=3

02=4

20=5

12=6

21=7

22=8

03=9

30=10

13=11

31=12

23=13

32=14

33=15

04=16

40=17

14=18

41=19

24=20

42=21

34=22

43=23

44=24

05=25

50=26

15=27

51=28

25=29

52=30

35=31

53=32

45=33

54=34

55=35

06=36

60=37

16=38

61=39

26=40

62=41

36=42

63=43

46=44

64=45

56=46

65=47

66=48

07=49

70=50

17=51

71=52

27=53

72=54

37=55

73=56

47=57

74=58

57=59

75=60

67=61

76=62

77=63