yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] vurp0:
Is this just an unmodified Velvet.apk from JB?

Edit: And is it OK to modify the minSdkVersion in the AndroidManifest.xml with apktool? Or will that break stuff?
[HTC Sensation] bassie1995:
Yes. However, it should also be solvable from the app's side, i.e. by changing the usesMinSdkVersion in the AndroidManifest.xml.
[HTC Sensation] mike.b93:
I'll try to push some libs from a working jb port over to my system/lib . Let's see what i can find out even though im not a dev and i have not much knowledge of this
[HTC Sensation] oscarba:
I run Virtous Inquisition and works fine...
[HTC Sensation] Albinoman:
Guys i pulled a logcat of the voice search failing and here is whats causing it. W/PackageManager(190): Not granting permission com.google.android.voicesearch.AUDIO_FILE_ACCESS to package com.google.android.googlequicksearchbox (protectionLevel=2 flags=0x18be45)
[HTC Sensation] THEindian:
Hmm, would a root elevation fix that?
[HTC Sensation] jolo72:
I am. using theos.
[HTC Sensation] Albinoman:
Maybe...im looking into it right now.
[HTC Sensation] Jiggs82:
Good luck guys on fixing the voice search :)
[HTC Sensation] ziggy34:
Should be a menu setting where the arrow is.
[HTC Sensation] ens1:
I just gave the velvet apk r/w permissions and it still failed.

I may have done it wrong though
[HTC Sensation] dellmelo:
all I got is as soon as I click the mic icon:

""Didn't catch that. Try speaking again".

"RETRY"

I'm in Brazil. Maybe it works only in US for now?
[HTC Sensation] core720:
Error ...

I did not understand. Try Again

---------- Post added at 06:46 PM ---------- Previous post was at 06:45 PM ----------

Like
[HTC Sensation] mike.b93:
PEEEOOOPLLEEE!!! PLEASE READ THE THREAD! VoiceSearch not working was mentioned a billion times now!! People are working on this!
[HTC Sensation] icechen1:
Gonna try this. Words cannot express how much I thank you if this works!
[HTC Sensation] casrocks:
I think the reason voice isn't working might be because in jb voice to txt has been brought offline and stored locally.. it might help if we find a way to retrieve that library :/

I'm no dev, but it would make sense that that transition would cause voice issues
[HTC Sensation] G1-evolve:
this ^ :good:
[HTC Sensation] mike.b93:
It would help (me) to know, what files are responsible for the offline voice recognition
[HTC Sensation] jsgraphicart:
Just don't try it and tell us voice search isnt working. lol

---------- Post added at 02:55 PM ---------- Previous post was at 02:53 PM ----------

Are you sure the Jelly Bean voice search ONLY does offline stuff? I thought that was a backup for when you didnt have a connection. I thought it still worked with data connection but I'm not sure.
[HTC Sensation] samvillian:
voice isn't working.

:D
[HTC Sensation] jolo72:
I could only get voice to work at the summit of Everest.
[HTC Sensation] THEindian:
This guy is probably right, your phone prefers sending it to the cloud because it can be better analyzed. Local voice is a backup. If you do need the ofline voice, a dummy app should be pretty easy
[HTC Sensation] Protricity:
won't install on cm9 doubleshot
[HTC Sensation] antonio1475:
Written commands (set alarm, weather) working?

Some (many) people deserve a medal for being so intelligent that they don't see on every freaking page of this thread that Voice isn't working (reminder to the next reading if he is able to read) so they post it again, just in case someone forgot... :mad:

I have a question for you guys using this app. Do the commands (set an alarm, remind me..., what's the weather in...) work at all as shown in the JB videos of voice commands, when you write them here with keyboard (since voice doesn't work)?

I can't get a single demonstration of the usual "what's the weather in, set an alarm, how tall is whoever,...). I guess they only work with voice and/or Jelly Bean system, but just wondering since the OP has a screenshot of the weather and it looks like he wrote it (I guess so, with no voice).

