Help installing old ISC search app - no voice search - General Questions and Answers

(cross-posted from Galaxy S4 board because this may be a more appropriate area)
I wanted the old, ICS style google search where you tap on the widget, type, and are taken straight to your browser.
I downloaded a googlequickboxsearch.apk, changed permissions to rw-r-r, and installed to system/app, then i removed velvet.apk (the jellybean google search app) & rebooted.
Upon restart, it mostly works- i can click on the widget and type straight to my browser. But, the voice search does not appear to work now. When i click on the mic (on the search widget) most of the time some text pops up saying "app not installed", but sometimes it will direct me to the play store to download the app.
The play store shows voice search as "installed", yet when i click on it's entry from the play store there is no option to open/update/uninstall.
To remedy this, I tried to install voicesearch.apk 2.1.4 (i believe this is the latest version) into system/app, but it will not install.
Can someone please help me with this? I really prefer the old ICS style search (as i have no use for Google Now) but also dont wan to gimp the search functionality of my phone either. Thanks

sorry if bumping isn't allowed, i've been googling this all day and cant figure it out

Related

[BUG/REQ] Search key bug/remap

In doing my own debloat of the deodexed stock ROM, I deleted any market-downloadable apps like Google Search and Voice Search.
Apparently, even though I went to the market and downloaded Google Search, pressing the search key does nothing when I'm at the home screen. It appears that the Google Search .apk has to be in the /system/app folder for this to work. Strangely enough, this is not the case with Voice Search. Long pressing the search button still brings up my market-downloaded Voice Search.
Sloppy coding for sure. I know an Intent needs to be changed somewhere, but I'm really new to Android and don't really know where to look. Any idea what string in what file to edit to fix this?
My bad. I am running the latest TweakStock.

Google Text To Speech - Force Close

