Hands Free Google (Voice) Search vs Voice Dialer

Blink1982

Member
Oct 25, 2008
16
2
0
Frankfurt
I really would like to the the regular voice search started if i have my sleeping (display off) and push the call button on my bluethooth headset.
instead i get the very stop old voice dailer.



this article states that they changed it in search 3.2 (i'm currently running search 3.4).

http://www.androidpolice.com/2014/0...the-old-voice-dialer-with-bluetooth-headsets/

it is correct that if the device is on and the screen unlocked i get, as expected, the new voice search command input
BUT if the device is sleeping it still trigger the ****TY **** COMMAND input (and ruins my idea of heads free via headset)
(the left screenshot in the article above)

Logcat output with device turned off and pushing button on headset....

Code:
E/bt-rfcomm(14656): PORT_DataInd, p_port:0x7580a77c, p_data_co_callback is null
D/HeadsetStateMachine(14656): processVrEvent: state=1 mVoiceRecognitionStarted: false mWaitingforVoiceRecognition: false isInCall: false
I/ActivityManager(  649): START u0 {act=android.intent.action.VOICE_COMMAND flg=0x10000000 cmp=com.google.android.googlequicksearchbox/com.google.android.voicesearch.handsfree.HandsFreeActivity} from pid 14656
I/Timeline(12527): Timeline: Activity_launch_request id:com.google.android.googlequicksearchbox time:8718723
I/ActivityManager(  649): START u0 {act=android.intent.action.VOICE_COMMAND flg=0x10000000 cmp=com.google.android.googlequicksearchbox/com.google.android.voicesearch.handsfree.HandsFreeActivityLegacy} from pid 12527
D/PhoneStatusBar(  774): disable: < expand icons alerts ticker system_info back* home* RECENT clock* search >
W/IInputConnectionWrapper(12527): showStatusIcon on inactive InputConnection
I/Timeline(12527): Timeline: Activity_idle id: [email protected] time:8718822
I/Timeline(12527): Timeline: Activity_idle id: [email protected] time:8718823
I/Timeline(  649): Timeline: Activity_windows_visible id: ActivityRecord{4230fb80 u0 com.google.android.googlequicksearchbox/com.google.android.voicesearch.handsfree.HandsFreeActivityLegacy t62} time:8718842
I/PowerManagerService(  649): Waking up from sleep...
E/PowerHAL(  649): sync_thread: failed to send: No such file or directory
D/SurfaceFlinger(  198): Screen acquired, type=0 flinger=0xb7a31450
I/Timeline(12527): Timeline: Activity_idle id: [email protected] time:8718915
I/WindowManager(  649): No lock screen! [email protected]
V/audio_hw_primary(  201): adev_set_parameters: enter: screen_state=on
D/audio_hw_extn(  201): audio_extn_set_anc_parameters: anc_enabled:0
V/audio_hw_primary(  201): adev_set_parameters: exit with code(-2)
I/audio_a2dp_hw(  201): adev_set_parameters: state 5
I/audio_a2dp_hw(  201): out_set_parameters: state 5
I/str_params(  201): key: 'screen_state' value: 'on'
I/AudioRouter(12527): ROUTE_NONE->ROUTE_BLUETOOTH_REQUIRED
I/MediaFocusControl(  649):  AudioFocus  requestAudioFocus() from [email protected]@419e4228
I/AudioRouter(12527): BT required, starting SCO
V/Avrcp   (14656): New genId = 69, clearing = 1
I/BluetoothController(12527): Starting VR
D/BluetoothHeadset(12527): startVoiceRecognition()
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/HeadsetStateMachine(14656): isBluetoothVoiceDialingEnabled mRemoteBrsf: 187supported: 8
D/HeadsetStateMachine(14656): Voice recognition started successfully
D/HeadsetStateMachine(14656): Initiating audio connection for Voice Recognition
V/audio_hw_primary(  201): adev_set_parameters: enter: A2dpSuspended=true
D/audio_hw_extn(  201): audio_extn_set_anc_parameters: anc_enabled:0
V/audio_hw_primary(  201): adev_set_parameters: exit with code(-2)
I/audio_a2dp_hw(  201): adev_set_parameters: state 5
I/audio_a2dp_hw(  201): out_set_parameters: state 5
I/str_params(  201): key: 'A2dpSuspended' value: 'true'
I/audio_a2dp_hw(  201): check_a2dp_stream_started: state 5
W/bt-btm  (14656): BTM Remote does not support 3-EDR eSCO
D/BluetoothManager(  948): mReceiver: HEADSET_AUDIO_STATE_CHANGED_ACTION
D/BluetoothManager(  948): ==> new state: 11
D/AudioRouter(  948): onBluetoothIndicationChange false
D/AudioRouter(  948): calculateModeFromCurrentState EARPIECE
D/BluetoothManager(  948): isBluetoothAvailable()...
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/BluetoothManager(  948): state = 2for headset: B4:52:7E:FA:DF:29
D/BluetoothManager(  948):   ==> true
D/SmartKey Service(12553): isPlaying false
D/SmartKey Service(12553): state = IDDLE
I/GCoreUlr( 1263): Starting service, intent=Intent { act=com.google.android.location.reporting.ACTION_LOCATION_STATUS cmp=com.google.android.gms/com.google.android.location.reporting.service.DispatchingService (has extras) }, extras=Bundle[{status=LocationStatus[cell status: STATUS_SUCCESSFUL, wifi status: STATUS_TIMED_OUT_ON_SCAN, elapsed realtime ns: 24652606874646]}]
D/SmartKey Service(12553): isPlaying false
D/SmartKey Service(12553): state = IDDLE
D/GCoreUlr( 1263): Throttling analytics event: entity, ApiMetadataStore:save_attempt, 1
D/GCoreUlr( 1263): Throttling analytics event: entity, ApiMetadataStore:saved, 1
D/HeadsetStateMachine(14656): Set sample rate: 8000
V/audio_hw_primary(  201): adev_set_parameters: enter: bt_samplerate=8000
D/audio_hw_extn(  201): audio_extn_set_anc_parameters: anc_enabled:0
V/audio_hw_primary(  201): adev_set_parameters: exit with code(-2)
I/audio_a2dp_hw(  201): adev_set_parameters: state 4
I/audio_a2dp_hw(  201): out_set_parameters: state 4
I/str_params(  201): key: 'bt_samplerate' value: '8000'
D/BluetoothManager(  948): mReceiver: HEADSET_AUDIO_STATE_CHANGED_ACTION
D/BluetoothManager(  948): ==> new state: 12
D/AudioRouter(  948): onBluetoothIndicationChange false
D/AudioRouter(  948): calculateModeFromCurrentState EARPIECE
D/BluetoothManager(  948): isBluetoothAvailable()...
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/BluetoothManager(  948): state = 2for headset: B4:52:7E:FA:DF:29
D/BluetoothManager(  948):   ==> true
D/AudioFlinger(  201): start(4097), calling pid 15786 session 395
D/AudioFlinger(  201): ? => ACTIVE (4097) on thread 0xb8c4d728
D/audio_hw_primary(  201): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=32
V/audio_hw_primary(  201): out_set_parameters: exit: code(0)
V/audio_hw_primary(  201): start_output_stream: enter: usecase(1: low-latency-playback) devices(0x20)
D/audio_hw_primary(  201): select_devices: out_snd_device(10: bt-sco-headset) in_snd_device(0: )
V/audio_hw_primary(  201): enable_snd_device: snd_device(10: bt-sco-headset)
V/audio_hw_primary(  201): enable_audio_route: enter: usecase(1)
V/audio_hw_primary(  201): enable_audio_route: apply mixer path: low-latency-playback bt-sco
V/audio_hw_primary(  201): enable_audio_route: exit
V/audio_hw_primary(  201): start_output_stream: Opening PCM device card_id(0) device_id(14)
V/audio_hw_primary(  201): start_output_stream: exit
device on and unlocked is like this....

Code:
D/HeadsetStateMachine(14656): processVrEvent: state=1 mVoiceRecognitionStarted: false mWaitingforVoiceRecognition: false isInCall: false
I/ActivityManager(  649): START u0 {act=android.intent.action.VOICE_COMMAND flg=0x10000000 cmp=com.google.android.googlequicksearchbox/com.google.android.voicesearch.handsfree.HandsFreeActivity} from pid 14656
I/HotwordWorker(12527): #onHotwordDetectorStopped(false)
I/MicrophoneInputStream(12527): mic_close [email protected]
V/audio_hw_primary(  201): in_standby: enter
I/ActivityManager(  649): START u0 {act=android.speech.action.WEB_SEARCH flg=0x34000000 pkg=com.google.android.googlequicksearchbox cmp=com.google.android.googlequicksearchbox/.SearchActivity (has extras)} from pid 12527
V/audio_hw_primary(  201): stop_input_stream: enter: usecase(4: audio-record)
V/audio_hw_primary(  201): disable_audio_route: enter: usecase(4)
V/audio_hw_primary(  201): disable_audio_route: reset mixer path: audio-record
V/audio_hw_primary(  201): disable_audio_route: exit
V/audio_hw_primary(  201): disable_snd_device: snd_device(37: voice-rec-mic) refcnt=0
V/audio_hw_primary(  201): stop_input_stream: exit: status(0)
V/audio_hw_primary(  201): in_standby: exit:  status(0)
I/Timeline(12527): Timeline: Activity_launch_request id:com.google.android.googlequicksearchbox time:9488919
V/audio_hw_primary(  201): adev_close_input_stream
V/audio_hw_primary(  201): in_standby: enter
V/audio_hw_primary(  201): in_standby: exit:  status(0)
I/ActivityManager(  649): START u0 {act=android.intent.action.MAIN flg=0x34000000 pkg=com.google.android.googlequicksearchbox cmp=com.google.android.googlequicksearchbox/com.google.android.velvet.ui.VelvetActivity (has extras)} from pid 12527
I/HotwordRecognitionRnr(12527): Stopping hotword detection.
I/HotwordRecognitionRnr(12527): Hotword detection finished
I/Velvet.Presenter(12527): setupFromIntent(Intent { act=android.intent.action.MAIN flg=0x34400000 pkg=com.google.android.googlequicksearchbox cmp=com.google.android.googlequicksearchbox/com.google.android.velvet.ui.VelvetActivity (has extras) })
I/AudioRouter(12527): ROUTE_NONE->ROUTE_BLUETOOTH_REQUIRED
I/MediaFocusControl(  649):  AudioFocus  requestAudioFocus() from [email protected]@419e4228
I/AudioRouter(12527): BT required, starting SCO
V/Avrcp   (14656): New genId = 73, clearing = 1
I/BluetoothController(12527): Starting VR
D/BluetoothHeadset(12527): startVoiceRecognition()
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/HeadsetStateMachine(14656): isBluetoothVoiceDialingEnabled mRemoteBrsf: 187supported: 8
D/HeadsetStateMachine(14656): Voice recognition started successfully
D/HeadsetStateMachine(14656): Initiating audio connection for Voice Recognition
V/audio_hw_primary(  201): adev_set_parameters: enter: A2dpSuspended=true
D/audio_hw_extn(  201): audio_extn_set_anc_parameters: anc_enabled:0
V/audio_hw_primary(  201): adev_set_parameters: exit with code(-2)
I/audio_a2dp_hw(  201): adev_set_parameters: state 5
I/audio_a2dp_hw(  201): out_set_parameters: state 5
I/str_params(  201): key: 'A2dpSuspended' value: 'true'
I/audio_a2dp_hw(  201): check_a2dp_stream_started: state 5
W/bt-btm  (14656): BTM Remote does not support 3-EDR eSCO
D/BluetoothManager(  948): mReceiver: HEADSET_AUDIO_STATE_CHANGED_ACTION
D/BluetoothManager(  948): ==> new state: 11
D/AudioRouter(  948): onBluetoothIndicationChange false
D/AudioRouter(  948): calculateModeFromCurrentState EARPIECE
D/BluetoothManager(  948): isBluetoothAvailable()...
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
I/MicrophoneInputStream(12527): mic_starting [email protected]
V/Zygote  (19412): Switching descriptor 33 to /dev/null
V/Zygote  (19412): Switching descriptor 10 to /dev/null
I/ActivityManager(  649): Start proc android.process.acore for content provider com.android.providers.contacts/.ContactsProvider2: pid=19412 uid=10003 gids={50003, 3003, 1028, 1015}
D/BluetoothManager(  948): state = 2for headset: B4:52:7E:FA:DF:29
D/BluetoothManager(  948):   ==> true
I/Timeline(  649): Timeline: Activity_windows_visible id: ActivityRecord{420ba150 u0 com.google.android.googlequicksearchbox/com.google.android.velvet.ui.VelvetActivity t58} time:9489060
D/SmartKey Service(12553): isPlaying false
D/SmartKey Service(12553): state = IDDLE
W/GLSUser ( 1233): GoogleAccountDataService.getToken()
D/ActivityThread(19412): handleBindApplication:android.process.acore
D/ActivityThread(19412): setTargetHeapUtilization:0.75
D/ActivityThread(19412): setTargetHeapMinFree:524288
I/Timeline(12527): Timeline: Activity_idle id: [email protected] time:9489151
D/HeadsetStateMachine(14656): Set sample rate: 8000
V/audio_hw_primary(  201): adev_set_parameters: enter: bt_samplerate=8000
D/audio_hw_extn(  201): audio_extn_set_anc_parameters: anc_enabled:0
V/audio_hw_primary(  201): adev_set_parameters: exit with code(-2)
I/audio_a2dp_hw(  201): adev_set_parameters: state 4
I/audio_a2dp_hw(  201): out_set_parameters: state 4
I/str_params(  201): key: 'bt_samplerate' value: '8000'
D/BluetoothManager(  948): mReceiver: HEADSET_AUDIO_STATE_CHANGED_ACTION
D/BluetoothManager(  948): ==> new state: 12
D/AudioRouter(  948): onBluetoothIndicationChange false
D/AudioRouter(  948): calculateModeFromCurrentState EARPIECE
D/BluetoothManager(  948): isBluetoothAvailable()...
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/BluetoothAdapterService(1103761344)(14656): getState(): mAdapterProperties: [email protected]
D/BluetoothManager(  948): state = 2for headset: B4:52:7E:FA:DF:29
D/BluetoothManager(  948):   ==> true


if the device is locked he falls back to the
com.google.android.googlequicksearchbox/com.google.android.voicesearch.handsfree.HandsFreeActivityLegacy
act****TITY

any help ?!


Running CM 11-20140504-SNAPSHOT-M6-Mako (Nexus 4... but i'd say you figured that out yourself by now)
 
Last edited:
  • Like
Reactions: giovanni645

giovanni645

Member
Dec 9, 2009
33
4
0
this is great info - I've been trying to figure out which activity to enable on the Bluetooth Launch App so that the call button is directed to that activity.

I have tried the com.google.android.googlequicksearchbox.VoiceSearchActivity - but this does not work if phone is locked.

Which other activities have you tried to enable while phone is locked?
 

giovanni645

Member
Dec 9, 2009
33
4
0
This is what happens, in the latest apk, that has hotword detection on while charging. So it wakes up from sleep and goes straight into listening for a command.

Can we initialize the same process using tasker for the bluetooth button pressed?

HTML:
I/HotwordRecognitionRnr(11016): Hotword detection finished
I/HotwordWorker(11016): #onHotwordDetected
I/MicrophoneInputStream(11016): mic_close [email protected]
I/Sdch.Manager(11016): SDCH cache load complete.
I/MediaFocusControl(  748):  AudioFocus  requestAudioFocus() from android.media.
[email protected]@42687a08
V/KeyguardHostView(  914): hide transport, gen:160
I/AudioRouter(11016): ROUTE_NONE->ROUTE_BLUETOOTH_PREFERRED,CONNECTION_TYPE_NONE
->CONNECTION_TYPE_BVRA
D/BluetoothManagerService(  748): Message: 20
D/BluetoothManagerService(  748): Added callback: android.bluetooth.IBluetoothMa
[email protected]:true
D/BluetoothManagerService(  748): Message: 30
V/Avrcp   ( 2450): New genId = 160, clearing = 1
I/HotwordRecognitionRnr(11016): Stopping hotword detection.
I/ActivityManager(  748): START u0 {act=android.intent.action.MAIN flg=0x1401000
0 cmp=com.google.android.googlequicksearchbox/com.google.android.velvet.ui.Velve
tLockscreenActivity (has extras)} from pid 11016
D/dalvikvm(11016): GC_FOR_ALLOC freed 241K, 3% free 19086K/19644K, paused 10ms,
total 15ms
I/dalvikvm-heap(11016): Grow heap (frag case) to 18.973MB for 320016-byte alloca
tion
D/dalvikvm(11016): GC_FOR_ALLOC freed <1K, 3% free 19398K/19960K, paused 11ms, t
otal 11ms
I/MicrophoneInputStream(11016): mic_starting [email protected]
I/IcingCorporaProvider(11016): Updating corpora: APPS=NONE, CONTACTS=DELTA
D/dalvikvm(11016): Trying to load lib /data/app-lib/com.google.android.googlequi
cksearchbox-2/libgoogle_recognizer_jni_l.so 0x42622448
D/BluetoothHeadset(11016): Proxy object connected
I/BluetoothController(11016): No BT device
D/audio_hw_primary(  185): out_set_parameters: enter: usecase(1: low-latency-pla
yback) kvpairs: routing=2
D/audio_hw_primary(  185): select_devices: out_snd_device(0: ) in_snd_device(35:
 voice-rec-mic)
D/        (  185): Failed to fetch the lookup information of the device 0000003E

E/ACDB-LOADER(  185): Error: ACDB AudProc vol returned = -19
I/OMXClient(11016): Using client-side OMX mux.
D/dalvikvm(11016): Added shared lib /data/app-lib/com.google.android.googlequick
searchbox-2/libgoogle_recognizer_jni_l.so 0x42622448
W/Search.SearchUrlHelper(11016): URL param or header written twice. Key: pws, ol
d value: "0" new value: "0"
W/Search.SearchUrlHelper(11016): java.lang.Throwable
W/Search.SearchUrlHelper(11016):        at bmz.b(PG:2336)
W/Search.SearchUrlHelper(11016):        at bmz.O(PG:2343)
W/Search.SearchUrlHelper(11016):        at bmz.dy(PG:2553)
W/Search.SearchUrlHelper(11016):        at bmy.a(PG:1152)
W/Search.SearchUrlHelper(11016):        at bmy.a(PG:1010)
W/Search.SearchUrlHelper(11016):        at gut.a(PG:37)
W/Search.SearchUrlHelper(11016):        at gvc.kb(PG:82)
W/Search.SearchUrlHelper(11016):        at gvd.asM(PG:38)
W/Search.SearchUrlHelper(11016):        at fgj.call(PG:28)
W/Search.SearchUrlHelper(11016):        at java.util.concurrent.FutureTask.run(F
utureTask.java:237)
W/Search.SearchUrlHelper(11016):        at java.util.concurrent.ScheduledThreadP
oolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)

W/Search.SearchUrlHelper(11016):        at java.util.concurrent.ScheduledThreadP
oolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
W/Search.SearchUrlHelper(11016):        at java.util.concurrent.ThreadPoolExecut
or.runWorker(ThreadPoolExecutor.java:1112)
W/Search.SearchUrlHelper(11016):        at java.util.concurrent.ThreadPoolExecut
or$Worker.run(ThreadPoolExecutor.java:587)
W/Search.SearchUrlHelper(11016):        at java.lang.Thread.run(Thread.java:841)

W/Search.SearchUrlHelper(11016):        at did.run(PG:46)
E/OMXMaster(11016): A component of name 'OMX.qcom.audio.decoder.aac' already exi
sts, ignoring this one.
D/dalvikvm(11016): GC_CONCURRENT freed 924K, 5% free 19334K/20292K, paused 3ms+4
ms, total 34ms
D/dalvikvm(11016): WAIT_FOR_CONCURRENT_GC blocked 21ms
I/Greco3EngineManager(11016): create_rm: m=GRAMMAR,l=en-US
D/dalvikvm( 1223): GC_CONCURRENT freed 906K, 9% free 19080K/20816K, paused 2ms+2
ms, total 25ms
D/dalvikvm( 1223): WAIT_FOR_CONCURRENT_GC blocked 19ms
D/dalvikvm( 1223): WAIT_FOR_CONCURRENT_GC blocked 21ms
D/dalvikvm(11016): GC_FOR_ALLOC freed 211K, 3% free 19842K/20292K, paused 12ms,
total 12ms
I/Greco3EngineManager(11016): Brought up new g3 instance :/system/usr/srec/en-US
/grammar.config for: en-USin: 29 ms
D/dalvikvm(11016): GC_FOR_ALLOC freed 17K, 3% free 20331K/20784K, paused 13ms, t
otal 13ms
D/ConnectivityService(  748): startUsingNetworkFeature reconnecting to 0: enable
SUPL
D/ConnectivityService(  748): startUsingNetworkFeature X: return APN_REQUEST_STA
RTED
E/LocSvc_eng(  748): W/AgpsReleasedState: unrecognized event 3
D/ConnectivityService(  748): stopUsingNetworkFeature: teardown net 0: enableSUP
L
D/MobileDataStateTracker(  748): supl: Broadcast received: android.intent.action
.ANY_DATA_STATE apnType=supl
D/MobileDataStateTracker(  748): supl: Received state=CONNECTING, old=DISCONNECT
ED, reason=dataEnabled
D/MobileDataStateTracker(  748): supl: setDetailed state, old =IDLE and new stat
e=CONNECTING
D/MobileDataStateTracker(  748): fota: Broadcast received: android.intent.action
.ANY_DATA_STATE apnType=fota
D/MobileDataStateTracker(  748): fota: Received state=DISCONNECTED, old=DISCONNE
CTED, reason=dataEnabled
D/MobileDataStateTracker(  748): dun: Broadcast received: android.intent.action.
ANY_DATA_STATE apnType=dun
D/MobileDataStateTracker(  748): dun: Received state=DISCONNECTED, old=DISCONNEC
TED, reason=dataEnabled
D/MobileDataStateTracker(  748): ia: Broadcast received: android.intent.action.A
NY_DATA_STATE apnType=ia
D/MobileDataStateTracker(  748): ia: Received state=DISCONNECTED, old=DISCONNECT
ED, reason=dataEnabled
D/dalvikvm(11016): GC_FOR_ALLOC freed 10K, 2% free 21193K/21492K, paused 14ms, t
otal 14ms
D/MobileDataStateTracker(  748): hipri: Broadcast received: android.intent.actio
n.ANY_DATA_STATE apnType=hipri
D/MobileDataStateTracker(  748): hipri: Received state=DISCONNECTED, old=DISCONN
ECTED, reason=dataEnabled
D/MobileDataStateTracker(  748): ims: Broadcast received: android.intent.action.
ANY_DATA_STATE apnType=ims
D/MobileDataStateTracker(  748): ims: Received state=DISCONNECTED, old=DISCONNEC
TED, reason=dataEnabled
D/MobileDataStateTracker(  748): default: Broadcast received: android.intent.act
ion.ANY_DATA_STATE apnType=default
D/MobileDataStateTracker(  748): default: Received state=DISCONNECTED, old=DISCO
NNECTED, reason=dataEnabled
D/MobileDataStateTracker(  748): mms: Broadcast received: android.intent.action.
ANY_DATA_STATE apnType=mms
D/MobileDataStateTracker(  748): mms: Received state=DISCONNECTED, old=DISCONNEC
TED, reason=dataEnabled
D/MobileDataStateTracker(  748): cbs: Broadcast received: android.intent.action.
ANY_DATA_STATE apnType=cbs
D/dalvikvm( 1072): GC_CONCURRENT freed 494K, 4% free 18114K/18780K, paused 3ms+2
ms, total 27ms
D/MobileDataStateTracker(  748): cbs: Received state=DISCONNECTED, old=DISCONNEC
TED, reason=dataEnabled
W/GLSUser ( 1185): GoogleAccountDataService.getToken()
W/GLSUser ( 1185): GoogleAccountDataService.getToken()
W/GLSUser ( 1185): GoogleAccountDataService.getToken()
D/dalvikvm( 1057): GC_CONCURRENT freed 627K, 7% free 18877K/20284K, paused 1ms+4
ms, total 26ms
D/dalvikvm(11016): GC_CONCURRENT freed 151K, 2% free 22449K/22712K, paused 11ms+
5ms, total 31ms
I/Adreno-EGL(11016): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM Build: I04
04c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
D/dalvikvm( 1086): GC_CONCURRENT freed 384K, 3% free 16745K/17176K, paused 2ms+2
ms, total 16ms
D/PhoneStatusBar(  914): disable: < EXPAND icons alerts TICKER system_info back*
 home* RECENT clock search >
D/OpenGLRenderer(11016): Enabling debug mode 0
W/IInputConnectionWrapper(11016): showStatusIcon on inactive InputConnection
I/ActivityManager(  748): Displayed com.google.android.googlequicksearchbox/com.
google.android.velvet.ui.VelvetLockscreenActivity: +608ms (total +611ms)
V/KeyguardServiceDelegate(  748): onScreenTurnedOn(showListener = com.android.in
[email protected])
D/SurfaceFlinger(  182): Screen acquired, type=0 flinger=0xb7da5450
D/qdhwcomposer(  182): hwc_blank: Unblanking display: 0
I/PowerManagerService(  748): Waking up from sleep...
V/KeyguardServiceDelegate(  748): **** SHOWN CALLED ****
I/WindowManager(  748): No lock screen! [email protected]
838
D/dalvikvm(  748): GC_EXPLICIT freed 676K, 25% free 51379K/67720K, paused 3ms+11
ms, total 128ms
D/qdhwcomposer(  182): hwc_blank: Done unblanking display: 0
D/SurfaceControl(  748): Excessive delay in unblankDisplay() while turning scree
n on: 238ms
D/DisplayPowerController(  748): Unblocked screen on after 96822777 ms
I/ActivityManager(  748): Process com.google.android.calendar (pid 10121) has di
ed.
I/VelvetPresenter(11016): setupFromIntent(Intent { act=android.intent.action.MAI
N flg=0x14010000 cmp=com.google.android.googlequicksearchbox/com.google.android.
velvet.ui.VelvetLockscreenActivity (has extras) })
I/VelvetPresenter(11016): Resuming with current state.
 

giovanni645

Member
Dec 9, 2009
33
4
0
This is what happens, in the latest apk, that has hotword detection on while charging. So it wakes up from sleep and goes straight into listening for a command.

Can we initialize the same process using tasker for the bluetooth button pressed?

HTML:
I/HotwordRecognitionRnr(11016): Hotword detection finished
I/HotwordWorker(11016): #onHotwordDetected
I/MicrophoneInputStream(11016): mic_close [email protected]
I/Sdch.Manager(11016): SDCH cache load complete.
I/MediaFocusControl(  748):  AudioFocus  requestAudioFocus() from android.media.
[email protected]@42687a08
V/KeyguardHostView(  914): hide transport, gen:160
I/AudioRouter(11016): ROUTE_NONE->ROUTE_BLUETOOTH_PREFERRED,CONNECTION_TYPE_NONE
->CONNECTION_TYPE_BVRA
D/BluetoothManagerService(  748): Message: 20
D/BluetoothManagerService(  748): Added callback: android.bluetooth.IBluetoothMa
[email protected]:true
D/BluetoothManagerService(  748): Message: 30
V/Avrcp   ( 2450): New genId = 160, clearing = 1
I/HotwordRecognitionRnr(11016): Stopping hotword detection.
I/ActivityManager(  748): START u0 {act=android.intent.action.MAIN flg=0x1401000
0 cmp=com.google.android.googlequicksearchbox/com.google.android.velvet.ui.Velve
tLockscreenActivity (has extras)} from pid 11016
D/dalvikvm(11016): GC_FOR_ALLOC freed 241K, 3% free 19086K/19644K, paused 10ms,
total 15ms
I/dalvikvm-heap(11016): Grow heap (frag case) to 18.973MB for 320016-byte alloca
tion
D/dalvikvm(11016): GC_FOR_ALLOC freed <1K, 3% free 19398K/19960K, paused 11ms, t
otal 11ms
I/MicrophoneInputStream(11016): mic_starting [email protected]
I/IcingCorporaProvider(11016): Updating corpora: APPS=NONE, CONTACTS=DELTA
D/dalvikvm(11016): Trying to load lib /data/app-lib/com.google.android.googlequi
cksearchbox-2/libgoogle_recognizer_jni_l.so 0x42622448
D/BluetoothHeadset(11016): Proxy object connected
I/BluetoothController(11016): No BT device
D/audio_hw_primary(  185): out_set_parameters: enter: usecase(1: low-latency-pla
yback) kvpairs: routing=2
D/audio_hw_primary(  185): select_devices: out_snd_device(0: ) in_snd_device(35:
 voice-rec-mic)
D/        (  185): Failed to fetch the lookup information of the device 0000003E

E/ACDB-LOADER(  185): Error: ACDB AudProc vol returned = -19
I/OMXClient(11016): Using client-side OMX mux.
D/dalvikvm(11016): Added shared lib /data/app-lib/com.google.android.googlequick
searchbox-2/libgoogle_recognizer_jni_l.so 0x42622448
W/Search.SearchUrlHelper(11016): URL param or header written twice. Key: pws, ol
d value: "0" new value: "0"
W/Search.SearchUrlHelper(11016): java.lang.Throwable
W/Search.SearchUrlHelper(11016):        at bmz.b(PG:2336)
W/Search.SearchUrlHelper(11016):        at bmz.O(PG:2343)
W/Search.SearchUrlHelper(11016):        at bmz.dy(PG:2553)
W/Search.SearchUrlHelper(11016):        at bmy.a(PG:1152)
W/Search.SearchUrlHelper(11016):        at bmy.a(PG:1010)
W/Search.SearchUrlHelper(11016):        at gut.a(PG:37)
W/Search.SearchUrlHelper(11016):        at gvc.kb(PG:82)
W/Search.SearchUrlHelper(11016):        at gvd.asM(PG:38)
W/Search.SearchUrlHelper(11016):        at fgj.call(PG:28)
W/Search.SearchUrlHelper(11016):        at java.util.concurrent.FutureTask.run(F
utureTask.java:237)
W/Search.SearchUrlHelper(11016):        at java.util.concurrent.ScheduledThreadP
oolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)

