[Android Q&A, Help & Troubleshooting] Bryaneloko:
Hi, my problem its with the microphone only in Gapps, in other apps its working perfectly:

E/WifiStateMachine( 674): setScanResults obtaining null BSSID results <00:00:00:00:00:00>, discard it

D/wpa_supplicant( 4865): wlan0: Control interface command 'STATUS-NO_EVENTS'

I/MicrophoneInputStream( 3612): mic_starting com.google.android.speech.audio.w@1851be86

D/AudioMTKHardware( 168): openInputStream, devices = 0x80000004 format=0x1 ,channels=0x10, rate=16000 acoustics = 0x0

D/AudioMTKStreamManager( 168): openInputStream, devices = 0x80000004 format=0x1 ,channels=0x10, rate=16000 acoustics = 0x0

D/AudioStreamAttribute( 168): AudioStreamAttribute constructor

D/AudioMTKStreamIn( 168): AudioMTKStreamIn contructor

V/AudioMTKStreamInManager( 168): AudioMTKStreamInManager getInstance()

D/AudioSpeechEnhanceInfo( 168): AudioSpeechEnhanceInfo getInstance()

D/AudioMTKStreamIn( 168): SetStreamInPreprocessStatus enable = 1, 0x0

D/AudioSpeechEnhanceInfo( 168): IsHDRecTunningEnable=0

D/AudioSpeechEnhanceInfo( 168): GetHDRecVMFileName mVMFileName=, VMFileName=

D/AudioYusuParam( 168): QueryFeatureSupportInfo(),feature support 8015

D/AudioSpeechEnhanceInfo( 168): GetForceMagiASRState(), feature_support=8015, 0, mForceMagiASR=0

D/AudioSpeechEnhanceInfo( 168): GetForceAECRecState(), mForceAECRec=0

D/AudioMTKStreamIn( 168): AudioMTKStreamIn set devices = 0x80000004 format = 0x1 channele = 0x10 samplerate = 16000, mIsHDRecTunningEnable=0,mIsAPDMNRTuningEnable=0

D/AudioMTKStreamManager( 168): openInputStream delete streamin

D/AudioMTKStreamIn( 168): AudioMTKStreamIn destructor

D/AudioMTKStreamIn( 168): audioMTKStreamIn::standby()

E/ ( 168): AudioCloseDumpPCMFile file== NULL

D/AudioMTKStreamIn( 168): audioMTKStreamIn::standby()---

D/AudioStreamAttribute( 168): AudioStreamAttribute destructor

W/AudioPolicyManager( 168): getInputForAttr() failed opening input: samplingRate 16000, format 1, channelMask 10

E/AudioRecord( 3612): Could not get audio input for record source 1999, sample rate 16000, format 0x1, channel mask 0x10, session 124, flags 0

E/AudioRecord-JNI( 3612): Error creating AudioRecord instance: initialization check failed with status -22.

E/android.media.AudioRecord( 3612): Error code -20 when initializing native AudioRecord object.

E/MicrophoneInputStream( 3612): Failed to initialize AudioRecord

I/HotwordRecognitionRnr( 3612): Starting hotword detection.

I/HotwordRecognitionRnr( 3612): Hotword detection finished

W/EventLogger( 3612): recordGsaError

W/EventLogger( 3612): com.google.android.apps.gsa.shared.api.io.GsaIOException: Error code: 393220 | AudioRecord failed to initialize.

W/EventLogger( 3612):	at com.google.android.speech.audio.x.bss(MicrophoneInputStream.java:170)

W/EventLogger( 3612):	at com.google.android.speech.audio.x.read(MicrophoneInputStream.java:227)

W/EventLogger( 3612):	at com.google.android.apps.gsa.shared.util.bg.a(IoUtils.java:184)

W/EventLogger( 3612):	at com.google.android.speech.audio.ad.wx(Tee.java:406)

W/EventLogger( 3612):	at com.google.android.speech.audio.ad.p(Tee.java:294)

