baljeetverma / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

doesn't work autoenable blotooth #185

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Auto enable blutooth doesn't work. On HTC hero.
2.
3.

What is the expected output? What do you see instead?

Please paste the application's log here (it should now be on your
clipboard):
I/BluetoothService(   78): mJBtlBmg.cancelSearch() completed sychronously
D/BluetoothService(   78): Sending ACTION_DISCOVERY_FINISHED intent
D/RemoteNotifier(18197): Connecting to Bluetooth device ANDREYNOTEBOOK
D/BluetoothSppPort(18197): Creating a BluetoothSpp proxy object
D/BluetoothSppService(   78): createPort called!
D/BluetoothSppService(   78): createPort checking uuid
D/BluetoothSppService(   78): createPort 
UUID=7674047e-6e47-4bf0-831f-209e3f9dd23f auth=true encrypt=true
D/BluetoothSppService(   78): createPort enforcing bluetooth perm
D/BluetoothSppService(   78): createPort creating a jbtlspp object
D/BluetoothSppService(   78): createPort checking if the btl spp object is valid
D/BluetoothSppService(   78): createPort try to create an spp container
D/BluetoothSppService(   78): createPort try to create security params
D/BluetoothSppService(   78): createPort Set Security L2
D/BluetoothSppService(   78): createPort spp port create
D/BluetoothSppService(   78): port create returned status SUCCESS
D/BluetoothSppService(   78): port enable returned status SUCCESS
D/BluetoothSppService(   78): connectPort called!
D/BluetoothSppService(   78): connectPort received bdaddress:00:21:86:7F:13:EA
D/BluetoothSppService(   78): Trying to connect to 00:21:86:7F:13:EA
D/BluetoothSppService(   78): port setServiceName returned status SUCCESS
D/BluetoothService(   78): Callback - accessbileChange, btErrCode = NO_ERROR, 
mode = CONNECTABLE_ONLY
D/BluetoothService(   78): Sending ACTION_SCAN_MODE_CHANGED intent, mode = 21
D/BluetoothService(   78): Callback - linkConnectCnf, btErrCode = NO_ERROR, 
bdAddr = 00:21:86:7F:13:EA
D/BluetoothService(   78): onRemoteDeviceConnected, device 00:21:86:7F:13:EA is 
Paired
D/BluetoothService(   78): Sending ACTION_ACL_CONNECTED intent, address = 
00:21:86:7F:13:EA
D/BluetoothA2dpService(   78): Received intent with action: 
android.bluetooth.device.action.ACL_CONNECTED
D/BluetoothSppService(   78): connected called!
D/BluetoothSocket(18197): SppPort connected()
D/BluetoothSppService(   78): port connect returned status SUCCESS
D/BluetoothSocket(18197): BluetoothSocket close()
D/BluetoothSppPort(18197): BluetoothSppPort disconnect()
D/BluetoothSppService(   78): disconnectPort called!
D/BluetoothSppService(   78): port disconnect returned status SUCCESS
D/BluetoothSocket(18197): mSppPort.disconnect() returned true
D/BluetoothSppPort(18197): BluetoothSppPort destroy
D/BluetoothSppService(   78): destroyPort called!
D/BluetoothSppService(   78): port disconnect returned status SUCCESS
D/BluetoothSppService(   78): close called!
D/BluetoothSppService(   78): port disable returned status SUCCESS
D/BluetoothSppService(   78): port destroy returned status SUCCESS
D/BluetoothSocket(18197): mSppPort.destroy() returned true
D/RemoteNotifier(18197): Sent notification over Bluetooth (0 retries).
D/BluetoothService(   78): Callback - linkDisconnect, btErrCode = 
LOCAL_TERMINATED, bdAddr = 00:21:86:7F:13:EA, status = NO_ERROR
D/BluetoothService(   78): Sending ACTION_ACL_DISCONNECTED intent, address = 
00:21:86:7F:13:EA
D/BluetoothService(   78): Callback - accessbileChange, btErrCode = NO_ERROR, 
mode = CONNECTABLE_ONLY
D/BluetoothService(   78): Sending ACTION_SCAN_MODE_CHANGED intent, mode = 21
D/RemoteNotifier(18197): Sending notification: 
v2/2001459694de9961/42c92ffe75e4a/PING//Проверка уведомлений
I/BluetoothService(   78): mJBtlBmg.cancelSearch() completed sychronously
D/BluetoothService(   78): Sending ACTION_DISCOVERY_FINISHED intent
I/BluetoothService(   78): mJBtlBmg.cancelSearch() completed sychronously
D/BluetoothService(   78): Sending ACTION_DISCOVERY_FINISHED intent
D/RemoteNotifier(18197): Connecting to Bluetooth device ANDREYNOTEBOOK
D/BluetoothSppPort(18197): Creating a BluetoothSpp proxy object
D/BluetoothSppService(   78): createPort called!
D/BluetoothSppService(   78): createPort checking uuid
D/BluetoothSppService(   78): createPort 
UUID=7674047e-6e47-4bf0-831f-209e3f9dd23f auth=true encrypt=true
D/BluetoothSppService(   78): createPort enforcing bluetooth perm
D/BluetoothSppService(   78): createPort creating a jbtlspp object
D/BluetoothSppService(   78): createPort checking if the btl spp object is valid
D/BluetoothSppService(   78): createPort try to create an spp container
D/BluetoothSppService(   78): createPort try to create security params
D/BluetoothSppService(   78): createPort Set Security L2
D/BluetoothSppService(   78): createPort spp port create
D/BluetoothSppService(   78): port create returned status SUCCESS
D/BluetoothSppService(   78): port enable returned status SUCCESS
D/BluetoothSppService(   78): connectPort called!
D/BluetoothSppService(   78): connectPort received bdaddress:00:21:86:7F:13:EA
D/BluetoothSppService(   78): Trying to connect to 00:21:86:7F:13:EA
D/BluetoothSppService(   78): port setServiceName returned status SUCCESS
D/BluetoothService(   78): Callback - accessbileChange, btErrCode = NO_ERROR, 
mode = CONNECTABLE_ONLY
D/BluetoothService(   78): Sending ACTION_SCAN_MODE_CHANGED intent, mode = 21
D/BluetoothService(   78): Callback - linkConnectCnf, btErrCode = NO_ERROR, 
bdAddr = 00:21:86:7F:13:EA
D/BluetoothService(   78): onRemoteDeviceConnected, device 00:21:86:7F:13:EA is 
Paired
D/BluetoothService(   78): Sending ACTION_ACL_CONNECTED intent, address = 
00:21:86:7F:13:EA
D/BluetoothA2dpService(   78): Received intent with action: 
android.bluetooth.device.action.ACL_CONNECTED
D/BluetoothSppService(   78): connected called!
D/BluetoothSocket(18197): SppPort connected()
D/BluetoothSppService(   78): port connect returned status SUCCESS
D/BluetoothSocket(18197): BluetoothSocket close()
D/BluetoothSppPort(18197): BluetoothSppPort disconnect()
D/BluetoothSppService(   78): disconnectPort called!
D/BluetoothSppService(   78): port disconnect returned status SUCCESS
D/BluetoothSocket(18197): mSppPort.disconnect() returned true
D/BluetoothSppPort(18197): BluetoothSppPort destroy
D/BluetoothSppService(   78): destroyPort called!
D/BluetoothSppService(   78): port disconnect returned status SUCCESS
D/BluetoothSppService(   78): close called!
D/BluetoothSppService(   78): port disable returned status SUCCESS
D/BluetoothSppService(   78): port destroy returned status SUCCESS
D/BluetoothSocket(18197): mSppPort.destroy() returned true
D/RemoteNotifier(18197): Sent notification over Bluetooth (0 retries).
D/BluetoothService(   78): Callback - linkDisconnect, btErrCode = 
LOCAL_TERMINATED, bdAddr = 00:21:86:7F:13:EA, status = NO_ERROR
D/BluetoothService(   78): Sending ACTION_ACL_DISCONNECTED intent, address = 
00:21:86:7F:13:EA
D/BluetoothService(   78): Callback - accessbileChange, btErrCode = NO_ERROR, 
mode = CONNECTABLE_ONLY
D/BluetoothService(   78): Sending ACTION_SCAN_MODE_CHANGED intent, mode = 21
D/RemoteNotifier(18197): Sending notification: 
v2/2001459694de9961/42c9300424882/PING//Проверка уведомлений
I/BluetoothService(   78): mJBtlBmg.cancelSearch() completed sychronously
D/BluetoothService(   78): Sending ACTION_DISCOVERY_FINISHED intent
I/BluetoothService(   78): mJBtlBmg.cancelSearch() completed sychronously
D/BluetoothService(   78): Sending ACTION_DISCOVERY_FINISHED intent
D/RemoteNotifier(18197): Connecting to Bluetooth device ANDREYNOTEBOOK
D/BluetoothSppPort(18197): Creating a BluetoothSpp proxy object
D/BluetoothSppService(   78): createPort called!
D/BluetoothSppService(   78): createPort checking uuid
D/BluetoothSppService(   78): createPort 
UUID=7674047e-6e47-4bf0-831f-209e3f9dd23f auth=true encrypt=true
D/BluetoothSppService(   78): createPort enforcing bluetooth perm
D/BluetoothSppService(   78): createPort creating a jbtlspp object
D/BluetoothSppService(   78): createPort checking if the btl spp object is valid
D/BluetoothSppService(   78): createPort try to create an spp container
D/BluetoothSppService(   78): createPort try to create security params
D/BluetoothSppService(   78): createPort Set Security L2
D/BluetoothSppService(   78): createPort spp port create
D/BluetoothSppService(   78): port create returned status SUCCESS
D/BluetoothSppService(   78): port enable returned status SUCCESS
D/BluetoothSppService(   78): connectPort called!
D/BluetoothSppService(   78): connectPort received bdaddress:00:21:86:7F:13:EA
D/BluetoothSppService(   78): Trying to connect to 00:21:86:7F:13:EA
D/BluetoothSppService(   78): port setServiceName returned status SUCCESS
D/BluetoothService(   78): Callback - accessbileChange, btErrCode = NO_ERROR, 
mode = CONNECTABLE_ONLY
D/BluetoothService(   78): Sending ACTION_SCAN_MODE_CHANGED intent, mode = 21
D/BluetoothService(   78): Callback - linkConnectCnf, btErrCode = NO_ERROR, 
bdAddr = 00:21:86:7F:13:EA
D/BluetoothService(   78): onRemoteDeviceConnected, device 00:21:86:7F:13:EA is 
Paired
D/BluetoothService(   78): Sending ACTION_ACL_CONNECTED intent, address = 
00:21:86:7F:13:EA
D/BluetoothA2dpService(   78): Received intent with action: 
android.bluetooth.device.action.ACL_CONNECTED
D/BluetoothSppService(   78): connected called!
D/BluetoothSocket(18197): SppPort connected()
D/BluetoothSppService(   78): port connect returned status SUCCESS
D/BluetoothSocket(18197): BluetoothSocket close()
D/BluetoothSppPort(18197): BluetoothSppPort disconnect()
D/BluetoothSppService(   78): disconnectPort called!
D/BluetoothSppService(   78): port disconnect returned status SUCCESS
D/BluetoothSppService(   78): close called!
D/BluetoothSocket(18197): mSppPort.disconnect() returned true
D/BluetoothSppPort(18197): BluetoothSppPort destroy
D/BluetoothSppService(   78): destroyPort called!
D/BluetoothSppService(   78): port disconnect returned status SUCCESS
D/BluetoothSppService(   78): port disable returned status SUCCESS
D/BluetoothSppService(   78): port destroy returned status SUCCESS
D/BluetoothSocket(18197): mSppPort.destroy() returned true
D/RemoteNotifier(18197): Sent notification over Bluetooth (0 retries).
D/BluetoothService(   78): Callback - linkDisconnect, btErrCode = 
LOCAL_TERMINATED, bdAddr = 00:21:86:7F:13:EA, status = NO_ERROR
D/BluetoothService(   78): Sending ACTION_ACL_DISCONNECTED intent, address = 
00:21:86:7F:13:EA
D/BluetoothService(   78): Callback - accessbileChange, btErrCode = NO_ERROR, 
mode = CONNECTABLE_ONLY
D/BluetoothService(   78): Sending ACTION_SCAN_MODE_CHANGED intent, mode = 21
D/BluetoothService(   78): getUuidFromCache, address = 00:21:86:7F:13:EA
D/BluetoothService(   78): getUuidFromCache, getKnownDeviceInfo for 
00:21:86:7F:13:EA returned SDP mask 1
D/BluetoothService(   78): sdpMaskToUuidsList, mask = 1
D/WifiService(   78): acquireWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44a44ea0}
D/WifiService(   78): enable and start wifi due to updateWifiState
D/BluetoothService(   78): Bluetooth state 12 -> 13
D/BluetoothService(   78): Sending ACTION_STATE_CHANGED intent, new 
mBluetoothState = 13
D/BluetoothService(   78): releaseWakeLock: called while lock isn't active!
D/BluetoothAvrcpService(   78): Received intent with action: 
android.bluetooth.adapter.action.STATE_CHANGED
D/BluetoothPbapService(   78): Received intent with action: 
android.bluetooth.adapter.action.STATE_CHANGED
D/BluetoothService(   78): Callback - radioOffComplete, status = SUCCESS
D/BluetoothService(   78): onDeamonStop: forceStop: false
V/BluetoothEventRedirector(18336): Received 
android.bluetooth.adapter.action.STATE_CHANGED
D/BluetoothService(   78): Sending ACTION_SCAN_MODE_CHANGED intent, mode = 20
D/BluetoothService(   78): Bluetooth state 13 -> 10
D/BluetoothService(   78): Sending ACTION_STATE_CHANGED intent, new 
mBluetoothState = 10
V/BluetoothFtpsReceiver(18293): FtpsReceiver onReceive: 
android.bluetooth.adapter.action.STATE_CHANGED
V/BluetoothEventRedirector(18336): Received 
android.bluetooth.adapter.action.STATE_CHANGED
I/BluetoothPbapService(   78): mJBtlPbaps.disable Success 
D/BluetoothA2dpService(   78): Received intent with action: 
android.bluetooth.adapter.action.STATE_CHANGED
D/BluetoothAvrcpService(   78): Received intent with action: 
android.bluetooth.adapter.action.STATE_CHANGED
D/BluetoothPbapService(   78): Received intent with action: 
android.bluetooth.adapter.action.STATE_CHANGED
D/BluetoothA2dpService(   78): Received intent with action: 
android.bluetooth.adapter.action.STATE_CHANGED
D/WifiService(   78): releaseWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44a44ea0}
D/WifiService(   78): enable and start wifi due to updateWifiState
V/BluetoothFtpsReceiver(18293): FtpsReceiver onReceive: 
android.bluetooth.adapter.action.STATE_CHANGED
E/BluetoothService(   78): cannot call this function when bluetooth is off
E/BluetoothService(   78): cannot call this function when bluetooth is off
D/RemoteNotifier(18197): Sending notification: 
v2/2001459694de9961/42c93019c6f38/PING//Проверка уведомлений
E/BluetoothService(   78): cannot call this function when bluetooth is off
E/BluetoothService(   78): cannot call this function when bluetooth is off

What version of Android are you using?

Original issue reported on code.google.com by andrey.lashkov on 28 Sep 2010 at 9:42

GoogleCodeExporter commented 9 years ago
I think I have the same issue.
Starting the notifiert in the morning and having auto-BT enabled, doesn't work. 
I need to manually enable BT on the phone, send a test nofitication, then turn 
off BT -> now auto enable works.
Desire, 2.2, linux client

Original comment by peter.v...@gmail.com on 29 Sep 2010 at 7:36