I keep getting a force close whenever I access certain Google applications of Google Text To Speech Engine. I recently installed Google Now (and it wasn't working well for me), so I used the uninstall script. It seemed to start after that. I even replaced the GoogleTTS.apk from a stock ROM thinking it may be screwed up. I froze it for now and that stopped the FC's (obviously). Any ideas?
The best way for me to get it to show up every time was in the Language options in the menu, selecting Text To Speech, and it would hang for a second after that and FC the Text To Speech Engine. Are there any other APKs associated with TTS that I can see about replacing?
Shameless bump.
Same Problem with my S3.
I have the same problem. I removed the Google Now with Google Now to Google Search from http://forum.xda-developers.com/showpost.php?p=29756226. My Google search and me Google TTS both lock up and come back with Unfortunately ........ has stopped.
i have the same problem. i tried to copy the googletts.apk and the voicesearch.apk and replace to the /system/apk with root explorer but the same issue, FC
after one houre lost i an re-flashing the firmware...
the thing is that i am a nood and i did't nand backup before flashing the google now package :silly::silly::silly:
Google Now is hit and miss for me. I've used unofficial AOKP unofficial JB build 1 and several nightly builds of official CM10 nightly's Some times it talks sometime it doesn't. On AOKP the service would toss and error evertime about Google Play stopping but still work. Sure it will be worked out soon. Development is blazing along at breakneck speed with the SG3
I wanted to let you guys know I finally fixed this. You need a Titanium backup of Google TTS for 4.04. Go into Titanium and un install current version which should be 4.1....and restart. Then go back into titanium and restore the 4.04 version and you should be good. You must restart in between or it won't work.

Voice Input Frustrations

I just cannot seem to figure this out..
I cannot get voice input to work on anything other than the S Voice program that came pre-installed on my phone.
I would like to use it when I text but the stock keyboard does not seem to have the microphone icon on it anymore. Now before you jump and say "I got this" I already know about the hold the settings icon in the lower left and choose the microphone. Only when I do it I dont get 4 icons, I only get 3 and the microphone isnt one of them.
I installed SKYVI from the Play Store and it tells me that my device does not support voice input. Well clearly it does, S Voice works so I checked all my settings but cannot get it working anyplace else. Same thing with the Swiftkey keyboard... it has a microphone icon but when pressed, nothing happens.
This is an Odin rooted stock ROM, nothing special about it at all. Anyone else ever see this before?
Does it work with Google Now? Have you tried the new Swype beta http://beta.swype.com/? This works for me but my not my keyboard of choice, messageease
Please read forum rules before posting
Questions go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
Dmwitz said:
Does it work with Google Now? Have you tried the new Swype beta http://beta.swype.com/? This works for me but my not my keyboard of choice, messageease
Click to expand...
Click to collapse
I dont know what Google Now is.. didnt see any mention of it in the Play store..
I did find this out though.. a lot of these voice apps use Google's "Voice Search" app. The Play store says I have it installed but when I search my phone I dont see it. The "My Android Apps" section of the Play store also says I have it installed on my device, and also mentions its a system app of some kind. But I dont have it, and cant install it from the Play store because its "already installed". I think if I can find the APK for this program, I can probably solve my problem? Anyone have a copy or know where I can get it?
FIXED!
Hot Carl said:
I dont know what Google Now is.. didnt see any mention of it in the Play store..
I did find this out though.. a lot of these voice apps use Google's "Voice Search" app. The Play store says I have it installed but when I search my phone I dont see it. The "My Android Apps" section of the Play store also says I have it installed on my device, and also mentions its a system app of some kind. But I dont have it, and cant install it from the Play store because its "already installed". I think if I can find the APK for this program, I can probably solve my problem? Anyone have a copy or know where I can get it?
Click to expand...
Click to collapse
I went online and did some searches away from XDA and found out what Google Now is.. looks pretty slick..
But I also managed to fix my voice input problem. Reading about Google Now got me to thinking.. I opened Root Explorer and went in to System/Apps and there was an APK of something called VoiceSearchStub.apk .. it had a different icon than I was expecting but I went ahead and installed it. I now have a Voice Search icon installed and the voice input on the keyboard now works. But for the life of me I do not know why it was not there in the first place!

[armv6][APP][4.0+]Voice Search Wrapper for Google Now (Google Search)

Google Now voice input FC's (force-closes) on armv6 devices. Boo. Hiss. Part of the lib works, 'listen to tv' works.
Hotword detection is completely borked on armv6. Luckily you can turn it off in Google Settings after Now is installed or it'll FC like crazy too.
If you're into this kind of thing you may remember how cool it was when people got Google Now with Voice Search working for armv6 devices.
It doesn't work anymore on newer releases of Now.
The ics voice search assistant only works on Google Now (Velvet.apk) up to version 2.0 and Now is currently over v3.
So, I wanted to make something like the old search assistant for the current version of Google Now, since my lovely Optimus V obsolete phone is still kicking with Android 4.2.2 CM-11 unofficial.
I enjoy the voice controls. It's geeky. It's fun. It's somethiIng those uppity newer phone users lord over us cheapskates and diehards.
Even though Google Voice Search is froyo-era software, and online-only, it can still be used by Intent.
So...
I made an app. Widget actually. Press it, wait for the Voice Search box, and talk. It reroutes the transcript to Google Search (Now.) That includes OK Google commands, like 'call 555 555 1212' 'weather' etc. list of commands here and here
I couldn't get all the easter eggs to work, they may be in the hotword detector or libvcdecoder. Some do work though.
The talkback from Google Search still doesn't work with this gimmick. But you can talk into it at least.
This does not fix the mic icon on the Google search bar. Only allows a workaround for voice input via widget or long-press search key,
See this post to get around that.
Thanks again to Dovidhalevi for that tip.
Installation:
Get Voice Search on Play
get the apk from post 2, and install it.
If youve already got Google Now version 3.10 or higher sideloaded you can skip this next bit, go straight to fixing the Google Now settings.
I haven't been able to get either the launcher or Search to work installing from Play.
The Easy Way
Sideload the official apks from somewhere like androidpolice, and then you don't have to push anything to /data.
Here's the androidpolice 3.3 article with a download link.
The Harder Way
Get Now (and the launcher if you see fit) from the gapps here.
G Now is four files. /system/priv-app/Velvet.apk (chmod 644)
and three libs from /system/lib
libvcdecoder_jni.so, libgoogle_recognizer_jni_l.so, and libgoogle_hotword_jni.so (chmod 644)
(thanks to Dovidhalevi for pointing out the libvcdecoder.jni.so, I had missed that one.)
the launcher is /system/app/GoogleHome.apk (chmod 644) but it's not required.
you can 'adb install' Velvet, then adb push the three libs to /data/data/com.google.android.googlequicksearchbox/lib if you don't have space on /system.
Fix Google Search Settings!
once those files are installed,
1) immediately go into Google settings > Search & Now > Voice > "Ok Google" hotword detection, and turn it off.
2) Then back up one menu to Google settings > Search & Now > Voice, open Language and set it to something obscure like Hungarian (this avoids nasty FCs that happen to some users, thanks again Dovidhalevi for the tip!)
Important: If Search keeps closing on you, you need to make sure you changed the language in Google settings as listed in #2 from the previous paragraph.
If there's no setting to turn off hotword detection, the version is too old. try v3.10 or newer.
still get Search force closes? @rar**** posted a fix.
Usage:
The first time you run it there will (well, should) be a dialog asking what you want to use. Select Voice Search, Always.
(If there's not a dialog asking what to run for this action, go to Settings >Apps > Google Search and clear defaults. If that doesn't do it, clear defaults for Voice Search and VoiceSearchWrapper too.)
The widget can be activated by long-press search button. Another dialog should pop up. Select VoiceSearchWrapper, always.
Just tell it what to do, like after the hotword on a newer device. Instead of "Ok Google, weather" just say "weather."
This thread is to debug the apk. I've already gotten some great help from Dovidhalevi for the language settings, and Rar**** for the more comprehensive language workaround.
here is source, ADT project.
I know this doesn't match the template. I wanted to get source and binary UP though. I'll prettify this later.
known glitches:
Voice responses don't work (Search doesn't talk back to you, and the nonfunctional Easter eggs are talkbacks.)
'navigate to <location>' opens a web search for the text. Pressing enter in the search box corrects it to offer the Navigation app correctly targeted. ???
//edit: sideloading the apk from androidpolice instead of using the one from pa_gapps fixes this specific issue.
tested to function on:
lg optimus one,s,v cm11
galaxy mini cm10.1 (thanks damopi95 for testing)
Click to expand...
Click to collapse
XDA:DevDB Information
Voice Search Wrapper for Google Now voice commands on armv6, App for the LG Optimus One P500
Contributors
bigsupersquid, google, stackoverflow.com
Version Information
Status: Testing
Current Beta Version: 1.0
Beta Release Date: 2014-04-07
Created 2014-04-07
Last Updated 2014-05-28
Download
APK here.
md5sum 1b3977dbfed9290edae950862d911d94
Current version 1.0
leaving feedback in the thread whether or not it works for you encourages development, expands the compatible device list, and keeps this alive in the search engines so other legacy device users can find it.
Reserved
Installed the wrapper app. Previously had the "on-line" voice search. BTW, this, along with Jeannie, etc., did work.
I did not get a dialog but got the voicesearch speak box immediately. Google search FC.
Running voicesearch itself similarly voice search FC. Did work before.
Jeannie still works.
This is off a Play store version of Google Search. Even if I simply place that velvet.apk in priv-app and symlink the libraries, there is still no room. I have 14meg free on system. Most of us trim less from the ROM so have even less available. The velvet.apk it itself 17meg. The libs, another 17meg but I have symlinked those off in the past. Were those libs compiled for armv6 (They are not opensource, usually come precompiled for armv7)?
The Velvet.apk is actually quite good in that it has the language models on it. Versions for our device will not let us download them. But this, along with the launcher being included, makes it too big. Play versions install as user app, include the recognizer lib inside (for armv7). Must be sideloaded.
I sideloaded the Velvet.apk
Pushed the libs to sd-ext, symlinked to /system/lib
Still does not work but will check after reboot.
P500 users will be very unlikely to get this stuff installed on /system/priv-app. BTW, no interest in "Ok Google," which would simply deplete the battery were it to work at all. BTW, Google will probably bump the app off Play unless the title gets changed--did that to the original ICS widget.
Dovidhalevi said:
Installed the wrapper app. Previously had the "on-line" voice search. BTW, this, along with Jeannie, etc., did work.
I did not get a dialog but got the voicesearch speak box immediately. Google search FC.
Running voicesearch itself similarly voice search FC. Did work before.
Jeannie still works.
This is off a Play store version of Google Search. Even if I simply place that velvet.apk in priv-app and symlink the libraries, there is still no room. I have 14meg free on system. Most of us trim less from the ROM so have even less available. The velvet.apk it itself 17meg. The libs, another 17meg but I have symlinked those off in the past. Were those libs compiled for armv6 (They are not opensource, usually come precompiled for armv7)?
The Velvet.apk is actually quite good in that it has the language models on it. Versions for our device will not let us download them. But this, along with the launcher being included, makes it too big. Play versions install as user app, include the recognizer lib inside (for armv7). Must be sideloaded.
I sideloaded the Velvet.apk
Pushed the libs to sd-ext, symlinked to /system/lib
Still does not work but will check after reboot.
P500 users will be very unlikely to get this stuff installed on /system/priv-app. BTW, no interest in "Ok Google," which would simply deplete the battery were it to work at all. BTW, Google will probably bump the app off Play unless the title gets changed--did that to the original ICS widget.
Click to expand...
Click to collapse
Thanks for the feedback.
Didn't plan to Play store this one, it's too hacky anyway. Hopefully they won't bump the beta but if they do I'll fix it.
The libs are armv7 but only parts of them are NEON or thumb2. So on my Optimus V (msm7627) the voice-recognition parts of those libs FC. The listen/broadcast to google server part of the recognizer lib seems to work though. (listen to TV finds the wrong shows but similar.)
without the hotword lib Now FC's even more than usual. With it installed but turned off there are no complaints in logcat about hotword.
After enough reboots my install of Now seems to have stabilized and doesn't FC very often unless I hit the mic icon by accident.
However, I am using the 'stock' pa gapps package except for the total unrunnables like chrome and the keyboard. ridiculous amount of system storage eaten up. Since I am running my whole phone except for the boot.img off my sd card storage space doesn't matter. So I hadn't tried the sideloaded .apk since moving past Velvet 2.0 and didn't realize it'd FC instead of running.
Though, your post in the ROM thread indicated you've had issues with Now being a FC-ing beast anyway even on text searches? I rarely ever have had it crash on text searches.
I will have to test sideloading the apk now.
//edit: yes, sideloading the apk from the gapps then pushing the two libgoogle_* libs to /data/data/com.google.android.googlequicksearchbox/lib works for me. Didn't even have to reboot.
My widget doesn't show anything before popping up voice search, unless search initializes slowly, then you see the 'voicesearchwrapper' dialog box for a sec.
All it's meant to do is pipe the text output from Voice Search into Now.
Also, to get the Android system selection box for what handles voice input for what function, I had to uninstall and reinstall Voice Search. Since you've already got different defaults selected I can imagine why it wouldn't hook right.
bigsupersquid said:
Thanks for the feedback.
....
Though, your post in the ROM thread indicated you've had issues with Now being a FC-ing beast anyway even on text searches? I rarely ever have had it crash on text searches.
I will have to test sideloading the apk now.
Click to expand...
Click to collapse
How do you run everything of sdcard? Using that OSD Rom? I might think that an sdcard is a bit slow for system but never noticed any lags from link2sd's placements on the sdcard.
See how you make out with a sideload, maybe there is a workaround? No way for most of us to shove this onto /system/priv-app.
BTW, there MAY be a way, sort of. The paid version of link2sd can symlink system dexes. But everything else still must fit on system. Symlinking dexes free a bit more /data space. Wondering about manually symlinking apps to /system/app and /system/priv-app. Unfortunately, kitkat ROMs do not necessarily respect such symlinks, possibly because built-in selinux policies (evidenced in file_context) do not include references to the target placements. This may be why I cannot upgrade omni sanely.
Dovidhalevi said:
How do you run everything of sdcard? Using that OSD Rom? I might think that an sdcard is a bit slow for system but never noticed any lags from link2sd's placements on the sdcard.
See how you make out with a sideload, maybe there is a workaround? No way for most of us to shove this onto /system/priv-app.
BTW, there MAY be a way, sort of. The paid version of link2sd can symlink system dexes. But everything else still must fit on system. Symlinking dexes free a bit more /data space. Wondering about manually symlinking apps to /system/app and /system/priv-app. Unfortunately, kitkat ROMs do not necessarily respect such symlinks, possibly because built-in selinux policies (evidenced in file_context) do not include references to the target placements. This may be why I cannot upgrade omni sanely.
Click to expand...
Click to collapse
I run everything off the card with a modified boot process. But unlike Multirom or linking, it's stock Android code that does it for me now.
fstab.thunderc calls out /system and /data with "EMMC" mmcblk partitions and init.thunderc.rc does a 'mount_all /fstab.thunderc'... which requires replacing the qcom.init.rc direct MTD mount commands with comments. My system partition is currently 1GB and it's using well over 400MB of that. Antutu, quadrant, and linpack show no major speed differences from running off card. Class 4 16GB, class 10 8GB, class 2 4GB, all have worked for me. Biggest problem, one user had their only sd card fail while installed and recovery wouldn't sideload flash another zip without a card. Required adb and flash_image with internal system.img and boot.img pushed to /data to fix.
The internal MTD /system partition is only 165MB (157 on the Optimus S!) and it just barely holds kitkat with any features. I made a ROM version for it because people are more comfortable with that than my experimental version, but I don't use it myself. It works, but I hate dealing with linking and other methods of faking out Android because my phone has puny internal storage capacity. Multirom was cool, it was similar in that it mounted the external filesystems before booting, so Android didn't see anything funny going on. That stopped working for me with ICS.
Our devices are very similar. I've ported software over, and, um, borrowed, the p500 androidarmv6 3.0.8 kernel code for the VM670. The same trick should work if you'd like to try it.
To avoid too much off-topic, I'd be happy to discuss an easy (zip flash and adb shell cp -a) way to test the method on your device off in another thread somewhere.
I will check on the sideloading since not many armv6 users have enough system space. Most likely the one in the gapps will still sideload and the libs can be manually copied into /data/data/com.google.android.googlequicksearchbox/lib afterwards.
edit: yes, sideloading and pushing the libs there worked for me. Once. Then a FC every time it's opened. Same with android police version 3.3 apk.
I will examine my logs. Thanks for the pointer.
@Dovidhalevi
the force closes appear to be from the hotword not being disabled in google settings>voice>hotword
I had the same issues you reported from sideloading until I went into those settings and disabled the hotword.
It's actually mentioned in the OP but now I'll stress it's important there
bigsupersquid said:
@Dovidhalevi
the force closes appear to be from the hotword not being disabled in google settings>voice>hotword
I had the same issues you reported from sideloading until I went into those settings and disabled the hotword.
It's actually mentioned in the OP but now I'll stress it's important there
Click to expand...
Click to collapse
Hotword will cause numerous FCs. I turn it off as fast as I can. Once off, Google Search will remain stably, show cards, etc. FCs with inputs as described. Hotword not the issue.
Dovidhalevi said:
Hotword will cause numerous FCs. I turn it off as fast as I can. Once off, Google Search will remain stably, show cards, etc. FCs with inputs as described. Hotword not the issue.
Click to expand...
Click to collapse
it seems like your system is using the wrong default app for voice. maybe if you went into apps under settings and clear defaults for a Google search voice search and voice search wrapper then you should get the default dialogs.
//edit: Thanks for the PM about how you got it working! I have added the info about the extra lib and the langauge settings to the OP and credit.
Thanks a lot for the source. Just asking for permissions. Can I use it in my ROM?
I know but still asking for conformation
rhar**** said:
Thanks a lot for the source. Just asking for permissions. Can I use it in my ROM?
I know but still asking for conformation
Click to expand...
Click to collapse
certainly.
a link to the original here or github as a credit would be cool but not required...
as you inferred, the point to sharing source is to allow free use.
thanks for asking though.
If Google Now is already installed, is it possible to just push the lib files? or should I uninstall Google Now, Search, and Launcher and proceed with the steps posted on OP?
ruelericsapalaran said:
If Google Now is already installed, is it possible to just push the lib files? or should I uninstall Google Now, Search, and Launcher and proceed with the steps posted on OP?
Click to expand...
Click to collapse
if Now is already installed all you need to install is Voice Search and the widget.
Clear defaults in Google Search after installing the other two and you should get the default dialogs to finish setting it up.
I will add this to the OP since I hadn't considered it.
bigsupersquid said:
if Now is already installed all you need to install is Voice Search and the widget.
Clear defaults in Google Search after installing the other two and you should get the default dialogs to finish setting it up.
I will add this to the OP since I hadn't considered it.
Click to expand...
Click to collapse
When you say "widget" you mean the wrapper apk, right? Also, what do you mean when you say "clear defaults in Google Search", because as I check Google Settings>Search & Now, there's no option to clear defaults.
ruelericsapalaran said:
When you say "widget" you mean the wrapper apk, right? Also, what do you mean when you say "clear defaults in Google Search", because as I check Google Settings>Search & Now, there's no option to clear defaults.
Click to expand...
Click to collapse
Yep, the VoiceSearchWrapper.apk is the widget.
As far as settings,
(If there's not a dialog asking what to run for this action, go to Settings >Apps > Google Search and clear defaults. If that doesn't do it, clear defaults for Voice Search and VoiceSearchWrapper too.)
Click to expand...
Click to collapse
bigsupersquid said:
Yep, the VoiceSearchWrapper.apk is the widget.
As far as settings,
Click to expand...
Click to collapse
Done clearing defaults but still getting Google Search FC
ruelericsapalaran said:
Done clearing defaults but still getting Google Search FC
Click to expand...
Click to collapse
Did you set the language to Hungarian like I was told had to be done sometimes?
By the way, I am using your troubles to clarify the OP. Keep me posted, please. And I may need a logcat to check exactly what is happening if it can't be easily trouble(shooted? shot?) through trial and error.
bigsupersquid said:
Did you set the language to Hungarian like I was told had to be done sometimes?
By the way, I am using your troubles to clarify the OP. Keep me posted, please. And I may need a logcat to check exactly what is happening if it can't be easily trouble(shooted? shot?) through trial and error.
Click to expand...
Click to collapse
Okay. The thing I did not find the "Ok Google" hotword detection" option in my Google settings. I'm not sure if this would mean I have to re-install again? Or should I just clear data and cache of the 3(Now, Search, GNL)?
ruelericsapalaran said:
Okay. The thing I did not find the "Ok Google" hotword detection" option in my Google settings. I'm not sure if this would mean I have to re-install again? Or should I just clear data and cache of the 3(Now, Search, GNL)?
Click to expand...
Click to collapse
older versions of Search don't have the needed setting. what version is yours? the one I currently have installed is 3.3.10
looks like I should determine what the earliest version is with that setting.