W/EventLogger( 3612):	at com.google.android.speech.audio.ae.read(Tee.java:491)

W/EventLogger( 3612):	at java.io.InputStream.read(InputStream.java:162)

W/EventLogger( 3612):	at com.google.android.speech.audio.m.run(AudioSource.java:189)

W/EventLogger( 3612): recordGsaError

W/EventLogger( 3612): com.google.android.apps.gsa.shared.speech.a.h: Error at processing input stream

W/EventLogger( 3612):	at com.google.android.search.core.hotword.l.aFy(HotwordRecognitionRunner.java:154)

W/EventLogger( 3612):	at com.google.android.search.core.hotword.m.run(HotwordRecognitionRunner.java:128)

W/EventLogger( 3612):	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)

W/EventLogger( 3612):	at java.util.concurrent.FutureTask.run(FutureTask.java:237)

W/EventLogger( 3612):	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)

W/EventLogger( 3612):	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)

W/EventLogger( 3612):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

W/EventLogger( 3612):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

W/EventLogger( 3612):	at java.lang.Thread.run(Thread.java:818)

W/EventLogger( 3612):	at com.google.android.apps.gsa.shared.util.a.a.i.run(GsaThreadFactory.java:79)

W/EventLogger( 3612): Caused by: com.google.android.apps.gsa.shared.api.io.GsaIOException: Error code: 393220 | AudioRecord failed to initialize.

W/EventLogger( 3612):	at com.google.android.speech.audio.x.bss(MicrophoneInputStream.java:170)

W/EventLogger( 3612):	at com.google.android.speech.audio.x.read(MicrophoneInputStream.java:227)

W/EventLogger( 3612):	at com.google.android.apps.gsa.shared.util.bg.a(IoUtils.java:184)

W/EventLogger( 3612):	at com.google.android.speech.audio.ad.wx(Tee.java:406)

W/EventLogger( 3612):	at com.google.android.speech.audio.ad.p(Tee.java:294)

W/EventLogger( 3612):	at com.google.android.speech.audio.ae.read(Tee.java:491)

W/EventLogger( 3612):	at java.io.InputStream.read(InputStream.java:162)

W/EventLogger( 3612):	at com.google.android.speech.audio.m.run(AudioSource.java:189)

I/HotwordRecognitionRnr( 3612): Stopping hotword detection.

W/ErrorProcessor( 3612): onFatalError, processing error from engine(4)

W/ErrorProcessor( 3612): com.google.android.apps.gsa.shared.speech.a.h: Error at processing input stream

W/ErrorProcessor( 3612):	at com.google.android.search.core.hotword.l.aFy(HotwordRecognitionRunner.java:154)

W/ErrorProcessor( 3612):	at com.google.android.search.core.hotword.m.run(HotwordRecognitionRunner.java:128)

W/ErrorProcessor( 3612):	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)

W/ErrorProcessor( 3612):	at java.util.concurrent.FutureTask.run(FutureTask.java:237)

W/ErrorProcessor( 3612):	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)

W/ErrorProcessor( 3612):	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)

W/ErrorProcessor( 3612):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

W/ErrorProcessor( 3612):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

W/ErrorProcessor( 3612):	at java.lang.Thread.run(Thread.java:818)

W/ErrorProcessor( 3612):	at com.google.android.apps.gsa.shared.util.a.a.i.run(GsaThreadFactory.java:79)

W/ErrorProcessor( 3612): Caused by: com.google.android.apps.gsa.shared.api.io.GsaIOException: Error code: 393220 | AudioRecord failed to initialize.

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.x.bss(MicrophoneInputStream.java:170)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.x.read(MicrophoneInputStream.java:227)

W/ErrorProcessor( 3612):	at com.google.android.apps.gsa.shared.util.bg.a(IoUtils.java:184)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.ad.wx(Tee.java:406)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.ad.p(Tee.java:294)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.ae.read(Tee.java:491)

W/ErrorProcessor( 3612):	at java.io.InputStream.read(InputStream.java:162)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.m.run(AudioSource.java:189)

