Closed alice-mkh closed 7 years ago
Forgot to mention. Despite the name of commit, I tested it afterwards and it works flawlessly.
Thanks a ton! Never got around to look into locale problem, and was looking into 6.10 myself right now, you beat me to it 👍 And some great refactoring there! I've added one thing though - since 6.10 from_hotword spoof is not needed anymore, they've fixed it in app itself, so I've added that check too and not hooking it if version is 6.10 and up.
Anyway, thanks a lot!
I did most of the testing on an early 6.9 version where it still works for any locale (you can see it from the commit name :) ), so perhaps I missed that.
Hi! I've updated the app for the latest Google (#9), fixed the locale problem and made the hooks depend much less on obfuscated names, so that updating the module for newer Google versions takes less work. More precisely, how the hooking is done here:
In theory, this approach can have side effects, but it seems ok here. In my opinion that's a better way than changing Google app logic directly, because it's possible to do it in a way that doesn't require updating the module at all, although I haven't reached that here.