Google Voice search widgets FC after updating

I havent facing the issues before
Today I update to the latest version of Google Search 3.4.16 it will fc but use bundle voice recognization there where no wrong
What is the reason cause this problem??
Are you serious? You create fixes but can't post in the right forum?
Sent from my OmniROM-powered LG Optimus 4X HD
The fix is work(which I posted in omni discussion already)
(but that is not my main point in this thread....)
Current situation is...
My Problem is after applying the fix and updating to the latest version of both google search and google now launcher.it will fc when you doing the voice search using google search apk
not working when you updated to the latest version of google search 3.4.16 (so we can't update it.... otherwise will get fc always....)
Before that even I have been flashed the non-neon gapps or self-modified gapps package I still can update both laucher and search to the latest version through google play store and nothing error happen)
On the other hand, due to lack with my knowledge,
I can't do to much modified of the apps,We need genius guys to help us for fixing it completely(just like you)....
I still don't know why it will fc....(the wearied thing is if you are using voice search in google search widgets the,google search voice recognization still can recognize our voice and the words but after a few second it will terminated or saying google search has been stop working cannot show the search page directly )
if you are using keyboard to activated the voice typing or other apps (google play voice search area) related to the google search voice recognize,it will not get any fc and working properly
I have try many method(replace all lib which using by google search with non neon,pa gapps lib,change apk)
it only work on not doing updating also the apps should stay at the factory default(uninstall any update)
Here is my Logcat
Adam hope you can give me some clue on how to fix...

Categories

Resources