I/HotwordWorker( 3612): #onError(false)

D/wpa_supplicant( 4865): wlan0: Control interface command 'SIGNAL_POLL'

I/MicrophoneInputStream( 3612): mic_starting com.google.android.speech.audio.w@1e87343f

D/AudioMTKHardware( 168): openInputStream, devices = 0x80000004 format=0x1 ,channels=0x10, rate=16000 acoustics = 0x0

D/AudioMTKStreamManager( 168): openInputStream, devices = 0x80000004 format=0x1 ,channels=0x10, rate=16000 acoustics = 0x0

D/AudioStreamAttribute( 168): AudioStreamAttribute constructor

D/AudioMTKStreamIn( 168): AudioMTKStreamIn contructor

V/AudioMTKStreamInManager( 168): AudioMTKStreamInManager getInstance()

D/AudioSpeechEnhanceInfo( 168): AudioSpeechEnhanceInfo getInstance()

D/AudioMTKStreamIn( 168): SetStreamInPreprocessStatus enable = 1, 0x0

D/AudioSpeechEnhanceInfo( 168): IsHDRecTunningEnable=0

D/AudioSpeechEnhanceInfo( 168): GetHDRecVMFileName mVMFileName=, VMFileName=

D/AudioYusuParam( 168): QueryFeatureSupportInfo(),feature support 8015

D/AudioSpeechEnhanceInfo( 168): GetForceMagiASRState(), feature_support=8015, 0, mForceMagiASR=0

D/AudioSpeechEnhanceInfo( 168): GetForceAECRecState(), mForceAECRec=0

D/AudioMTKStreamIn( 168): AudioMTKStreamIn set devices = 0x80000004 format = 0x1 channele = 0x10 samplerate = 16000, mIsHDRecTunningEnable=0,mIsAPDMNRTuningEnable=0

D/AudioMTKStreamManager( 168): openInputStream delete streamin

D/AudioMTKStreamIn( 168): AudioMTKStreamIn destructor

D/AudioMTKStreamIn( 168): audioMTKStreamIn::standby()

E/ ( 168): AudioCloseDumpPCMFile file== NULL

D/AudioMTKStreamIn( 168): audioMTKStreamIn::standby()---

D/AudioStreamAttribute( 168): AudioStreamAttribute destructor

W/AudioPolicyManager( 168): getInputForAttr() failed opening input: samplingRate 16000, format 1, channelMask 10

E/AudioRecord( 3612): Could not get audio input for record source 1999, sample rate 16000, format 0x1, channel mask 0x10, session 126, flags 0

E/AudioRecord-JNI( 3612): Error creating AudioRecord instance: initialization check failed with status -22.

E/android.media.AudioRecord( 3612): Error code -20 when initializing native AudioRecord object.

E/MicrophoneInputStream( 3612): Failed to initialize AudioRecord

I/HotwordRecognitionRnr( 3612): Starting hotword detection.

I/HotwordRecognitionRnr( 3612): Hotword detection finished

W/EventLogger( 3612): recordGsaError

W/EventLogger( 3612): com.google.android.apps.gsa.shared.api.io.GsaIOException: Error code: 393220 | AudioRecord failed to initialize.

W/EventLogger( 3612):	at com.google.android.speech.audio.x.bss(MicrophoneInputStream.java:170)

W/EventLogger( 3612):	at com.google.android.speech.audio.x.read(MicrophoneInputStream.java:227)

W/EventLogger( 3612):	at com.google.android.apps.gsa.shared.util.bg.a(IoUtils.java:184)

W/EventLogger( 3612):	at com.google.android.speech.audio.ad.wx(Tee.java:406)

W/EventLogger( 3612):	at com.google.android.speech.audio.ad.p(Tee.java:294)

W/EventLogger( 3612):	at com.google.android.speech.audio.ae.read(Tee.java:491)

W/EventLogger( 3612):	at java.io.InputStream.read(InputStream.java:162)