W/Search.SearchUrlHelper(11016):        at java.util.concurrent.ScheduledThreadP
oolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
W/Search.SearchUrlHelper(11016):        at java.util.concurrent.ThreadPoolExecut
or.runWorker(ThreadPoolExecutor.java:1112)
W/Search.SearchUrlHelper(11016):        at java.util.concurrent.ThreadPoolExecut
or$Worker.run(ThreadPoolExecutor.java:587)
W/Search.SearchUrlHelper(11016):        at java.lang.Thread.run(Thread.java:841)

W/Search.SearchUrlHelper(11016):        at did.run(PG:46)
E/OMXMaster(11016): A component of name 'OMX.qcom.audio.decoder.aac' already exi
sts, ignoring this one.
D/dalvikvm(11016): GC_CONCURRENT freed 924K, 5% free 19334K/20292K, paused 3ms+4
ms, total 34ms
D/dalvikvm(11016): WAIT_FOR_CONCURRENT_GC blocked 21ms
I/Greco3EngineManager(11016): create_rm: m=GRAMMAR,l=en-US
D/dalvikvm( 1223): GC_CONCURRENT freed 906K, 9% free 19080K/20816K, paused 2ms+2
ms, total 25ms
D/dalvikvm( 1223): WAIT_FOR_CONCURRENT_GC blocked 19ms
D/dalvikvm( 1223): WAIT_FOR_CONCURRENT_GC blocked 21ms
D/dalvikvm(11016): GC_FOR_ALLOC freed 211K, 3% free 19842K/20292K, paused 12ms,
total 12ms
I/Greco3EngineManager(11016): Brought up new g3 instance :/system/usr/srec/en-US
/grammar.config for: en-USin: 29 ms
D/dalvikvm(11016): GC_FOR_ALLOC freed 17K, 3% free 20331K/20784K, paused 13ms, t
otal 13ms
D/ConnectivityService(  748): startUsingNetworkFeature reconnecting to 0: enable
SUPL
D/ConnectivityService(  748): startUsingNetworkFeature X: return APN_REQUEST_STA
RTED
E/LocSvc_eng(  748): W/AgpsReleasedState: unrecognized event 3
D/ConnectivityService(  748): stopUsingNetworkFeature: teardown net 0: enableSUP
L
D/MobileDataStateTracker(  748): supl: Broadcast received: android.intent.action
.ANY_DATA_STATE apnType=supl
D/MobileDataStateTracker(  748): supl: Received state=CONNECTING, old=DISCONNECT
ED, reason=dataEnabled
D/MobileDataStateTracker(  748): supl: setDetailed state, old =IDLE and new stat
e=CONNECTING
D/MobileDataStateTracker(  748): fota: Broadcast received: android.intent.action
.ANY_DATA_STATE apnType=fota
D/MobileDataStateTracker(  748): fota: Received state=DISCONNECTED, old=DISCONNE
CTED, reason=dataEnabled
D/MobileDataStateTracker(  748): dun: Broadcast received: android.intent.action.
ANY_DATA_STATE apnType=dun
D/MobileDataStateTracker(  748): dun: Received state=DISCONNECTED, old=DISCONNEC
TED, reason=dataEnabled
D/MobileDataStateTracker(  748): ia: Broadcast received: android.intent.action.A
NY_DATA_STATE apnType=ia
D/MobileDataStateTracker(  748): ia: Received state=DISCONNECTED, old=DISCONNECT
ED, reason=dataEnabled
D/dalvikvm(11016): GC_FOR_ALLOC freed 10K, 2% free 21193K/21492K, paused 14ms, t
otal 14ms
D/MobileDataStateTracker(  748): hipri: Broadcast received: android.intent.actio
n.ANY_DATA_STATE apnType=hipri
D/MobileDataStateTracker(  748): hipri: Received state=DISCONNECTED, old=DISCONN
ECTED, reason=dataEnabled
D/MobileDataStateTracker(  748): ims: Broadcast received: android.intent.action.
ANY_DATA_STATE apnType=ims
D/MobileDataStateTracker(  748): ims: Received state=DISCONNECTED, old=DISCONNEC
TED, reason=dataEnabled
D/MobileDataStateTracker(  748): default: Broadcast received: android.intent.act
ion.ANY_DATA_STATE apnType=default
D/MobileDataStateTracker(  748): default: Received state=DISCONNECTED, old=DISCO
NNECTED, reason=dataEnabled
D/MobileDataStateTracker(  748): mms: Broadcast received: android.intent.action.
ANY_DATA_STATE apnType=mms
D/MobileDataStateTracker(  748): mms: Received state=DISCONNECTED, old=DISCONNEC
TED, reason=dataEnabled
D/MobileDataStateTracker(  748): cbs: Broadcast received: android.intent.action.
ANY_DATA_STATE apnType=cbs
D/dalvikvm( 1072): GC_CONCURRENT freed 494K, 4% free 18114K/18780K, paused 3ms+2
ms, total 27ms
D/MobileDataStateTracker(  748): cbs: Received state=DISCONNECTED, old=DISCONNEC
TED, reason=dataEnabled
W/GLSUser ( 1185): GoogleAccountDataService.getToken()
W/GLSUser ( 1185): GoogleAccountDataService.getToken()
W/GLSUser ( 1185): GoogleAccountDataService.getToken()
D/dalvikvm( 1057): GC_CONCURRENT freed 627K, 7% free 18877K/20284K, paused 1ms+4
ms, total 26ms
D/dalvikvm(11016): GC_CONCURRENT freed 151K, 2% free 22449K/22712K, paused 11ms+
5ms, total 31ms
I/Adreno-EGL(11016): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM Build: I04
04c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
D/dalvikvm( 1086): GC_CONCURRENT freed 384K, 3% free 16745K/17176K, paused 2ms+2
ms, total 16ms
D/PhoneStatusBar(  914): disable: < EXPAND icons alerts TICKER system_info back*
 home* RECENT clock search >
