I am developing an app and using one plus 3 (Android 7.0, Oxygens OS 4.0.3, API 24). PeopleActivity is called if you have more than one contact with same phone number. In my default SMS App, it opens Quick Contact so there is some problem in my app or implementation because of which it opens PeopleActivity. But I am unable to figure out what. Any pointers in right direction appreciated.
Faulty Code
private View.OnClickListener onImageClick(final String phNumber) {
return new View.OnClickListener() {
#Override
public void onClick(View v) {
Intent intent = new Intent(ContactsContract.Intents.SHOW_OR_CREATE_CONTACT,
Uri.fromParts("tel", phNumber, null));
v.getContext().startActivity(intent);
}
};
}
LogCat
04-16 07:40:25.917 1364-29446/? I/ActivityManager: START u0 {act=com.android.contacts.action.SHOW_OR_CREATE_CONTACT dat=tel:xxxxxxxxxxxxx cmp=com.android.contacts/.activities.ShowOrCreateActivity} from uid 10151 pid 20127 on display 0
04-16 07:40:25.918 762-1076/? D/APM_AudioPolicyManager: startOutput() output 13, stream 1, session 73
04-16 07:40:25.918 762-1076/? D/AudioPolicyManagerCustom: getNewOutputDevice() selected device 2
04-16 07:40:25.918 762-1076/? D/APM_AudioPolicyManager: setOutputDevice() device 0002 delayMs 0
04-16 07:40:25.922 762-1211/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
04-16 07:40:25.922 762-1211/? D/audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-16 07:40:25.922 762-1211/? D/audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
04-16 07:40:25.923 762-1076/? D/APM_AudioPolicyManager: startOutput()--
04-16 07:40:25.923 762-1211/? D/audio_hw_primary: start_output_stream: enter: stream(0xe87fd000)usecase(1: low-latency-playback) devices(0x2)
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: select_devices for use case (low-latency-playback)
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
04-16 07:40:25.924 762-1211/? I/msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
04-16 07:40:25.924 762-1211/? D/msm8974_platform: platform_can_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
04-16 07:40:25.924 762-1211/? I/msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 2
04-16 07:40:25.924 762-1211/? I/msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
04-16 07:40:25.924 762-1211/? D/msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on non-44.1-support device Configure afe to default Sample Rate(48k)
04-16 07:40:25.924 762-1211/? I/msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
04-16 07:40:25.924 762-1211/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
04-16 07:40:25.924 762-1211/? D/msm8974_platform: platform_can_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: enable_snd_device: snd_device(2: speaker)
04-16 07:40:25.924 762-1211/? I/soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 1, with Raise=0
04-16 07:40:25.924 474-2481/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
04-16 07:40:25.924 762-1211/? D/aud_dev_arbi: acquireOneDevice: device owner for device 2 is 1
04-16 07:40:25.929 762-1211/? I/audio_hw_primary: select_devices Selected apptype: 69937
04-16 07:40:25.930 762-1211/? D/soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 1 of type 0 for Event 3, with Raise=0
04-16 07:40:25.930 762-1211/? I/audio_hw_utils: audio_extn_utils_send_app_type_cfg PLAYBACK app_type 69937, acdb_dev_id 15, sample_rate 48000
04-16 07:40:25.930 762-1211/? I/audio_hw_utils: audio_extn_utils_send_app_type_cfg:becf: adm: app_type 69936, acdb_dev_id 15, sample_rate 48000
04-16 07:40:25.930 762-1211/? D/msm8974_platform: platform_can_split_snd_device: snd_device(2) num devices(1) new_snd_devices(-403700752)
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0, app id = 0x11131, sample rate = 48000
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_asm_topology
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_adm_topology
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_audtable
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_audvoltable
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 5
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_audstrmtable
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_afe_topology
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 15, Topology Id 1025e
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_afe_cal
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 15 path = 0
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
04-16 07:40:25.931 762-1211/? D/audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback quat_i2s
04-16 07:40:25.931 1364-29446/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
04-16 07:40:25.931 762-1211/? D/audio_hw_primary: select_devices: done
04-16 07:40:25.934 762-1211/? D/msm8974_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map15
04-16 07:40:25.934 762-1211/? D/msm8974_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2
04-16 07:40:25.936 20127-23884/in.smslite D/AppTracker: App Event: stop
04-16 07:40:25.965 21309-23885/? D/AppTracker: App Event: start
04-16 07:40:25.976 1364-3044/? E/OnePlusAppBootManager: # startActivityLocked # aInfo = null
04-16 07:40:25.976 1364-3044/? I/ActivityManager: START u0 {act=android.intent.action.SEARCH cmp=com.android.contacts/.activities.PeopleActivity (has extras)} from uid 10125 pid 21309 on display 0
04-16 07:40:25.977 21309-21309/? D/AndroidRuntime: Shutting down VM
--------- beginning of crash
04-16 07:40:25.978 21309-21309/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.contacts, PID: 21309
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.contacts/com.android.contacts.activities.PeopleActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1983)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1696)
at android.app.Activity.startActivityForResult(Activity.java:4290)
at android.app.Activity.startActivityForResult(Activity.java:4249)
at android.app.Activity.startActivity(Activity.java:4588)
at android.app.Activity.startActivity(Activity.java:4548)
at com.android.contacts.activities.ShowOrCreateActivity.onQueryComplete(ShowOrCreateActivity.java:191)
at com.android.contacts.util.NotifyingAsyncQueryHandler.onQueryComplete(NotifyingAsyncQueryHandler.java:61)
at android.content.AsyncQueryHandler.handleMessage(AsyncQueryHandler.java:344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6209)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
04-16 07:40:25.978 21309-21309/? D/AppTracker: App Event: crash
04-16 07:40:25.981 1364-1850/? W/ActivityManager: Force finishing activity com.android.contacts/.activities.ShowOrCreateActivity
04-16 07:40:25.982 1364-23887/? V/MDM_DropBox: record:system_app_crash
04-16 07:40:25.984 1364-1850/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
04-16 07:40:25.985 1364-1850/? W/ActivityManager: Force finishing activity in.smslite/.activity.MainActivity
04-16 07:40:25.987 1364-29445/? W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#a6c8de9 attribute=null, token = android.os.BinderProxy#b795472
04-16 07:40:25.987 1364-1798/? D/OSTracker: OS Event: system_app_crash
04-16 07:40:25.990 762-1211/? D/audio_hw_primary: start_output_stream: exit
04-16 07:40:25.993 1364-1850/? V/WindowManager: just for Front small Window: = Window{9c90a61 u0 net.oneplus.launcher.wallpaper.BlurWallpaper}
04-16 07:40:26.005 21309-21309/? I/Process: Sending signal. PID: 21309 SIG: 9
04-16 07:40:26.016 1364-28534/? V/WindowManager: just for Front small Window: = Window{9c90a61 u0 net.oneplus.launcher.wallpaper.BlurWallpaper}
04-16 07:40:26.018 1364-1777/? W/InputDispatcher: channel 'af18670 com.android.contacts/com.android.contacts.activities.ShowOrCreateActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
04-16 07:40:26.019 1364-1777/? E/InputDispatcher: channel 'af18670 com.android.contacts/com.android.contacts.activities.ShowOrCreateActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
Related
In my device which is on Android N (7.1.2),Music Player (Play Music application) Volume suddenly goes down if "Google quick search bar APP" is Launched and Volume comes back to normal as soon as we minimizes the Google quick search bar application
tried to put and debug with logs in below files but didnt get the root cause
frameworks/base/media/java/android/media/AudioManager.java
frameworks/base/services/core/java/com/android/server/audio/AudioService.java
Any advise how the Music Volume Fades in and Fades out ?
Logs for Reference:
01-01 07:52:51.668 437-7351/? D/audio_hw_primary: copl(0xac8c46c0):out of compress_wait
01-01 07:52:51.668 437-7353/? D/audio_hw_primary: copl(0xac8c46c0): writing buffer (65536 bytes) to compress device
01-01 07:52:51.669 437-7353/? D/audio_hw_primary: copl(0xac8c46c0): writing buffer (65536 bytes) to compress device
01-01 07:52:51.672 437-7353/? D/audio_hw_primary: No space available in compress driver, post msg to cb thread
01-01 07:52:51.672 437-7351/? D/audio_hw_primary: copl(0xac8c46c0):calling compress_wait
01-01 07:52:53.839 971-1186/system_process I/Test_log: AudioService.java :handleMessage::msg:{ when=-1ms what=5 arg2=-1000 target=com.android.server.audio.AudioService$AudioHandler }
01-01 07:52:53.839 971-1186/system_process I/Test_log: AudioService.java :handleMessage::msg.what:5
01-01 07:52:53.839 971-1186/system_process I/Test_log: AudioService.java :handleMessage: onPlaySoundEffect:msg.arg1:0
01-01 07:52:53.839 971-1186/system_process I/Test_log: AudioService.java :handleMessage: onPlaySoundEffect:msg.arg2:-1000
01-01 07:52:53.839 971-1186/system_process I/Test_log: onPlaySoundEffect_11111
01-01 07:52:53.840 971-1186/system_process I/Test_log: AudioService.java : onPlaySoundEffect: stackdump
java.lang.Throwable: stack dump
at com.android.server.audio.AudioService$AudioHandler.onPlaySoundEffect(AudioService.java:4689)
at com.android.server.audio.AudioService$AudioHandler.handleMessage(AudioService.java:4811)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at com.android.server.audio.AudioService$AudioSystemThread.run(AudioService.java:4455)
--------- beginning of system
01-01 07:52:53.840 971-1409/system_process I/ActivityManager: START u0 {act=android.search.action.GLOBAL_SEARCH cat=[com.google.android.googlequicksearchbox.category.SEARCH_WIDGET] flg=0x10008000 cmp=com.google.android.googlequicksearchbox/com.google.android.apps.gsa.searchnow.SearchNowActivity bnds=[191,145][593,243] (has extras)} from uid 10035 on display 0
01-01 07:52:53.862 437-655/? D/audio_hw_primary: start_output_stream: enter: stream(0xac8c41c0)usecase(1: low-latency-playback) devices(0x2)
01-01 07:52:53.862 437-655/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
01-01 07:52:53.862 437-655/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
01-01 07:52:53.862 437-655/? W/audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg: App type could not be selected. Falling back to default
01-01 07:52:53.862 437-655/? I/audio_hw_primary: select_devices Selected apptype: 69936
01-01 07:52:53.863 437-655/? V/audio_hw_dolby: audio_extn_dolby_set_dmid Dolby device manufacturer id is:0
01-01 07:52:53.864 437-655/? V/audio_hw_dolby: audio_extn_dolby_set_license Setting DS1 License, key:0x0 dmid 0
01-01 07:52:53.864 437-655/? E/DAP_HAL: dap_hal_set_hw_info: dmid=0
key 00x
01-01 07:52:53.883 437-655/? E/audio_hw_dolby: audio_extn_dolby_set_license Could not set DS1 License. Status: -1
01-01 07:52:53.883 437-655/? E/audio_hw_dolby: audio_extn_dolby_ds2_set_endpoint: Dolby set endpint :0x2
01-01 07:52:53.883 437-655/? D/soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 1 of type 0 for Event 3, with Raise=0
01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0
01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> send_asm_topology
01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> send_adm_topology
01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> send_audtable
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> send_audvoltable
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> send_afe_cal
01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
01-01 07:52:53.885 437-655/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
01-01 07:52:53.885 437-655/? D/ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 14 path = 0
01-01 07:52:53.885 437-655/? D/ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
01-01 07:52:53.885 437-655/? I/audio_hw_utils: audio_extn_utils_send_app_type_cfg: PLAYBACK app_type 69936, acdb_dev_id 14, sample_rate 48000
01-01 07:52:53.886 437-655/? D/audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback
01-01 07:52:53.887 437-655/? D/audio_hw_primary: select_devices: done
01-01 07:52:53.892 971-1409/system_process I/ActivityManager: Killing 6348:com.android.musicfx/u0a24 (adj 906): empty for 3043s
01-01 07:52:53.900 437-655/? D/msm8916_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map12
01-01 07:52:53.900 437-655/? D/msm8916_platform: platform_set_channel_map: set mapping(1 2 3 0 0 0 0 0) for channel:2
01-01 07:52:53.900 437-655/? D/audio_hw_primary: start_output_stream: exit
01-01 07:52:53.901 971-1409/system_process D/ActivityTrigger: ActivityTrigger activityPauseTrigger
01-01 07:52:53.923 2096-2096/com.google.android.googlequicksearchbox:search E/LegacyNowServiceClient: skipping logEndstates, service is null
01-01 07:52:53.964 371-371/? W/SurfaceFlinger: couldn't log to binary event log: overflow.
01-01 07:52:53.994 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#15c0524
01-01 07:52:53.995 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#b97588d
01-01 07:52:53.995 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#679da42
01-01 07:52:53.995 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#36e3a53
01-01 07:52:54.000 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#9adf089
01-01 07:52:54.000 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#14f588e
01-01 07:52:54.033 971-1576/system_process D/ActivityManager: cleanUpApplicationRecord -- 6348
01-01 07:52:54.039 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#84a5e43
01-01 07:52:54.039 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#b34bcc0
01-01 07:52:54.174 971-1029/system_process I/ActivityManager: Displayed com.google.android.googlequicksearchbox/com.google.android.apps.gsa.searchnow.SearchNowActivity: +247ms
01-01 07:52:54.183 5385-5466/com.android.launcher3 D/OpenGLRenderer: endAllActiveAnimators on 0x898dc380 (RippleDrawable) with handle 0x93e15e20
01-01 07:52:54.190 437-7353/? D/audio_hw_primary: out_set_parameters: enter: usecase(3: compress-offload-playback) kvpairs: routing=2
01-01 07:52:54.245 1217-1217/com.google.android.inputmethod.latin W/InputMethodService: Window size has been changed. This may cause jankiness of resizing window: -1 -> -2
When you play audio on an Android device the application has to request audio focus. The operating system has different ways of dealing with a conflict in audio focus, it either performs audio ducking, stops the audio briefly, or completely hands over control to another application that requests focus:
From Managing audio focus Android documentation:
Two or more Android apps can play audio to the same output stream
simultaneously. The system mixes everything together. While this is
technically impressive, it can be very aggravating to a user. To avoid
every music app playing at the same time, Android introduces the idea
of audio focus. Only one app can hold audio focus at a time.
TL;DR: It sounds to me like the Google Search bar is requesting audio focus, perhaps for voice control, and the OS is ducking your application audio briefly during this action - after which audio focus is handed back to your application.
See Managing audio focus for more detail.
I'm using this code snippet to activate voice command on android.
Intent newIntent = new Intent(Intent.ACTION_VOICE_COMMAND);
newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplicationContext().sendBroadcast(newIntent);
it doesn't do anything, not even an error in my log cat:
06-03 13:26:24.325 203-822/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
06-03 13:26:24.335 203-822/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
06-03 13:26:24.335 203-822/? D/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
06-03 13:26:24.335 203-822/? D/audio_hw_primary: enable_snd_device: snd_device(2: speaker)
06-03 13:26:24.338 203-822/? D/audio_hw_primary: enable_audio_route: apply and update mixer path: low-latency-playback
--------- beginning of system
06-03 13:26:26.277 786-892/? D/ConnectivityService: notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]
06-03 13:26:27.551 203-822/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
disable_snd_device: snd_device(2: speaker)
when I run this in ADB, it brings the google assistant up:
adb shell am start -a android.intent.action.VOICE_COMMAND
which is weird, it's technically the very same thing.
is there permission i'm missing or something?
From Docs
Activity Action: Start Voice Command.
So to bring up the voice command assistant activity, Use startActivityas
getApplicationContext().startActivity(newIntent);
instead of
getApplicationContext().sendBroadcast(newIntent);
like
Intent newIntent = new Intent(Intent.ACTION_VOICE_COMMAND);
newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplicationContext().startActivity(newIntent);
// ^^^^^^^^^^^^
is there a way for the UI not to come up and cover my UI? or at least
for google assistant to go away after it listened and acted on my
voice command?
You can use Google Assistant Service sdk and here is the android quick start guide
I have been having an issues playing audio files using MediaPlayer on MarshMallow where it stops too soon like a second or so.
The audio file is a .wav file with a length just under 3 seconds. It has the following properties:
Codec: PCM S16 LE(araw)
Channels: Mono
Sample rate: 8000 Hz
Bit per sample: 16
I have had this issue on the following devices:
OnePlus One - Android version:6.0.1
Nexus 6 - Android version:6.0.1
Nexus 5 - Android version:6.0.1
The same code works on previous versions of Android.
From initial looks it looks due to the implementation of NuPlayer and the removal of AwesomePlayer. In Lollipop it was optional in developer settings to use NuPlayer.
Has anyone experienced this? what did you do to fix this?
My code put simply does the following:
String mAudioFilePath = "path to audio file"
MediaPlayer player = new MediaPlayer();
player.setWakeMode(getActivity(), PowerManager.PARTIAL_WAKE_LOCK);
player.reset();
player.setDataSource(mAudioFilePath);
player.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
#Override
public void onPrepared(MediaPlayer mp) {
mp.start();
audioSeekBar.setProgress(0);
audioSeekBar.setMax(100);
updateProgressBar();
}
});
player.prepareAsync();
updateProgressBar() - updates the audioSeekBar and is stopped from updating the SeekBar using:
player.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
#Override
public void onCompletion(MediaPlayer mp) {
mHandler.removeCallbacks(mUpdateTimeTask);
audioSeekBar.setProgress(0);
audioSeekBar.setMax(100);
player.stop();
player.reset();
}
});
I get the following stack-trace:
05-01 18:53:18.344 31287-31287/? D/LockScreen: [ChargingTimeHelper] skip updating, mPreLevel: 71, curLevel: 71
05-01 18:53:23.582 7326-7441/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
05-01 18:53:23.593 7326-7441/? D/audio_hw_primary: start_output_stream: enter: stream(0xb5f77600)usecase(1: low-latency-playback) devices(0x2)
05-01 18:53:23.593 7326-7441/? D/audio_hw_primary: start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2)
05-01 18:53:23.594 7326-7441/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
05-01 18:53:23.594 7326-7441/? W/msm8974_platform: Codec backend bitwidth 16, samplerate 48000
05-01 18:53:23.594 7326-7441/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
05-01 18:53:23.594 7326-7441/? I/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> send_adm_topology
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> send_asm_topology
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> send_audtable
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> send_audvoltable
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE
[ 05-01 18:53:23.594 7326: 7441 D/ ]
Failed to fetch the lookup information of the device 0000000F
05-01 18:53:23.594 7326-7441/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> send_afe_cal
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
[ 05-01 18:53:23.594 7326: 7441 D/ ]
Failed to fetch the lookup information of the device 0000000F
05-01 18:53:23.594 7326-7441/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
05-01 18:53:23.594 7326-7441/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
05-01 18:53:23.601 7326-7441/? D/audio_hw_primary: select_devices: done
05-01 18:53:23.604 7326-7052/? I/FFmpegExtractor: android-source:0xaeaf9240
05-01 18:53:23.605 7326-7052/? D/FFmpegExtractor: suppoted codec(pcm_s16le) by official Stagefright
05-01 18:53:23.605 7326-7052/? D/FFmpegExtractor: ffmpeg detected media content as 'audio/x-wav' with confidence 0.08
05-01 18:53:23.607 7326-7051/? D/NuPlayerDriver: notifyListener_l(0xb5f26b60), (1, 0, 0)
05-01 18:53:23.611 7326-7447/? D/NuPlayerDriver: start(0xb5f26b60), state is 4, eos is 0
05-01 18:53:23.611 7326-7051/? I/GenericSource: start
05-01 18:53:23.612 7326-7051/? I/MetaData: srte: (int32_t) 8000
05-01 18:53:23.612 7326-7051/? I/MetaData: sbit: (int32_t) 16
05-01 18:53:23.612 7326-7051/? I/MetaData: pfmt: (int32_t) 1
05-01 18:53:23.612 7326-7051/? I/MetaData: mime: (char*) audio/raw
05-01 18:53:23.612 7326-7051/? I/MetaData: inpS: (int32_t) 32768
05-01 18:53:23.612 7326-7051/? I/MetaData: dura: (int64_t) 2950000
05-01 18:53:23.612 7326-7051/? I/MetaData: chnm: (int32_t) 0
05-01 18:53:23.612 7326-7051/? I/MetaData: #chn: (int32_t) 1
05-01 18:53:23.612 7326-7051/? I/AudioPolicyManagerCustom: PCM offload property is enabled
05-01 18:53:23.612 7326-7051/? I/AVNuUtils: No channel mask, try channel count
05-01 18:53:23.612 7326-7051/? W/AVNuUtils: No bitrate info
05-01 18:53:23.612 7326-7051/? I/NuPlayer: canOffloadDecodedPCMStream
05-01 18:53:23.612 7326-7051/? I/MetaData: srte: (int32_t) 8000
05-01 18:53:23.612 7326-7051/? I/MetaData: sbit: (int32_t) 16
05-01 18:53:23.612 7326-7051/? I/MetaData: mime: (char*) audio/raw
05-01 18:53:23.612 7326-7051/? I/MetaData: dura: (int64_t) 2950000
05-01 18:53:23.612 7326-7051/? I/MetaData: chnm: (int32_t) 1
05-01 18:53:23.612 7326-7051/? I/MetaData: #chn: (int32_t) 1
05-01 18:53:23.612 7326-7051/? I/AVNuUtils: decision 0 mime audio/raw
05-01 18:53:23.612 7326-7051/? I/MetaData: srte: (int32_t) 8000
05-01 18:53:23.612 7326-7051/? I/MetaData: sbit: (int32_t) 16
05-01 18:53:23.612 7326-7051/? I/MetaData: mime: (char*) audio/raw
05-01 18:53:23.612 7326-7051/? I/MetaData: dura: (int64_t) 2950000
05-01 18:53:23.612 7326-7051/? I/MetaData: chnm: (int32_t) 1
05-01 18:53:23.612 7326-7051/? I/MetaData: #chn: (int32_t) 1
05-01 18:53:23.613 7326-7051/? I/AudioPolicyManagerCustom: PCM offload property is enabled
05-01 18:53:23.613 7326-7051/? I/NuPlayer: PCM offload decided: 0
05-01 18:53:23.613 7326-7051/? I/MetaData: srte: (int32_t) 8000
05-01 18:53:23.613 7326-7051/? I/MetaData: sbit: (int32_t) 16
05-01 18:53:23.613 7326-7051/? I/MetaData: pfmt: (int32_t) 1
05-01 18:53:23.613 7326-7051/? I/MetaData: mime: (char*) audio/raw
05-01 18:53:23.613 7326-7051/? I/MetaData: inpS: (int32_t) 32768
05-01 18:53:23.613 7326-7051/? I/MetaData: dura: (int64_t) 2950000
05-01 18:53:23.613 7326-7051/? I/MetaData: chnm: (int32_t) 0
05-01 18:53:23.613 7326-7051/? I/MetaData: #chn: (int32_t) 1
05-01 18:53:23.614 7326-7051/? I/AudioPolicyManagerCustom: PCM offload property is enabled
05-01 18:53:23.614 7326-7051/? I/AVNuUtils: No channel mask, try channel count
05-01 18:53:23.614 7326-7051/? W/AVNuUtils: No bitrate info
05-01 18:53:23.614 7326-7051/? I/NuPlayer: canOffloadDecodedPCMStream
05-01 18:53:23.614 7326-7051/? I/MetaData: srte: (int32_t) 8000
05-01 18:53:23.614 7326-7051/? I/MetaData: sbit: (int32_t) 16
05-01 18:53:23.614 7326-7051/? I/MetaData: mime: (char*) audio/raw
05-01 18:53:23.614 7326-7051/? I/MetaData: dura: (int64_t) 2950000
05-01 18:53:23.614 7326-7051/? I/MetaData: chnm: (int32_t) 1
05-01 18:53:23.614 7326-7051/? I/MetaData: #chn: (int32_t) 1
05-01 18:53:23.614 7326-7051/? I/AVNuUtils: decision 0 mime audio/raw
05-01 18:53:23.614 7326-7051/? I/MetaData: srte: (int32_t) 8000
05-01 18:53:23.614 7326-7051/? I/MetaData: sbit: (int32_t) 16
05-01 18:53:23.615 7326-7051/? I/MetaData: mime: (char*) audio/raw
05-01 18:53:23.615 7326-7051/? I/MetaData: dura: (int64_t) 2950000
05-01 18:53:23.615 7326-7051/? I/MetaData: chnm: (int32_t) 1
05-01 18:53:23.615 7326-7051/? I/MetaData: #chn: (int32_t) 1
05-01 18:53:23.615 7326-7051/? I/AudioPolicyManagerCustom: PCM offload property is enabled
05-01 18:53:23.615 7326-7051/? I/NuPlayer: PCM offload decided: 0
05-01 18:53:23.621 7326-7055/? E/OMXNodeInstance: setConfig(53:google.raw.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
05-01 18:53:23.621 7326-7055/? I/ACodec: codec does not support config priority (err -2147483648)
05-01 18:53:23.622 7326-7055/? I/MediaCodec: MediaCodec will operate in async mode
05-01 18:53:23.687 7326-7441/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
05-01 18:53:23.688 7326-7051/? D/NuPlayerDriver: notifyListener_l(0xb5f26b60), (6, 0, 0)
05-01 18:53:23.688 7326-7054/? I/NuPlayerDecoder: [audio] saw output EOS
05-01 18:53:24.314 5072-5286/? D/HeadsetStateMachine: Disconnected process message: 10, size: 0
05-01 18:53:24.315 31287-31287/? D/LockScreen: [BatteryInfoTracker] Received: android.intent.action.BATTERY_CHANGED
05-01 18:53:24.315 31287-31287/? D/LockScreen: [ChargingTimeHelper] update charging, scale: 100, mPreLevel: 71, curLevel: 71, mPreTime: 66930510, curTime: 67110512, plug: 2, mStatsStarted: true
05-01 18:53:24.315 31287-31287/? D/LockScreen: [ChargingTimeHelper] skip updating, mPreLevel: 71, curLevel: 71
05-01 18:53:25.440 7326-7053/? E/NuPlayerRenderer: CHECK_EQ(copy mAudioSink->frameSize(), 0) failed b/25372978
05-01 18:53:25.440 7326-7053/? E/NuPlayerRenderer: mAudioSink->frameSize() 2
05-01 18:53:25.440 7326-7053/? E/NuPlayerRenderer: bytes to copy 14431
05-01 18:53:25.440 7326-7053/? E/NuPlayerRenderer: entry size 14431, entry offset 0
05-01 18:53:25.440 7326-7051/? E/NuPlayer: audio track encountered an error (-2147483648)
05-01 18:53:25.440 7326-7051/? D/NuPlayerDriver: notifyListener_l(0xb5f26b60), (100, 1, -2147483648)
05-01 18:53:25.440 7326-7051/? D/NuPlayerDriver: notifyListener_l(0xb5f26b60), (2, 0, 0)
05-01 18:53:25.440 4711-4726/com.example.myapp E/MediaPlayer: error (1, -2147483648)
05-01 18:53:25.440 4711-4711/com.example.myapp E/MediaPlayer: Error (1,-2147483648)
05-01 18:53:25.442 7326-7447/? D/NuPlayerDriver: stop(0xb5f26b60)
05-01 18:53:25.442 7326-7447/? D/NuPlayerDriver: notifyListener_l(0xb5f26b60), (8, 0, 0)
05-01 18:53:25.442 7326-7448/? D/NuPlayerDriver: reset(0xb5f26b60)
05-01 18:53:25.446 7326-7051/? D/NuPlayerDriver: notifyResetComplete(0xb5f26b60)
05-01 18:53:25.447 7326-7326/? D/NuPlayerDriver: reset(0xb5f26b60)
05-01 18:53:28.446 7326-7441/? D/audio_hw_primary: out_standby: enter: stream (0xb5f77600) usecase(1: low-latency-playback)
Any help is greatly appreciated
I need to force an Android phone to use oob data for pairing. That means I want the Android phone to have the "OOB Data Flag" being set, when the phone sends a Pairing Request to a device.
What I've tried so far: I've identified platform/system/bt to be the current (6.0.1) Android Bluetooth implementation and platform/packages/apps/Bluetooth being a Java wrapper around BT.
platform/system/bt exposes it's interface through a bt_interface_t structure. That structure contains a function named create_bond_out_of_bandthat should do what I need. Unfortunately, that function is not exposed by the Java Wrapper.
First I've tried to use the JNI function const bt_interface_t* android::getBluetoothInterface() from libbluetooth_jni.so. I managed to lookup that function during runtime, but when I call it, it returns 0. At that point, the app used already a lot of the bluetooth API.
This led me to the conclusion, that either, the shared object was loaded a second time, or that the bluetooth library is not part of my application, but somehow implemented in a different process.
Second, I've tried to use the Android libhardware API. I've managed to get the BT module, a BT device and finally call the create_bond_out_of_band() from the bt_interface_t. The function returns 0, which indicates success, but no Pairing Request is send out. I see following messages in the logs:
02-02 15:24:38.083 5791-5824/? E/bt_btif: btif_hh_virtual_unplug: Error, device C4:BE:84:BA:DA:0B not opened.
02-02 15:24:38.083 5791-5791/? E/Gatt: createBondOutOfBand: create_bond_out_of_band(0)
02-02 15:24:38.086 490-2881/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
02-02 15:24:38.101 490-2881/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
02-02 15:24:38.101 490-2881/? D/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(101)
02-02 15:24:38.101 490-2881/? I/soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 1
02-02 15:24:38.108 490-2881/? D/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(69) acdb_id(102)
02-02 15:24:38.108 490-2881/? D/audio_hw_primary: enable_snd_device: snd_device(69: vi-feedback)
02-02 15:24:38.108 490-2881/? D/audio_hw_primary: enable_audio_route: apply and update mixer path: spkr-vi-record
02-02 15:24:38.132 490-2881/? D/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(27) acdb_id(4)
02-02 15:24:38.132 490-2881/? I/ACDB-LOADER: ACDB AFE returned = -19
02-02 15:24:38.133 490-2881/? D/audio_hw_primary: enable_audio_route: apply and update mixer path: low-latency-playback
02-02 15:24:38.672 490-2881/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
02-02 15:24:38.674 490-2881/? D/audio_hw_primary: disable_snd_device: snd_device(2: speaker)
02-02 15:24:38.690 600-600/? E/QCALOG: [MessageQ] ProcessNewMessage: [LOWI-SERVER] unknown deliver target [OS-Agent]
02-02 15:24:38.693 490-2881/? D/audio_hw_primary: disable_snd_device: snd_device(69: vi-feedback)
02-02 15:24:38.693 490-2881/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: spkr-vi-record
02-02 15:24:38.696 490-2881/? I/soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 0
C4:BE:84:BA:DA:0B is the device, I try to pair with.
Any ideas? How I can archive my goal or at least some pointers to where an active Android community can be found?
Thanks in advance,
Torsten
I'm working on doing voice recognition using the device microphone while connected to a bluetooth speaker. This works in most cases, but in a few devices I'm getting some failures.
After a few days of debugging, the best I can find is the following log difference:
Failure Log:
V/audio_hw_primary( 270): start_input_stream: enter: usecase(7)
V/voice ( 270): voice_check_and_set_incall_rec_usecase: voice call not active
V/audio_hw_primary( 270): start_input_stream: usecase(7)
D/PreProcess( 270): new SamsungRecord
D/PreProcess( 270): new NS
I/samsungRecord( 270): [samsungrecord] SamsungRecInit
I/samsungRecord( 270): [samsungrecordMIC]Use HardCoding Values
E/samsungRecord( 270): miccalib file can't created. (/data/snd/miccalib.txt)
I/samsungRecord( 270): 1
D/SamsungRecord_NS( 270): [SamsungRecord_NS] Init SR 8000
D/SamsungRecord_NS( 270): [SamsungRecord_NS] getLevel inputsource 6, ret_level 3
V/audio_hw_primary( 270): select_devices: ENTER
V/audio_hw_primary( 270): select_devices: usecase(normal)
V/audio_hw_primary( 270): select_devices: usecase(PCM_CAPTURE)
V/msm8974_platform( 270): platform_get_input_snd_device: enter: out_device(0) in_device(0x8)
V/msm8974_platform( 270): get_INPUT_snd_device: AUDIO_MODE_IN_CALL
E/msm8974_platform( 270): platform_get_input_snd_device: No output device set for voice call
V/msm8974_platform( 270): platform_get_input_snd_device: exit: in_snd_device(none)
V/audio_hw_primary( 270): start_input_stream: Opening PCM device card_id(0) device_id(0), channels 1
E/audio_hw_primary( 270): start_input_stream: cannot open device '/dev/snd/pcmC0D0c': Invalid argument
V/audio_hw_primary( 270): stop_input_stream: enter: usecase(7: audio-record)
V/audio_hw_primary( 270): disable_audio_route: enter: usecase(7)
V/audio_hw_primary( 270): disable_audio_route: reset mixer path: audio-record
D/audio_route( 270): ++++ audio_route_update_mixer ==============
D/audio_route( 270): ------ audio_route_update_mixer ==============
V/audio_hw_primary( 270): disable_audio_route: exit
E/audio_hw_primary( 270): disable_snd_device: Invalid sound device 0
V/audio_hw_primary( 270): stop_input_stream: exit: status(0)
D/audio_hw_primary( 270): start_input_stream: exit: status(-5)
V/audio_hw_primary( 270): in_standby: enter
V/audio_hw_primary( 270): in_standby: exit: status(0)
V/audio_hw_primary( 270): in_read: read failed - sleeping for buffer duration
Successful Log:
V/audio_hw_primary( 387): start_input_stream: enter: usecase(7)
V/voice ( 387): voice_check_and_set_incall_rec_usecase: voice call not active
V/audio_hw_primary( 387): start_input_stream: usecase(7)
D/PreProcess( 387): new SamsungRecord
D/PreProcess( 387): new NS
I/samsungRecord( 387): [samsungrecord] SamsungRecInit
I/samsungRecord( 387): [samsungrecordMIC]Use HardCoding Values
E/samsungRecord( 387): miccalib file can't created. (/data/snd/miccalib.txt)
I/samsungRecord( 387): 1
D/SamsungRecord_NS( 387): [SamsungRecord_NS] Init SR 8000
D/SamsungRecord_NS( 387): [SamsungRecord_NS] getLevel inputsource 6, ret_level 3
V/audio_hw_primary( 387): select_devices: ENTER
V/audio_hw_primary( 387): select_devices: usecase(normal)
V/audio_hw_primary( 387): select_devices: usecase(PCM_CAPTURE)
V/msm8974_platform( 387): platform_get_input_snd_device: enter: out_device(0) in_device(0x8)
V/msm8974_platform( 387): get_INPUT_snd_device: check by Input_source(6)
V/msm8974_platform( 387): platform_get_input_snd_device_by_source: enter: out_device(0) in_device(0x8)
V/msm8974_platform( 387): get_INPUT_snd_device: AUDIO_SOURCE_VOICE_RECOGNITION
V/msm8974_platform( 387): platform_get_input_snd_device: exit: in_snd_device(dummy)
D/audio_hw_primary( 387): select_devices: out_snd_device(0: dummy)
D/audio_hw_primary( 387): select_devices: in_snd_device(124: dummy)
D/ACDB-LOADER( 387): ACDB -> send_audio_cal, acdb_id = 49, path = 1
D/ACDB-LOADER( 387): ACDB -> send_adm_topology
D/ACDB-LOADER( 387): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
D/ACDB-LOADER( 387): ACDB -> send_audtable
D/ACDB-LOADER( 387): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
D/ACDB-LOADER( 387): ACDB -> AUDIO_SET_AUDPROC_CAL
D/ACDB-LOADER( 387): ACDB -> send_audvoltable
D/ACDB-LOADER( 387): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE
D/ ( 387): Failed to fetch the lookup information of the device 00000031
E/ACDB-LOADER( 387): Error: ACDB AudProc vol returned = -19
D/ACDB-LOADER( 387): ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
D/ACDB-LOADER( 387): ACDB -> AUDIO_SET_AFE_CAL
V/audio_hw_primary( 387): enable_snd_device: snd_device(124: dummy, dummy)
D/audio_route( 387): ++++ audio_route_update_mixer ==============
D/audio_route( 387): ------ audio_route_update_mixer ==============
V/audio_hw_primary( 387): enable_audio_route: enter: usecase(7)
V/audio_hw_primary( 387): enable_audio_route: apply mixer path: audio-record bt-sco
D/audio_route( 387): ++++ audio_route_update_mixer ==============
D/audio_route( 387): Setting mixer control: MultiMedia1 Mixer AUX_PCM_UL_TX, value: 1
D/audio_route( 387): ------ audio_route_update_mixer ==============
V/audio_hw_primary( 387): enable_audio_route: exit
V/audio_hw_primary( 387): start_input_stream: Opening PCM device card_id(0) device_id(0), channels 1
V/xappmedia.sdk.service.GoogleSpeechRecognizer(18053): Adjusted volume level: 0.0. RMSDB: -2.12
E/Global isDisableMicrophone(18053): isDisableMixrophone:true
E/MusicService(18053): XappAds VolumeLevel Callback OnRmsChanged: rmsDb: -2.12 adjustFol: 0.0
E/NowPlayingFragment OnReceive:(18053): onReceive 1
E/NowPlayingFragment OnReceive:(18053): Mic Animation 1
E/NowPlayingFragment OnReceive:(18053): Volume Change 1
E/NowPlayingFragment OnReceive:(18053): Volume Change 2: Mic Size: 300.0
E/NowPlayingFragment OnReceive:(18053): Volume Change 2: VOl: 0.0
E/NowPlayingFragment OnReceive:(18053): Draw Mic 1
V/audio_hw_primary( 387): start_input_stream: exit
It looks to me like its failing to open an input stream off of the mic. I can't find much information on this, but I think it's probably something to do with how i'm using audio focus. Anyone have any insights?