W/EventLogger( 3612):	at com.google.android.speech.audio.m.run(AudioSource.java:189)

W/EventLogger( 3612): recordGsaError

W/EventLogger( 3612): com.google.android.apps.gsa.shared.speech.a.h: Error at processing input stream

W/EventLogger( 3612):	at com.google.android.search.core.hotword.l.aFy(HotwordRecognitionRunner.java:154)

W/EventLogger( 3612):	at com.google.android.search.core.hotword.m.run(HotwordRecognitionRunner.java:128)

W/EventLogger( 3612):	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)

W/EventLogger( 3612):	at java.util.concurrent.FutureTask.run(FutureTask.java:237)

W/EventLogger( 3612):	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)

W/EventLogger( 3612):	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)

W/EventLogger( 3612):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

W/EventLogger( 3612):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

W/EventLogger( 3612):	at java.lang.Thread.run(Thread.java:818)

W/EventLogger( 3612):	at com.google.android.apps.gsa.shared.util.a.a.i.run(GsaThreadFactory.java:79)

W/EventLogger( 3612): Caused by: com.google.android.apps.gsa.shared.api.io.GsaIOException: Error code: 393220 | AudioRecord failed to initialize.

W/EventLogger( 3612):	at com.google.android.speech.audio.x.bss(MicrophoneInputStream.java:170)

W/EventLogger( 3612):	at com.google.android.speech.audio.x.read(MicrophoneInputStream.java:227)

W/EventLogger( 3612):	at com.google.android.apps.gsa.shared.util.bg.a(IoUtils.java:184)

W/EventLogger( 3612):	at com.google.android.speech.audio.ad.wx(Tee.java:406)

W/EventLogger( 3612):	at com.google.android.speech.audio.ad.p(Tee.java:294)

W/EventLogger( 3612):	at com.google.android.speech.audio.ae.read(Tee.java:491)

W/EventLogger( 3612):	at java.io.InputStream.read(InputStream.java:162)

W/EventLogger( 3612):	at com.google.android.speech.audio.m.run(AudioSource.java:189)

I/HotwordRecognitionRnr( 3612): Stopping hotword detection.

W/ErrorProcessor( 3612): onFatalError, processing error from engine(4)

W/ErrorProcessor( 3612): com.google.android.apps.gsa.shared.speech.a.h: Error at processing input stream

W/ErrorProcessor( 3612):	at com.google.android.search.core.hotword.l.aFy(HotwordRecognitionRunner.java:154)

W/ErrorProcessor( 3612):	at com.google.android.search.core.hotword.m.run(HotwordRecognitionRunner.java:128)

W/ErrorProcessor( 3612):	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)

W/ErrorProcessor( 3612):	at java.util.concurrent.FutureTask.run(FutureTask.java:237)

W/ErrorProcessor( 3612):	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)

W/ErrorProcessor( 3612):	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)

W/ErrorProcessor( 3612):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

W/ErrorProcessor( 3612):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

W/ErrorProcessor( 3612):	at java.lang.Thread.run(Thread.java:818)

W/ErrorProcessor( 3612):	at com.google.android.apps.gsa.shared.util.a.a.i.run(GsaThreadFactory.java:79)

W/ErrorProcessor( 3612): Caused by: com.google.android.apps.gsa.shared.api.io.GsaIOException: Error code: 393220 | AudioRecord failed to initialize.

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.x.bss(MicrophoneInputStream.java:170)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.x.read(MicrophoneInputStream.java:227)

W/ErrorProcessor( 3612):	at com.google.android.apps.gsa.shared.util.bg.a(IoUtils.java:184)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.ad.wx(Tee.java:406)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.ad.p(Tee.java:294)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.ae.read(Tee.java:491)

W/ErrorProcessor( 3612):	at java.io.InputStream.read(InputStream.java:162)

W/ErrorProcessor( 3612):	at com.google.android.speech.audio.m.run(AudioSource.java:189)

I/HotwordWorker( 3612): #onError(false)

Thanks