D/OpenGLRenderer(11016): Enabling debug mode 0
W/IInputConnectionWrapper(11016): showStatusIcon on inactive InputConnection
I/ActivityManager(  748): Displayed com.google.android.googlequicksearchbox/com.
google.android.velvet.ui.VelvetLockscreenActivity: +608ms (total +611ms)
V/KeyguardServiceDelegate(  748): onScreenTurnedOn(showListener = com.android.in
[email protected])
D/SurfaceFlinger(  182): Screen acquired, type=0 flinger=0xb7da5450
D/qdhwcomposer(  182): hwc_blank: Unblanking display: 0
I/PowerManagerService(  748): Waking up from sleep...
V/KeyguardServiceDelegate(  748): **** SHOWN CALLED ****
I/WindowManager(  748): No lock screen! [email protected]
838
D/dalvikvm(  748): GC_EXPLICIT freed 676K, 25% free 51379K/67720K, paused 3ms+11
ms, total 128ms
D/qdhwcomposer(  182): hwc_blank: Done unblanking display: 0
D/SurfaceControl(  748): Excessive delay in unblankDisplay() while turning scree
n on: 238ms
D/DisplayPowerController(  748): Unblocked screen on after 96822777 ms
I/ActivityManager(  748): Process com.google.android.calendar (pid 10121) has di
ed.
I/VelvetPresenter(11016): setupFromIntent(Intent { act=android.intent.action.MAI
N flg=0x14010000 cmp=com.google.android.googlequicksearchbox/com.google.android.
velvet.ui.VelvetLockscreenActivity (has extras) })
I/VelvetPresenter(11016): Resuming with current state.