:)
[HTC Sensation] jsgraphicart:
I tried out "Play 'insert band name here'" and it recognized it as a command and went to play it.
[HTC Sensation] casrocks:
You could be right, but it was my understanding they took it offline to improve performance and speed of voice recognition. And it would send the analysis of the search to Google secondarily or like in a sync
[HTC Sensation] antonio1475:
Can you try "set an alarm, what's the weather in...[and not have the standard google web result, but an actual new Google Now result, remind me, open xxxapp," and let me know if works?

:)
[HTC Sensation] FifteesGlasses:
I am using a Doubleshot with CM9

Did you follow the directions on the first post? It installed fine for me.
[HTC Sensation] RIVANH:
HERE IS THE LINK https://docs.google.com/file/d/0B25-NKQfoiR-UkZPVjRpdjBHSnM/edit?pli=1
[HTC Sensation] jsgraphicart:
Just typed in "set timer for two minutes" and it worked.

---------- Post added at 03:12 PM ---------- Previous post was at 03:10 PM ----------

What is the difference between this apk and the others? I noticed its named different.
[HTC Sensation] shahkam:
I installed it and it worked great few first minutes after it made my youtube app fc as soon as i open it then i tried the search app didnt work...

Sent From My Sexy Sensation Running Aokp.
[HTC Sensation] antonio1475:
LOL then I'm doing something wrong. You are typing it, right? :rolleyes: I'm going to test the 2 apk's and I don't know what I have wrong... It's "working"

Thanks anyway for clearing things up :)
[HTC Sensation] slitex:
i wonder could these files have something to do withit??

libpatts_engine_jni_api

And also: The Search engine retrieve knowledge from the knowledge graph, of coursefrom internet..

look at this http://cnettv.cnet.com/google-redesigns-mobile-search/9742-1_53-50127009.html
[HTC Sensation] jsgraphicart:
Yes, I typed it. As far as I know, the apk in the OP works worse than the one upload later. I forget what post that was but it fixed the network error problem and was able to display cards.

The OP needs to update the first post.
[HTC Sensation] irishmyles003:
Alarm notifications are working for me. Tested a few and so far so good. Playing music by artist works.
[HTC Sensation] mike.b93:
I got it so far, that it says "initializing" and doesn't abort but i still can't get any voice input...

I pushed the app VoiceSearchStub.apk and rebooted. also i pushed libvoicesearch.so libvorbisdec.so and some other libs which didn't make a difference before
[HTC Sensation] antonio1475:
Found the issue: Language.

My phone is in Spanish, so it won't recognize the commands in Spanish nor in English, so kind of useless, just a cool Google Search app.

Changed to English USA, and now typed commands working. So we are back to having the phone in English again.

EDIT: Yeah I have the second theos0o version, the "fixed one" whith cards. It was all about the language settings. Now working

:)
[HTC Sensation] Pekempy:
Once someone gets the voice search working, would it be possible to make a flashable zip?

(will it edit build.prop and rename the other APK and change ro.build.version.sdk back again? I'm not sure if it's possible or what :P)
[HTC Sensation] Rusty!:
From a glance at my logcat, it looks like the app is asking for permissions that don't exist, so maybe JB has some new ones that it can use.
[HTC Sensation] core720:
Is only compatible with English or Spanish well with?
[HTC Sensation] antonio1475:
A minute ago I discovered that the commands (set an alarm and all that stuff) only work if the phone is in English. If it's in Spanish, it won't recognize the orders written in Spanish nor in English (weird).

