Google Search APK can not work on android 4.2

问题描述:google search apk will crash when clicking the microphone button to run the voice search.It is installed by adb install.

  The tested apk provided by customer maybe does not match with android 4.2.

   It will report the below error. Seems that the apk missed the hotword library.

-------------------------------------------------------------------------------------------------------------------------------------------------

I/VS.Container( 7471): create_speech_recognizer
I/ActivityManager( 3195): isolated = false,  procname = com.google.android.googlequicksearchbox:search
I/System.out( 7471): Found 5 addresses to connect to, out of which 0 are on Ipv6
D/dalvikvm( 4232): GC_CONCURRENT freed 133K, 43% free 2847K/4920K, paused 3ms+17ms, total 133ms
E/HotwordRecognitionEngn( 7471): Failed to load hotword library
E/HotwordRecognitionEngn( 7471): java.lang.UnsatisfiedLinkError: Couldn't load google_speech_micro_jni from loader dalvik.system.PathClassLoader[dexPath=/mnt/asec/com.google.android.googlequicksearchbox-1/pkg.apk,libraryPath=/mnt/asec/com.google.android.googlequicksearchbox-1/lib]: findLibrary returned null
E/HotwordRecognitionEngn( 7471):     at java.lang.Runtime.loadLibrary(Runtime.java:365)
E/HotwordRecognitionEngn( 7471):     at java.lang.System.loadLibrary(System.java:535)
E/HotwordRecognitionEngn( 7471):     at com.google.android.shared.util.bp.aSC(HotwordUtil.java:30)
E/HotwordRecognitionEngn( 7471):     at com.google.android.search.core.hotword.k.a(HotwordRecognitionEngine.java:56)
E/HotwordRecognitionEngn( 7471):     at java.lang.reflect.Method.invokeNative(Native Method)
E/HotwordRecognitionEngn( 7471):     at java.lang.reflect.Method.invoke(Method.java:511)
E/HotwordRecognitionEngn( 7471):     at com.google.android.shared.util.ey.run(ThreadChanger.java:104)
E/HotwordRecognitionEngn( 7471):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
E/HotwordRecognitionEngn( 7471):     at java.util.concurrent.FutureTask.run(FutureTask.java:234)
E/HotwordRecognitionEngn( 7471):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/HotwordRecognitionEngn( 7471):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/HotwordRecognitionEngn( 7471):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
E/HotwordRecognitionEngn( 7471):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
E/HotwordRecognitionEngn( 7471):     at java.lang.Thread.run(Thread.java:856)
E/HotwordRecognitionEngn( 7471):     at com.google.android.shared.util.bk.run(GsaThreadFactory.java:77)
W/BugLogger( 7471): Bug [13633456]
W/EventLogger( 7471): recordGsaError
W/EventLogger( 7471): com.google.android.shared.speech.a.h: Failed to load the hotword library
W/EventLogger( 7471):     at com.google.android.search.core.hotword.k.a(HotwordRecognitionEngine.java:61)
W/EventLogger( 7471):     at java.lang.reflect.Method.invokeNative(Native Method)
W/EventLogger( 7471):     at java.lang.reflect.Method.invoke(Method.java:511)
W/EventLogger( 7471):     at com.google.android.shared.util.ey.run(ThreadChanger.java:104)
W/EventLogger( 7471):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
W/EventLogger( 7471):     at java.util.concurrent.FutureTask.run(FutureTask.java:234)
W/EventLogger( 7471):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
W/EventLogger( 7471):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
W/EventLogger( 7471):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
W/EventLogger( 7471):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
W/EventLogger( 7471):     at java.lang.Thread.run(Thread.java:856)
W/EventLogger( 7471):     at com.google.android.shared.util.bk.run(GsaThreadFactory.java:77)
W/EventLogger( 7471): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load google_speech_micro_jni from loader dalvik.system.PathClassLoader[dexPath=/mnt/asec/com.google.android.googlequicksearchbox-1/pkg.apk,libraryPath=/mnt/asec/com.google.android.googlequicksearchbox-1/lib]: findLibrary returned null

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

http://www.apkmirror.com/apk/google-inc/google-search/google-app-4-2-16-87075793-arm-android-apk-download/

I download the  Google App 4.2.16.87075793.arm from the above website, it match with android 4.2.

After installed this apk, it do not show the above error information.

 But when pressing the mic button to run the voice search function, it still can not work well. it show the below warning information.

-----------------------------------------------------------------------------------------------------

W/LocationOracleImpl(19186): Best location was null
D/AudioFlinger( 2178): RecordThread::start event 1, triggerSession 137
D/AudioHardware( 2178): AudioStreamInALSA::setParameters() input_source=6;routing=262144
D/AudioHardware( 2178): openMixer_l() mMixerOpenCnt: 1
D/AudioHardware( 2178): setInputSource_l(6)
D/AudioHardware( 2178): closeMixer_l() mMixerOpenCnt: 2
D/AudioHardware( 2178): AudioHardware pcm capture is exiting standby.
D/AudioHardware( 2178): closeMixer_l() mMixerOpenCnt: 1
D/AudioHardware( 2178): closePcmOut_l() mPcmOpenCnt: 1
D/AudioHardware( 2178): open pcm_out driver
D/AudioHardware( 2178): openPcmOut_l() mPcmOpenCnt: 0
D/AudioHardware( 2178): openMixer_l() mMixerOpenCnt: 0
D/AudioHardware( 2178): open pcm_in driver
D/AudioHardware( 2178): openMixer_l() mMixerOpenCnt: 1
W/EventLogger(19186): recordGsaError
W/EventLogger(19186): com.google.android.shared.speech.a.e: GsaErrorCode: 458756, engine: 1
W/EventLogger(19186):     at com.google.android.speech.embedded.x.a(Greco3RecognitionEngine.java:126)
W/EventLogger(19186):     at java.lang.reflect.Method.invokeNative(Native Method)
W/EventLogger(19186):     at java.lang.reflect.Method.invoke(Method.java:511)
W/EventLogger(19186):     at com.google.android.shared.util.ey.run(ThreadChanger.java:104)
W/EventLogger(19186):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
W/EventLogger(19186):     at java.util.concurrent.FutureTask.run(FutureTask.java:234)
W/EventLogger(19186):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
W/EventLogger(19186):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
W/EventLogger(19186):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
W/EventLogger(19186):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
W/EventLogger(19186):     at java.lang.Thread.run(Thread.java:856)
W/EventLogger(19186):     at com.google.android.shared.util.bk.run(GsaThreadFactory.java:77)
W/ErrorProcessor(19186): onFatalError, ignoring error from engine(1): com.google.android.shared.speech.a.e: GsaErrorCode: 458756, engine: 1
I/System.out(19186): Found 1 addresses to connect to, out of which 0 are on Ipv6
I/System.out(19186): Found 1 addresses to connect to, out of which 0 are on Ipv6
-----------------------------------------------------------------------------------------------------------------
Seem that it is a bug from google itself. i refer to the below website.


https://code.google.com/p/android/issues/detail?id=100389

https://code.google.com/p/android/issues/detail?id=98005

http://stackoverflow.com/questions/27964043/recognizerintent-gives-error-after-latest-google-search-update


In addition, If you want to use the google play service, you need install google service framework(include GoogleLoginService.apk,GoogleServicesFramework.apk and Vending.apk( rename google store apk).


你可能感兴趣的:(Google,search,voice)