| || |
Google Now for ARMv6 [TROUBLESHOOTING]
Lenny_kano, over at XDA Developers has found a way to get Google Now (velvet.apk) to properly work on any ARMv7 device. Voice search (with the new robust voice talkback) and text search fully works 100% with some users reporting very minor errors in terms of some things not working correctly or not working automatically. Well it has been pretty much stated that his package only works for ARMv7 and I was wondering if the awesome devs here on this forum would lend a hand in attempting to get this to work across ARMv6 devices, such as our Optimus V.
Lenny_kano stated he perform smali edits on the apk after decompiling it and had updated code to work with some of ICS mic and audio sources (I am not 100% fully what he had edited). He stated he also was not pursuing to fix it for ARMv6 so this is where I was wondering if anyone would be interested in taking his work and getting it compatible for our phones.
In the case of the 22MB en-US offline recognition folder(system/usr/srec) which is located in the LennoxPackage below, I was able to symlink the folder from /sd-ext/system/usr/srec to /system/usr/srec after removing the original srec folder from /system. The symbolic linked folder then appeared under /system/usr/srec and I even went to see if the offline recognition pack was being identified as installed, and it was (by creating a shortcut of the greco.languagepack activity). This way this massive folder fit our devices technically, since we have low system storage.
Feel free to comment an share your thoughts on hopefully getting this to work like it is on ARMv7!
XDA Thread Link: Google Now for ICS Project
YOU MUST BE ON ICS (Ice Cream Sandwich-Android 4.0) OR HIGHER TO ATTEMPT THIS!!!!
Flashable Installation (via recovery) (updated 8/15/2012)
Download either the offline pack or online only recognition pack
Google Now Flashable with Offline Recognition-Mikey v6 (36.4MB)
Google Now Flashable with Online Recognition Only-Mikey v6 (14.01MB)
post courtesy of XDA user, cajunflavoredbob, zip file made by Mikeyxda
You do not need to wipe cache/dalvik to flash either zip. You may however want to flash this with a newly flashed ROM, after flashing the ROM and gapps. Flashing either zip will not entirely place all files into /system due to low available system memory. So flash first, symlink the /srec folder, and double check for any missing files before attempting to post errors!
Manual Installation (via file explorer with root access) (updated 8/2/2012):
Download the following:
1.Lennox Package (.zip): Full installation package (THIS IS NOT FLASHABLE)
After downloading this, download his newest velvet.apk and replace this apk in the lennox package in the app/ folder
3.Delete or change GoogleQuickSearchBox.apk in /system/app to GoogleQuickSearchBox.bak
4.Copy over the entire Lennox Package folder to your sdcard.
5.Copy GoogleTTS.apk, voicesearchstub.apk, and velvet2.apk(does not need to be renamed) into /system/app and set permissions for each to -rw-r-r (using your file explorer)
6.Copy all .so files from the lib folder to /system/lib and set permissions for each to -rw-r-r
7.Go to /system/usr/srec and copy it to either your /sdcard or to /sd-ext and rename it to oldsrec (or whatever)
8.Go to /sd-ext. Create a 'system' folder. Then copy from the lennox package the /usr folder into /sd-ext/system.
This last step is for if you want to symlink the sd-ext/system/usr/srec folder to /system/usr/srec (which in most OV ICS roms there is not enough system storage to place the entire folder into)
9. I used terminal emulator for this last step. You can use adb but I am unsure about the entire steps. Enter the following (You must be ROOTED):
10.Go to /system/usr/srec and you should have 2 folders showing up. One being /config another being /en-US if done correctly.
rm -rf /system/usr/srec
ln -s /sd-ext/system/usr/srec /system/usr/srec
11.Reboot and test
Current App State(Mikeyv6 flashables) (as of 8/15/2012)
Currently, you can enter the app via the 'Google' icon on the search bar and can complete the first time setup. Afterwards, the app force closes either using 'Google' icon, opening the 'Google' app, or using the mic icon.
I am not responsible if this damages or bricks your phone. The steps I have provided were steps that I have taken before this post.