:)
[HTC Sensation] virjog:
How did you fix your problem? My phone (T-mobile SGSII) doesn't boot either!
[HTC Sensation] mike.b93:
W/PackageManager( 154): Not granting permission com.google.android.providers.settings.permission.READ_GSETTINGS to package com.google.android.googlequicksearchbox (protectionLevel=2 flags=0x18be45)
W/PackageManager( 154): Not granting permission com.google.android.providers.settings.permission.WRITE_GSETTINGS to package com.google.android.googlequicksearchbox (protectionLevel=2 flags=0x18be45)
W/PackageManager( 154): Unknown permission com.google.android.voicesearch.SHORTCUTS_ACCESS in package com.google.android.googlequicksearchbox
W/PackageManager( 154): Not granting permission com.google.android.voicesearch.ACCESS_SETTINGS to package com.google.android.googlequicksearchbox (protectionLevel=2 flags=0x18be45)
W/PackageManager( 154): Unknown permission android.permission.READ_EXTERNAL_STORAGE in package com.google.android.googlequicksearchbox
W/PackageManager( 154): Not granting permission com.google.googlenav.friend.permission.OPT_IN to package com.google.android.googlequicksearchbox (protectionLevel=2 flags=0x18be45)
W/PackageManager( 154): Not granting permission com.google.android.apps.maps.permission.PREFETCH to package com.google.android.googlequicksearchbox (protectionLevel=2 flags=0x18be45)
W/PackageManager( 154): Unknown permission com.google.android.apps.googlevoice.permission.AUTO_SEND in package com.google.android.googlequicksearchbox
W/PackageManager( 154): Not granting permission com.google.android.gm.permission.AUTO_SEND to package com.google.android.googlequicksearchbox (protectionLevel=2 flags=0x18be45)
W/PackageManager( 154): Not granting permission com.google.android.voicesearch.AUDIO_FILE_ACCESS to package com.google.android.gm (protectionLevel=2 flags=0x9be64)

Permissions are not granted and the permission "READ_EXTERNAL_STORAGE is new in Jelly Bean, so its not available in ICS

for the rest i don't know what this means yet.

Any devs around?
[HTC Sensation] slitex:
Listen upp ya all now.. Google Now is only the cards and notification function, Voicesearch is a different engine, so we are probably missing 75% to get it fully functional.. listen to what google says in this clip http://cnettv.cnet.com/google-redesigns-mobile-search/9742-1_53-50127009.html
[HTC Sensation] Timbitman1:
Touchpad Running CM9 Nightlies

Noob here------------- I installed it, it works but when I ask it (typing) a question it just gives me the answer, no google search under, no picture beside the answer. Is anyone else having this problem? is it a setting I haven't seen... I also can't seem to find the main google now screen, just a white screen with a search bar at the top
[HTC Sensation] mike.b93:
I'm trying to get all the neccessary VoiceSearch files but i guess i'm still missing things. I don't have enough knowledge for this i guess -.-
[HTC Sensation] jsgraphicart:
For the actual main Google now screen, select the app in the app drawer labeled "Google"
[HTC Sensation] urko95:
As I can see SHORTCUTS_ACCESS and AUTO_SEND are unknown too so, they're not available in ICS too... I'm a young (16) and new developer so, I can't help you in more things...

EDIT: It's like it's not granting permission, have you try fixing permissions?

Regards,

Urko
[HTC Sensation] mike.b93:
Well, I am NO developer so i actually don't know what I am doing haha
[HTC Sensation] ens1:
Nothing, its just a mirror.
[HTC Sensation] Timbitman1:
I've looked there, but I merely get the search bar and nothing else.
[HTC Sensation] bassie1995:
I looked it up: http://developer.android.com/reference/android/Manifest.permission.html