also, came across this while trying - not possible through tasker eh? -

W/Tasker ( 4242): 15.10.09#Utils: warning: startActivityWrapper: unexpected exc
eption: java.lang.SecurityException: Permission Denial: starting Intent { act=an
droid.intent.action.VIEW cat=[android.intent.category.LAUNCHER] flg=0x30800004 c
mp=com.google.android.googlequicksearchbox/com.google.android.velvet.ui.VelvetLo
ckscreenActivity } from ProcessRecord{43506488 4242:net.dinglisch.android.tasker
m/u0a263} (pid=4242, uid=10263) not exported from uid 10023
I/MusicLeanback( 6024): Conditions not met for autocaching.
I/ActivityManager( 748): START u0 {act=android.intent.action.VIEW cat=[android.
intent.category.LAUNCHER] flg=0x30800004 cmp=com.google.android.googlequicksearc
hbox/com.google.android.velvet.ui.VelvetLockscreenActivity} from pid 4242
W/ActivityManager( 748): Permission Denial: starting Intent { act=android.inten
t.action.VIEW cat=[android.intent.category.LAUNCHER] flg=0x30800004 cmp=com.goog
le.android.googlequicksearchbox/com.google.android.velvet.ui.VelvetLockscreenAct
ivity } from ProcessRecord{43506488 4242:net.dinglisch.android.taskerm/u0a263} (
pid=4242, uid=10263) not exported from uid 10023