I'm trying to download a large .zip file from a web server but I have a weird behaviour, the description is:
I'm executing the code in the device emulator, API level 3 (version 1.5) with an SD card of 512MB. I start the device with "Wipe data user"
The length of the size from conexion.getContentLength() is 7012725
The server address is localhost (10.0.2.2), but I've tried with an external server and the behaviour is the same. I've double checked that I can download the file through a web browser.
I have these permisions in the manifest file:
-
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
The error:
It starts downloading the file, I can see the text 10, 20, 30, 40, 50 and then it stops at 60.
After a while, the emulator reboots itself.
Workarounds:
This issue in stackoverflow is working in the device, not in my case.
About this wifi lock issue what I've done is add this permission "android.permission.WAKE_LOCK" and then this piece of code, but with exactly the same behaviour:
WifiManager.WifiLock wifilock;
WifiManager manager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
wifilock = manager.createWifiLock("wifilock");
wifilock.acquire();
...
wifilock.release();
Here is the code, that it's being executing in a separate thread:
private void downloadData(){
try{
Log.v(TAG, "downloading data");
URL url = new URL("http://10.0.2.2/1.zip");
URLConnection connection = url.openConnection();
connection.connect();
int lenghtOfFile = connection.getContentLength();
Log.v(TAG, "lenghtOfFile = "+lenghtOfFile);
InputStream is = url.openStream();
File testDirectory = new File(Environment.getExternalStorageDirectory()+"/testDirectory/");
if(!testDirectory.exists()){
testDirectory.mkdir();
}
FileOutputStream fos = new FileOutputStream(testDirectory+"/files.zip");
byte data[] = new byte[1024];
int count = 0;
long total = 0;
int progress = 0;
while ((count=is.read(data)) != -1)
{
total += count;
int progress_temp = (int)total*100/lenghtOfFile;
if(progress_temp%10 == 0 && progress != progress_temp){
progress = progress_temp;
Log.v(TAG, "total = "+progress);
}
fos.write(data, 0, count);
}
is.close();
fos.close();
Log.v(TAG, "downloading finished");
}catch(Exception e){
Log.v(TAG, "exception in downloadData");
e.printStackTrace();
}
}
Any clue?
Thank you very much.
Update with more log description:
Hi Chris, I've tried to discover what
was going on at first with this log in
the Eclipse environment. Here are a
little bit more detail about what is
happening (time - action), note that
I've changed the file to download for
another one in orther to do more
tests, but the results are quite the
same:
00:00 It starts downloading:
V/iPhoto ( 853): downloading data
V/iPhoto ( 853): lenghtOfFile = 7732809
V/iPhoto ( 853): total = 10
V/iPhoto ( 853): total = 20
V/iPhoto ( 853): total = 30
V/iPhoto ( 853): total = 40
V/iPhoto ( 853): total = 50 (round 00:05)
-> Here it stops and the DDMS disconnects the device immediately
03:40 It finish the download (not always) and the device reboots on its own:
I/Process ( 595): Sending signal. PID: 595 SIG: 3
I/dalvikvm( 595): threadid=7: reacting to signal 3
D/dalvikvm( 722): GC freed 2193 objects / 135808 bytes in 176 sec
V/iPhoto ( 853): total = 60
I/dalvikvm( 595): Wrote stack trace to '/data/anr/traces.txt'
I/ActivityManager( 595): Process com.google.android.apps.maps:FriendService (pid 778) has died.
I/ActivityManager( 595): Process com.android.mms (pid 732) has died.
V/iPhoto ( 853): total = 70
V/iPhoto ( 853): total = 80
V/iPhoto ( 853): total = 90
V/iPhoto ( 853): total = 100
V/iPhoto ( 853): downloading finished
V/iPhoto ( 853): thread finish loading
I/Process ( 595): Sending signal. PID: 595 SIG: 9
I/ActivityThread( 757): Removing dead content provider: settings
I/ActivityThread( 748): Removing dead content provider: settings
I/ActivityThread( 722): Removing dead content provider: settings
I/ActivityThread( 700): Removing dead content provider: settings
I/ServiceManager( 549): service 'package' died
... services dying...
I/ServiceManager( 549): service 'wifi' died
E/installd( 557): eof
E/installd( 557): failed to read size
I/installd( 557): closing connection
D/qemud ( 560): fdhandler_event: disconnect on fd 11
D/qemud ( 560): fdhandler_event: disconnect on fd 12
E/vold ( 550): Framework disconnected
I/Zygote ( 554): Exit zygote because system server (595) has terminated
I/ServiceManager( 549): service 'simphonebook' died
I/ServiceManager( 549): service 'isms' died
I/ServiceManager( 549): service 'iphonesubinfo' died
I/ServiceManager( 549): service 'phone' died
D/AndroidRuntime( 949):
D/AndroidRuntime( 949): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
... and starting ...
Could anyone try my code and to download a zip file with size round 8MB? Does it works for you?
I've just tried this code in a real device and it works perfectly. There must be something weird in the emulator.
The "emulator rebooting itself" does not sound good. I would recommend you start up logcat on the dev machine and log to a file... ie, on a linux dev machine something like
adb logcat | tee logfile
Then look at the logfile and see what you can learn about why it rebooted.
Related
how do I get application wise battery usage on android device
I have used below command and the out put listed below.
adb shell dumpsys batterystats --unplugged com.honeywell.tools.ezconfig
How do I convert below information into useful?. Like 15% battery consumed by ezconfig app.
Battery History:
-9m49s747ms 100 64020043 status=discharging health=good plug=none temp
=317 volt=4145 +wifi +wifi_running +wake_lock +sensor brightness=light signal_st
rength=great
-9m49s507ms 100 24020043 -wake_lock
-9m46s968ms 100 24020043
-9m43s749ms 100 24020043 volt=4107
-9m38s472ms 100 240a0043 status=full plug=ac temp=318 +plugged
Per-PID Stats:
PID 1184 wake time: +1s315ms
PID 5096 wake time: +1s18ms
PID 1184 wake time: +29ms
PID 1945 wake time: +188ms
PID 2125 wake time: +42ms
PID 3757 wake time: +25ms
PID 1184 wake time: +11ms
PID 1184 wake time: +12ms
PID 4008 wake time: +90ms
PID 7441 wake time: +28ms
Statistics since last unplugged:
Time on battery: 11s 275ms (1.9%) realtime, 11s 275ms (1.9%) uptime
Total run time: 9m 49s 748ms realtime, 9m 49s 748ms uptime,
Screen on: 0ms (0.0%), Input events: 0, Active phone call: 0ms (0.0%)
Screen brightnesses: No activity
Mobile total received: 0B, Total sent: 0B
Wi-Fi total received: 0B, Total sent: 0B
Total full wakelock time: 0ms , Total partial wakelock time: 1s 151ms
Signal levels: great 11s 275ms (100.0%) 0x
Signal scanning time: 0ms
Radio types: none 11s 275ms (100.0%) 0x
Radio data uptime when unplugged: 0 ms
Wifi on: 11s 275ms (100.0%), Wifi running: 11s 275ms (100.0%), Bluetooth on: 0
ms (0.0%)
Device is currently plugged into power
Last discharge cycle start level: 100
Last discharge cycle end level: 100
Amount discharged while screen on: 0
Amount discharged while screen off: 0
1000:
User activity: 6 other, 1 touch
Wake lock SCREEN_FROZEN: 187ms partial (1 times) realtime
Wake lock StartingDockService: 832ms partial (1 times) realtime
Wake lock DockObserver: 10ms partial (1 times) realtime
Wake lock AlarmManager: 56ms partial (1 times) realtime
TOTAL wake: 1s 85ms partial realtime
Sensor 21: 11s 275ms realtime (0 times)
Sensor 33: 11s 275ms realtime (0 times)
Proc mm-pp-daemon:
CPU: 0ms usr + 180ms krn ; 0ms fg
Proc charger_monitor:
CPU: 0ms usr + 20ms krn ; 0ms fg
Proc com.honeywell.licenseservice:
CPU: 0ms usr + 10ms krn ; 0ms fg
Proc com.qualcomm.qualcommsettings:
CPU: 0ms usr + 10ms krn ; 0ms fg
Proc surfaceflinger:
CPU: 70ms usr + 100ms krn ; 0ms fg
Proc com.android.settings:
CPU: 10ms usr + 0ms krn ; 0ms fg
Proc system_server:
CPU: 540ms usr + 370ms krn ; 0ms fg
Proc com.hsm.android.counters:
CPU: 20ms usr + 0ms krn ; 0ms fg
Proc com.honeywell.tools.honsystemservice:
CPU: 10ms usr + 0ms krn ; 0ms fg
Apk com.android.settings:
Service com.android.settings.bluetooth.DockService:
Created for: 1s 8ms uptime
Starts: 1, launches: 1
I have successfully ported android for sabre-sdp board,and it is booting till init process after that it is showing (init:untrackedpid xxxx).I have all the log from booting process to end and also ihave collected logcat logs also . please go through ,if you find any solution help me out.
Thanks in advance for your support
Logcat LOGS
------------------------------------------------------------------
root#android:/ # logcat
--------- beginning of /dev/log/main
D/ ( 2351): init_sensors
D/ ( 2351): find sensor name mma845x
D/ ( 2351): input device 'mma845x' opened, fd = 8
E/installd( 2348): Could not create directories; exiting.
I/DEBUG ( 2342): debuggerd: May 13 2013 18:03:14
D/ ( 2351): find sensor name mag3110
D/ ( 2351): input device 'mag3110' opened, fd = 10
D/MagDaemon( 2351): magnetic sensor calibrate daemon start
D/MagCalibrated( 2351): fl_calib = 1
D/MagDaemon( 2351): magnetic calibrate daemon set threshold 100.000000
E/keystore( 2349): chdir: /data/misc/keystore: No such file or directory
--------- beginning of /dev/log/system
I/Vold ( 2340): Vold 2.1 (the revenge) firing up
D/Vold ( 2340): Volume udisk state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 2340): Volume extsd state changing -1 (Initializing) -> 0 (No-Media)
I/Netd ( 2341): Netd 1.0 starting
D/Vold ( 2340): Volume extsd state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 2340): Volume extsd state changing 2 (Pending) -> 1 (Idle-Unmounted)
E/DirectVolume( 2340): Invalid 'PARTN' value
E/DirectVolume( 2340): Invalid 'PARTN' value
D/MDnsDS ( 2341): MDnsSdListener::Hander starting up
D/MDnsDS ( 2341): MDnsSdListener starting to monitor
D/MDnsDS ( 2341): Going to poll with pollCount 1
I/mediaserver( 2346): ServiceManager: 0x41992ce0
I/AudioFlinger( 2346): Using default 3000 mSec as standby time.
I/CameraService( 2346): CameraService started (pid=2346)
I/FslCameraHAL( 2346): Face Back Camera is ov5640_mipi, orient is 0
I/FslCameraHAL( 2346): Face Front Camera is uvc,ov5642_camera,ov5640_camera, orient is 0
D/AndroidRuntime( 2344):
D/AndroidRuntime( 2344): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 2344): CheckJNI is ON
I/AndroidRuntime( 2344): JNI options: '-Xjniopts:warnonly'
E/dalvikvm( 2344): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 2344): Unable to open or create cache for /system/framework/core.jar (/data/dalvik-cache/system#framework#core.jar#classes.dex)
D/dalvikvm( 2344): Unable to process classpath element '/system/framework/core.jar'
I/SurfaceFlinger( 2343): SurfaceFlinger is starting
E/dalvikvm( 2344): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 2344): Unable to open or create cache for /system/framework/core-junit.jar (/data/dalvik-cache/system#framework#core-junit.jar#classes.dex)
D/dalvikvm( 2344): Unable to process classpath element '/system/framework/core-junit.jar'
I/SurfaceFlinger( 2343): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
E/dalvikvm( 2344): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 2344): Unable to open or create cache for /system/framework/bouncycastle.jar (/data/dalvik-cache/system#framework#bouncycastle.jar#classes.dex)
D/dalvikvm( 2344): Unable to process classpath element '/system/framework/bouncycastle.jar'
E/dalvikvm( 2344): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 2344): Unable to open or create cache for /system/framework/ext.jar (/data/dalvik-cache/system#framework#ext.jar#classes.dex)
D/dalvikvm( 2344): Unable to process classpath element '/system/framework/ext.jar'
E/dalvikvm( 2344): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 2344): Unable to open or create cache for /system/framework/framework.jar (/data/dalvik-cache/system#framework#framework.jar#classes.dex)
D/dalvikvm( 2344): Unable to process classpath element '/system/framework/framework.jar'
D/dalvikvm( 2344): Unable to stat classpath element '/system/framework/telephony-common.jar'
D/dalvikvm( 2344): Unable to stat classpath element '/system/framework/mms-common.jar'
E/dalvikvm( 2344): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 2344): Unable to open or create cache for /system/framework/android.policy.jar (/data/dalvik-cache/system#framework#android.policy.jar#classes.dex)
D/dalvikvm( 2344): Unable to process classpath element '/system/framework/android.policy.jar'
W/imx6.gralloc( 2343): 32bpp setting of Framebuffer catched!
E/dalvikvm( 2344): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 2344): Unable to open or create cache for /system/framework/services.jar (/data/dalvik-cache/system#framework#services.jar#classes.dex)
D/dalvikvm( 2344): Unable to process classpath element '/system/framework/services.jar'
E/dalvikvm( 2344): Could not stat dex cache directory '/data/dalvik-cache': No such file or directory
I/dalvikvm( 2344): Unable to open or create cache for /system/framework/apache-xml.jar (/data/dalvik-cache/system#framework#apache-xml.jar#classes.dex)
D/dalvikvm( 2344): Unable to process classpath element '/system/framework/apache-xml.jar'
E/dalvikvm( 2344): No valid entries found in bootclasspath '/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar'
E/dalvikvm( 2344): VM aborting
F/libc ( 2344): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 2344 (zygote)
Had the same issue. This happens when the data partition didnt get flash properly. Watch out for indications like:
dd: writing to ‘/dev/mmcblk0’: No space left on device
or
[65561.466071] EXT4-fs (mmcblk0p4): bad geometry: block count 1653768 exceeds size of device (1639176 blocks)
[65602.323558] EXT4-fs (mmcblk0p4): bad geometry: block count 1653768 exceeds size of device (1639176 blocks)
Getting a larger SDCard would be a better idea.
I'm using the Facebook SDK on Android to post an update to the user's feed. I was able to get it to work when I did not have the Facebook client installed. Now, even after removing the Facebook app, when I try to authorize or open the feed dialog the activity is abrupty killed.
I don't get any message telling me that the app has crashed or anything. It's just destroyed. The only message is Mono telling me that the thread 0x0 has been prematurely finalized, which is odd. Also, there's this odd "Not supported in this case." message from webcore.
I'm using the NativeActivity class. I don't use it directly but I extend it in my activity. Here's the logcat from around where things go wrong:
I/PixelWorldEngine( 6796): Authorizing for Facebook...
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webview.db, flag = 6, cannot stat file, error message: No such file or directory
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webview.db, mode: delete, disk free size: 35 M, handle: 0x801450
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webviewCache.db, flag = 6, cannot stat file, error message: No such file or directory
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webviewCache.db, mode: delete, disk free size: 35 M, handle: 0x7ff128
D/skia ( 6796): htcFlashPlugin::htcFlashPlugin
W/webcore ( 6796): Not supported in this case.
I/PixelWorld-glue( 6796): WindowFocusChanged: 0x333288 -- 0
D/SensorService( 120): disable: connection.get() = 0x9f5c20
D/SensorService( 120): disable: get sensor name = BMA150 3-axis Accelerometer
D/SensorService( 120): SensorDevice::activate: handle = 0x0, enabled = 0x0
D/Sensors ( 120): Enable akm: en = 0
D/SensorService( 120): noteStopSensor: uid = 0x274d, handle = 0x0
D/SensorService( 120): pid=6796, uid=10061
D/SensorService( 120): Active sensors:
D/SensorService( 120): CM3602 Light sensor (handle=0x00000004, connections=1)
W/webcore ( 6796): Not supported in this case.
W/mono ( 6796): Thread 0x0 may have been prematurely finalized
D/SensorGUI( 120): ~SensorChannel: mSendFd = 255, mReceiveFd = -1
D/AudioPolicyService( 72): stopOutput() tid 2223
D/AudioPolicyService( 72): releaseOutput() tid 2223
D/AudioPolicyService( 72): releaseOutput() tid 2223
I/ActivityManager( 120): Process com.ri.BubblingUpLite (pid 6796) has died.
I/WindowManager( 120): WIN DEATH: Window{407e9548 com.ri.BubblingUpLite/com.ri.PixelWorldEngine.GameActivity paused=false}
I think it's an Android bug which seems to manifest on HTC devices.
See http://code.google.com/p/android/issues/detail?id=33612
I bought Sanei N80 android tablet two months back(android 2.3).I tried to root using z4root app.It stuck in the middle so i switched off and switched on the tablet.Now the tablet is not booting up stays in the splash screen (refer attached screenshot1.png).
I also tried to reboot it using recovery mode, again its stuck and displaying warning icon with android image (refer attached screenshot2.png). I am pasting the logs for reference.
Kindly please please please help.I don't know how to proceed.
Log, while normal booting.
D/AndroidRuntime( 1309): >>>>>> AndroidRuntime START
com.android.internal.os.ZygoteInit <<<<<< D/AndroidRuntime( 1309):
CheckJNI is OFF D/dalvikvm( 1309): creating instr width table
D/dalvikvm( 1309): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 1309): ODEX file is stale or bad; removing and retrying
(/data/dalvik-cache/system#framework#framework.jar#classes.dex)
D/dalvikvm( 1309): Zip inflate: partial write (will retry): (4056 of
32768) E/dalvikvm( 1309): Zip inflate: write failed: No space left on
device E/dalvikvm( 1309): Unable to extract+optimize DEX from
'/system/framework/framework.jar' D/dalvikvm( 1309): Unable to process
classpath element '/system/framework/framework.jar' E/JNIHelp ( 1309):
Native registration unable to find class 'android/debug/JNITest'
E/AndroidRuntime( 1309): Unable to register all android natives
I/ServiceManager( 79): service 'media.camera' died I/ServiceManager(
79): service 'media.audio_flinger' died I/ServiceManager( 79): service
'media.player' died I/ServiceManager( 79): service
'media.audio_policy' died I/Netd ( 1311): Netd 1.0 starting I/ (
1310): ServiceManager: 0xacb0 E/AudioHardware( 1310): Can't load
libsecril-client.so D/AudioHardwareInterface( 1310): setMode(NORMAL)
I/CameraService( 1310): CameraService started (pid=1310)
I/AudioFlinger( 1310): AudioFlinger's thread 0xc7b8 ready to run
D/AudioHardware( 1310): AudioStreamOutALSA::setParameters() routing=2
D/AudioHardware( 1310): ### setVoiceVolume_l
Thanks in advance
This is not really something I'm developing, more like something I'm trying to debug. For some reason my HTC Desire HD keeps disconnecting from my car's bluetooth. It worked fine on phone's original rom, then I upgraded to Gingerbread (HTC rom) and it started to disconnect. I'm not sure what happened next (possibly I've installed something? mb the car's computer was reset as I had a service?) but it actually started to work after a few months and all was good until I upgraded again to 2.3.5 (HTC official upgrade). The phone connects to my car without any issues, then looses the connection within a minute and will not reconnect until the phone or the car's restarted. Here's some log data that I was able to collect in case someone might be familiar with how the bluetooth works on android:
I//system/bin/btld(23506): ##### USERIAL_Ioctl: BT_Sleep, USERIAL_IO_BT_WAKE_DEASSERT ####
W/ (23507): bta_dm_pm_timer_cback 0x255fa4
W/ (23507): dm_pm_timer expires 0
W/ (23507): proc dm_pm_timer expires
I//system/bin/btld(23506): ##### USERIAL_Ioctl: BT_Wake, USERIAL_IO_BT_WAKE_ASSERT ####
I/PTIM (23507): Call GKI_add_to_timer_list in ptim_start_timer
W/ (23507): start dm_pm_timer:0, 5000
D/dalvikvm(23586): GC_CONCURRENT freed 381K, 48% free 3295K/6279K, external 0K/0K, paused 2ms+3ms
I/keystore( 1264): uid: 1000 action: e -> 7 state: 1 -> 1 retry: 4
I/BtAtPhonebook( 1631): Refreshed phonebook ME with 255 results
I/keystore( 1264): uid: 1000 action: e -> 7 state: 1 -> 1 retry: 4
I/BtAtPhonebook( 1631): Refreshed phonebook ME with 255 results
D/dalvikvm(15887): GC_EXPLICIT freed 124K, 44% free 4129K/7303K, external 0K/512K, paused 79ms
I//system/bin/btld(23506): ##### USERIAL_Ioctl: BT_Sleep, USERIAL_IO_BT_WAKE_DEASSERT ####
W/ (23507): stop dm_pm_timer:0
W/HeadsetBase.cpp( 1631): RFCOMM poll() returned success (1), but with an unexpected revents bitmask: 0x11
I/HeadsetBase( 1631): headset read error 5
I//system/bin/btld(23506): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DISCONNECT_IND (AG) 8 pbytes (hdl 18)
I//system/bin/btld(23506): BTL_IF_DisconnectDatapath: Disconnect datapath on handle 21
I//system/bin/btld(23506): wrp_setup_rxflow: wrp_setup_rxflow : 0 (fd 21)
I//system/bin/btld(23506): wsactive_del: delete wsock 21 from active list [212ef8]
I//system/bin/btld(23506): wrp_close_data: wrp_close 21 [brcm.bt.btlif]
I//system/bin/btld(23506): wsactive_del: delete wsock 21 from active list [212ef8]
I/BTL_IFC ( 1631): btl_ifc_ctrl_rx: [BTL_IFC CTRL] recv BTLIF_DISCONNECT_IND (AG) 10 pbytes (hdl 92)
D/BLZ_WRAPPER( 1631): blz_ctrl_msg: [blz ctrl] received message [BTLIF_DISCONNECT_IND]
D/BLZ_WRAPPER( 1631): blz_ctrl_msg: Channel disconnected remotely, rf_ch 65535
I/BTL_IFC_WRP( 1631): wrp_find_wsock_by_rfhdl: wrp_find_wsock_by_rfhdl : no entry found, lst 0, rfchan 65535
I/BLZ_WRAPPER( 1631): btl_if_close: btl_if_close (105)
D/BLZ_WRAPPER( 1631): btl_if_close: [btl_if_close] : (105:100), disc_pending 0, asnc 0, selct 0, flags 2
I/BTL_IFC ( 1631): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_DISCONNECT_REQ (AG) 8 pbytes (hdl 92)
W/ (23507): Could not find conn_info for chdl=0x3
D/BluetoothHeadsetService( 1631): Device: 00:13:A9:A1:19:1E Headset state 2 -> 0, result = 0
W/ (23507): BTA_DM_LINK_DOWN_EVT::bdaddr 00:13:a9:a1:19:1e reason x15
D/DTUN_HCID4(23540): dtun_dm_sig_link_down()
I/DTUN_HCID4(23540): dtun_dm_sig_link_down device = 0xf750 handle = 256 reason = 0x15
I//system/bin/btld(23506): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 11 pbytes (hdl 17)
D/BTL_IFC_WRP( 1631): wrp_close_s_only: wrp_close_s_only [105] (105:100) [brcm.bt.btlif]
D/BTL_IFC_WRP( 1631): wrp_close_s_only: data socket closed
D/BTL_IFC_WRP( 1631): wsactive_del: delete wsock 105 from active list [ad3ca3c0]
I/DTUN_HCID4(23540): [embedded]LINK_DOWN name = UHP, address = 00:13:A9:A1:19:1E, reason = 0x15
D/BluetoothService( 1379): Device property changed:00:13:A9:A1:19:1E property:Connected
I/BluetoothHeadsetService( 1631): [embedded] HSP/HFP state : address: 00:13:A9:A1:19:1E name: UHP State:2->0
I/BTL_IFC ( 1631): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_DISCONNECT_REQ (SCO) 0 pbytes (hdl 102)
W/ (23507): Could not find conn_info with active SCO
I/BluetoothA2dpService( 1379): BluetoothHeadset disconnected, remove AV CONNECT_TO msg
I/StatusBarPolicy( 1577): updateBluetooth bt icon:true,HS:0,A2DP:false
D/AudioPolicyManagerBase( 1260): setDeviceConnectionState() device: 40, state 0, address 00:13:A9:A1:19:1E
I/AudioPolicyManagerBase( 1260): setOutputDevice() output 4 device 0 delayMs 0
I/AudioPolicyManagerBase( 1260): setOutputDevice() setting same device 0 or null device for output 4
I/BluetoothDeviceProfileState( 1379): Entering IncomingHandsfree state with: 6
I/BluetoothDeviceProfileState( 1379): Processing command:6
I/BluetoothDeviceProfileState( 1379): Entering ACL Connected state with: 102
I/NaviReceiver(23556): Got BluetoothHeadset.ACTION_STATE_CHANGED
I/NaviReceiver(23556): conn state = 0