While mike.b93's guess is a permission, and a new one from JB, your two aren't. As the package name preceding them seems off to me, I guess that Google wrote a sort of non system-wide permissions?
[HTC Sensation] rehmankhan101:
not working on RootBox 1.4 cloud problem:(
[HTC Sensation] iamanalog:
I just got an error when attempted to open search from the homescreen via the search bar.

2012-07-03 19:01:53.040 E 4102/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoSuchMethodError: android.view.View.setBackground
at com.google.android.velvet.tg.SuggestionGridLayout$StackGridItem.updateItemBackgrounds(SuggestionGridLayout.java:1190)
at com.google.android.velvet.tg.SuggestionGridLayout$StackGridItem.<init>(SuggestionGridLayout.java:1101)
at com.google.android.velvet.tg.SuggestionGridLayout.addStackToColumn(SuggestionGridLayout.java:497)
at com.google.android.velvet.ui.SuggestFragment.showPredictiveCardsFromData(SuggestFragment.java:228)
at com.google.android.velvet.presenter.TgPresenter.populateView(TgPresenter.java:623)
at com.google.android.velvet.presenter.TgPresenter.buildView(TgPresenter.java:441)
at com.google.android.velvet.presenter.TgPresenter.maybeInitPredictiveCards(TgPresenter.java:210)
at com.google.android.velvet.presenter.TgPresenter.onResume(TgPresenter.java:180)
at com.google.android.velvet.ui.VelvetFragment.onResume(VelvetFragment.java:278)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:873)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
at android.app.BackStackRecord.run(BackStackRecord.java:622)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382)
at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:437)
at com.google.android.velvet.ui.VelvetActivity.setFragments(VelvetActivity.java:559)
at com.google.android.velvet.presenter.VelvetPresenter.updateMode(VelvetPresenter.java:548)
at com.google.android.velvet.presenter.VelvetPresenter.enterPendingMode(VelvetPresenter.java:428)
at com.google.android.velvet.presenter.VelvetPresenter.notifyFragmentsAndEnterPendingMode(VelvetPresenter.java:414)
at com.google.android.velvet.presenter.VelvetPresenter.access$200(VelvetPresenter.java:98)
at com.google.android.velvet.presenter.VelvetPresenter$3.run(VelvetPresenter.java:211)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4575)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)

2012-07-03 19:01:53.040 W 1825/ActivityManager: Force finishing activity com.google.android.googlequicksearchbox/.SearchActivity
2012-07-03 19:01:53.260 D 4102/dalvikvm: GC_CONCURRENT freed 3249K, 46% free 6680K/12359K, paused 3ms+3ms
2012-07-03 19:01:53.541 D 1257/AudioHardwareMSM7X30: AudioStreamOutMSM72xx::standby()
2012-07-03 19:01:53.541 D 1257/AudioHardwareMSM7X30: Deroute pcm out stream
2012-07-03 19:01:53.551 E 1257/AudioHardwareMSM7X30: updateDeviceInfo: E rx_device 6 and tx_device 11
2012-07-03 19:01:53.551 D 1257/AudioHardwareMSM7X30: No active voicecall/playback, disabling cur_rx 6
[HTC Sensation] bassie1995:
Do you have this more often? Seems like a glitch.
[HTC Sensation] aman1127:
I get that too, just tap the blank area and the cards should come up. If not close the app then restart it from the drawer
[HTC Sensation] aman1127:
Btw, voice search won't work! Jk, I read the op
[HTC Sensation] jsgraphicart:
A developer of the phone I have had this to say of the problem. " The AMR codec works when recording voice, but not when you speak to it in Google Now."
[HTC Sensation] Haizum74:
Voice search isnt working people. Its a known issue, repeat, its a known issue, thats an issue that people are aware of and working on. NOT to do with where you are. You do not need to repeat that it isnt working in every post.

Thanks............Normal service will resume in 3....2.....1
[HTC Sensation] rainabba:
Somewhat works with Sense

I'm running RezRom 3.4 on a Rezound (Android 4.0.3 ICS / Sense 4.0) and the app works with the exception of Voice Recognition. In fact, I can't even use my KB voice recognition so I have to type in all my queries/commands.

It's major progress still. Thanks to the op!
[HTC Sensation] -juanito-:
doesn't working here..ParanaroidAndroid ROM
[HTC Sensation] urko95:
Sorry, I'm saying that because it's says that it's unknown... I don't know about permissons, I was sharing what I know and I'm trying to help, no more...

Thanks anyway mate!

Regards,

Urko
[HTC Sensation] PooN_HeaD:
well everything's working as its supposed to. but quick question,

anybody know how to change the weather to F°. mine is set on C° and its not what I want at all ahahaha.

T-Mobile G2

.19 radio

Flinny's test build 99
[HTC Sensation] kooka42:
worked for me too

thx
[HTC Sensation] iamanalog:
It seems to happen often now, along with the search locking up on new saerches.

Here is the latest logcat http://pastebin.com/2nb9rsnR
[HTC Sensation] wildside84:
Got it to work...kinda on cm9 on epic touch 4g. It's very iffy. When i hit the search button i get a toast notification saying network error and won't work and Google now will be blank but if i play with it it'll work and give me search results. Weather comes in Celsius though.
[HTC Sensation] averymlewis:
I know this may sound obvious but can anyone with a Galaxy Nexus with Jelly Bean see what exactly the app is doing to function.
[HTC Sensation] iamanalog:
anyone know what the timeframe it takes to get a decent picture of a person? and also has anyone been able to add a team to the sports section?
[HTC Sensation] nightranger73:
Don't think they'll solve that easy. Voice recognition on Google now requires API level 16

So unless you port almost all jb framework it won't work on ics

Inviato dal mio HTC One X con Tapatalk 2
[HTC Sensation] minous2:
hi every one

i installed the app according to the instructions now im getting can't catch message as soon as i open google now is there any solutions yet thanks for the help guys
[HTC Sensation] mike.b93:
You don't even bother reading 1 page, do you?
[HTC Sensation] capitanlerry:
When I open the app it shows an error of internet connection, but the phone is connect with the wifi.

I reinstall the app but the problem isn't solved.

Solution?

Thanks for your work!

______________________________________________________________________

Ok guys, the solution for internet connection is on #111 post http://xdaforums.com/showpost.php?p=28228405&postcount=111

7 steps to get google now:

1 - Edit ro.build.version.sdk=16

2 - Rename GoogleQuickSearchBox.apk to GoogleQuickSearchBox.apk1

3 - reboot

4 - Download here the apk and install http://d-h.st/GZ1

5 - Change ro.build.version.sdk=15 and reboot

6 - Download this apk http://www.mediafire.com/?u09rrb81ju6bkp7 thanks to theos0o

7 - Put the apk to /System/App and rename to Velvet.apk and change the permission to rw-r--r--

Now google now should be perfect!

Thanks to febycv and theos0o
[HTC Sensation] blackwing182:
the app will probably asking for permissions in framework.jar or in services.jar.

wee need to check libs and system/etc permissions form a galaxy nexus rom
[HTC Sensation] Dabu3l:
Is nice. Good work guys. Works perfectly (obviously no voice). Look forward to further developments with the voice search.
[HTC Sensation] ens1:
I just changed roms.

Its working on paranoid android on my Incredible 2.
[HTC Sensation] goater1220:
I tried this and when I went into root explorer how do I edit. I tried to long press and nothing. Thanks in advance
[HTC Sensation] Kevets:
Long press is correct.
[HTC Sensation] harro112:
Hi all,

So the cards are now displaying for me, but I can't actually perform any searches (just regular searches, I've read the whole thread and am well aware voice search doesn't work). If I hit the search bar and type in a query nothing happens.

Here are the steps I took:

- changed the sdk to 16

- renamed GoogleQuickSeachBox.apk

- rebooted

- installed Velvet.apk from my SD card via Root Explorer

- changed the sdk back to 15

- rebooted

- got the network error upon opening

- copied the theos apk to /system/app, renamed to Velvet.apk, changed permissions to rw--r--r-- or whatever all the other apks are

- rebooted

So now I don't get the network error anymore, but I can't yet perform a normal search. Anyone got any ideas? Tried clearing the app data for google search, rebooting, etc. No luck. Thanks for reading :)
[HTC Sensation] goater1220:
I tried that and nothing happend
[HTC Sensation] harro112:
Nothing is happening when you long press on a file in Root Explorer? An "Options" menu should come up with Open With, Delete, Rename, etc.

You could try using ES File Explorer.
[HTC Sensation] omar300:
doesnt work for me. help.

so i tired on galaxy s3 running custom rom diet ics and nova laucher.

Now the problem is that it opens and when i press button for it to listen it listens for a milli sec and says it didnt catch that.

meaning its not listening for long enough.

i know you said specifically mentioned one rom but could it run on this rom as well?
[HTC Sensation] ens1:
Okay, I got the JB market APK and installed it. Then I updated voice search. That didn't work.:crying:
[HTC Sensation] caketime:
can no one read the thread for 2 f'n seconds? Voice doesn't work, it is an api problem, currently be looked at.
[HTC Sensation] bwbieber:
I am having the exact same issue. Would love to have this sorted out.
[HTC Sensation] snsd:
I followed the instructions of the OP in the first post. When I read the step "Now reboot & install the app from the download link," I did exactly that - i.e.

installed

the app instead of copying it to the system/app folder as nothing was mentioned about that in the original post - only later on.

How can I "uninstall" the .apk so that I can copy it to the system/app folder. When I try to copy "velvet.apk" to the system/app folder, I get an error "velvet.apk copy failed" in ES Explorer.

I'm a bit of a noob - but know my way around enough to be able to follow instructions. I scrolled through all 31 pages of posts in this thread to see if anyone else had the same question - but found nothing. (My only regret is not taking 2 minutes to do a ROM backup so that I could have just gotten back to where I was at the beginning.)

Thanks in advance for any assistance.

Dave
[HTC Sensation] Censura_Umbra:
Used an app and install method from another thread and now Cards are 100% working for me. Google Now works now, so it stalks my info lol. The only time I get an error is voice search, other than that it is perfect (except for an occasional force close) This is awesome, can't wait for CM10
[HTC Sensation] averymlewis:
Chill out a lot of people know voice doesn't work, but you're not helping the thread Reposting that it doesn't work. Anyway I'm still working on the audio however I'm not sure if its just me but does anyone have the colorful header where it says Google or is it just the tan header?
[HTC Sensation] mhamdy19:
Here is a download link from my google drive.

Enjoy :)

https://docs.google.com/open?id=0B80OPMRHYABZSmlaM0pyS2R2alU
[HTC Sensation] auralzx:
which thread might that be? please specify
[HTC Sensation] PooN_HeaD:
so no one knows how to make the weather Fahrenheit?

T-Mobile G2

.19 radio

Flinny's test build 99
[HTC Sensation] wallendiaz:
Hi guys,

I have this error when open Google Now, NETWORK ERROR. CHECK YOU NETWORK CONNECTION AND TRY AGAIN, and i just can use search bar without problems, but the others option i cant use it.:confused::confused:
[HTC Sensation] ens1:
A few pages back there is a post that has an API that fixes this. I think its post 111 but I'm not totally sure.
[HTC Sensation] Censura_Umbra:
With the app I used I have color and full card use.

http://xdaforums.com/showpost.php?p=28234189&postcount=142

You need to delete or change name of original search. (delete the velvet apk that you may have installed from this thread.) Then download that apk. Rename it as it states in the post. And then push it to system/app. After that set permissions to RW- r--r--. Then reboot! Everything should work except voice. including google now (how it updates you automatically on weather and traffic.

ALSO! no need to change the buildprop for this install. Just leave it set to 15.

If you do as I said above you will have a new option in settings called google now I think. In their you can change the degrees.
[HTC Sensation] ooie_:
Worked well on my Galaxy S2 running Ressurection Remix 2.5.2

Thanks OP!
[HTC Sensation] jaylim12:
Everything work on HTC Desire except for the voice search. But it's good enough. :)