[HD2 Android NAND Development] jean marc:
Bluetooth issue.

Here is the Logcat, I am not use for this and I'd just type logcat on the emulator just before to enable the Bluetooth, I hope you can find something about the bug.

Other can you tell me what to type to retrieve the Logcat.

--------- beginning of /dev/log/system
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home recent clock >
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41565350 (uid=10019 pid=7252)
I/ActivityManager( 181): START {act=android.intent.action.CALL_PRIVILEGED dat=tel:xxxxxxxx cmp=com.android.phone/.PrivilegedOutgoingCallBroadcaster} from pid 25604
I/ActivityManager( 181): START {act=com.android.phone.SIP_SELECT_PHONE dat=tel:xxxxxxxx flg=0x10000000 cmp=com.android.phone/.SipCallOptionHandler (has extras)} from pid 331
I/ActivityManager( 181): START {act=android.intent.action.MAIN flg=0x10840000 cmp=com.android.phone/.MiuiInCallScreen} from pid 331
D/PhoneStatusBar( 257): disable: < expand icons ALERTS* ticker system_info back home recent clock >
D/PhoneStatusBar( 257): disable: < EXPAND* icons ALERTS ticker system_info back home recent clock >
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41e279c8 (uid=10007 pid=25604)
D/PhoneStatusBar( 257): disable: < expand* icons ALERTS ticker system_info back home recent clock >
I/WindowManager( 181): No lock screen!
D/PhoneStatusBar( 257): disable: < EXPAND* icons ALERTS ticker system_info back home recent clock >
D/StatusBar.NetworkController( 257): updateTelephonySignalStrength: mSignalStrength == 15(GSM) 16(CDMA)
I/PowerManagerService( 181): clearUserActivity for 10000ms from now
I/ActivityManager( 181): moveTaskToBack: 70
D/PhoneStatusBar( 257): disable: < expand* icons ALERTS ticker system_info back home recent clock >
D/PhoneStatusBar( 257): disable: < expand icons alerts* ticker system_info back home recent clock >
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home RECENT* clock >
D/PhoneStatusBar( 257): disable: < EXPAND* icons alerts TICKER* system_info back home RECENT clock >
D/PhoneStatusBar( 257): disable: < EXPAND icons alerts TICKER system_info BACK* HOME* RECENT clock >
W/ActivityManager( 181): Timeout of broadcast BroadcastRecord{428b40c8 com.android.server.action.NETWORK_STATS_POLL} - receiver=android.app.LoadedApk$ReceiverDispatcher$InnerReceiver@418c9448, started 10004ms ago
W/ActivityManager( 181): Receiver during timeout: BroadcastFilter{418c55a8 ReceiverList{418c5550 181 system/1000 local:418c9448}}
W/NetworkStats( 181): problem registering for global alert: java.lang.IllegalStateException: Error communicating to native daemon
W/ActivityManager( 181): finishReceiver called but no pending broadcasts
D/StatusBar.NetworkController( 257): updateTelephonySignalStrength: mSignalStrength == 21(GSM) 16(CDMA)
I/WindowManager( 181): Lock screen displayed!
I/WindowManager( 181): Lock screen displayed!
D/PhoneStatusBar( 257): disable: < expand* icons alerts ticker* system_info BACK HOME recent* clock >
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back* home* recent clock >
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41724560
I/ActivityManager( 181): START {act=android.intent.action.CALL_PRIVILEGED dat=tel:xxxxxxxx cmp=com.android.phone/.PrivilegedOutgoingCallBroadcaster} from pid 25604
I/ActivityManager( 181): START {act=com.android.phone.SIP_SELECT_PHONE dat=tel:xxxxxxxx flg=0x10000000 cmp=com.android.phone/.SipCallOptionHandler (has extras)} from pid 331
I/ActivityManager( 181): START {act=android.intent.action.MAIN flg=0x10840000 cmp=com.android.phone/.MiuiInCallScreen} from pid 331
D/PhoneStatusBar( 257): disable: < expand icons ALERTS* ticker system_info back home recent clock >
D/PhoneStatusBar( 257): disable: < EXPAND* icons ALERTS ticker system_info back home recent clock >
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41e279c8 (uid=10007 pid=25604)
D/PhoneStatusBar( 257): disable: < expand* icons ALERTS ticker system_info back home recent clock >
I/WindowManager( 181): No lock screen!
D/PhoneStatusBar( 257): disable: < EXPAND* icons ALERTS ticker system_info back home recent clock >
D/StatusBar.NetworkController( 257): updateTelephonySignalStrength: mSignalStrength == 15(GSM) 16(CDMA)
D/PhoneStatusBar( 257): disable: < expand* icons ALERTS ticker system_info back home recent clock >
I/WindowManager( 181): No lock screen!
D/PhoneStatusBar( 257): disable: < EXPAND* icons ALERTS ticker system_info back home recent clock >
D/StatusBar.NetworkController( 257): updateTelephonySignalStrength: mSignalStrength == 19(GSM) 16(CDMA)
I/PowerManagerService( 181): clearUserActivity for 10000ms from now
I/ActivityManager( 181): moveTaskToBack: 70
D/PhoneStatusBar( 257): disable: < expand* icons ALERTS ticker system_info back home recent clock >
D/PhoneStatusBar( 257): disable: < expand icons alerts* ticker system_info back home recent clock >
I/ActivityManager( 181): START {act=android.intent.action.CALL_PRIVILEGED dat=tel:xxxxxxxx cmp=com.android.phone/.PrivilegedOutgoingCallBroadcaster} from pid 25604
I/ActivityManager( 181): START {act=com.android.phone.SIP_SELECT_PHONE dat=tel:xxxxxxxx flg=0x10000000 cmp=com.android.phone/.SipCallOptionHandler (has extras)} from pid 331
I/ActivityManager( 181): Config changed: {1.15 280mcc1mnc en_US layoutdir=0 sw320dp w533dp h294dp nrml long land finger -keyb/v/h -nav/h s.16 themeChanged=0 themeChangedFlags=0}
I/ActivityManager( 181): START {act=android.intent.action.MAIN flg=0x10840000 cmp=com.android.phone/.MiuiInCallScreen} from pid 331
I/ActivityManager( 181): Config changed: {1.15 280mcc1mnc en_US layoutdir=0 sw320dp w320dp h508dp nrml long port finger -keyb/v/h -nav/h s.17 themeChanged=0 themeChangedFlags=0}
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41e279c8 (uid=10007 pid=25604)
D/PhoneStatusBar( 257): disable: < EXPAND* icons ALERTS* ticker system_info back home recent clock >
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@416f0830
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41741040
I/PowerManagerService( 181): clearUserActivity for 10000ms from now
I/ActivityManager( 181): moveTaskToBack: 70
D/PhoneStatusBar( 257): disable: < expand* icons ALERTS ticker system_info back home recent clock >
D/PhoneStatusBar( 257): disable: < expand icons alerts* ticker system_info back home recent clock >
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41865ac0
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home recent clock >
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41e279c8 (uid=10007 pid=25604)
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home recent clock >
D/PhoneStatusBar( 257): disable: < EXPAND* icons alerts TICKER* system_info back home RECENT* clock >
D/PhoneStatusBar( 257): disable: < EXPAND icons alerts TICKER system_info BACK* HOME* RECENT clock >
D/PhoneStatusBar( 257): disable: < EXPAND icons alerts TICKER system_info BACK HOME RECENT clock >
I/WindowManager( 181): Lock screen displayed!
D/PhoneStatusBar( 257): disable: < expand* icons alerts ticker* system_info BACK HOME recent* clock >
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back* home* recent clock >
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41548430
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@414c4120
I/ActivityManager( 181): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=evervolv.androidterm/.Term bnds=[239,200][343,335]} from pid 7252
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home recent clock >
I/ActivityManager( 181): Start proc evervolv.androidterm for activity evervolv.androidterm/.Term: pid=26293 uid=10049 gids={3003, 1015}
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4157e748
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home recent clock >
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@4159c7c8 (uid=10049 pid=26293)
I/ActivityManager( 181): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=evervolv.androidterm/.Term bnds=[239,200][343,335]} from pid 7252
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home recent clock >
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41565350 (uid=10019 pid=7252)
D/StatusBar.NetworkController( 257): updateTelephonySignalStrength: mSignalStrength == 12(GSM) 16(CDMA)
D/StatusBar.NetworkController( 257): updateTelephonySignalStrength: mSignalStrength == 25(GSM) 16(CDMA)
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@418c21d8
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home RECENT* clock >
D/PhoneStatusBar( 257): disable: < EXPAND* icons alerts TICKER* system_info back home RECENT clock >
D/PhoneStatusBar( 257): disable: < EXPAND icons alerts TICKER system_info BACK* HOME* RECENT clock >
D/StatusBar.NetworkController( 257): updateTelephonySignalStrength: mSignalStrength == 12(GSM) 16(CDMA)
I/WindowManager( 181): Lock screen displayed!
D/PhoneStatusBar( 257): disable: < expand* icons alerts ticker* system_info BACK HOME recent* clock >
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back* home* recent clock >
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@415a7bc0
I/ActivityManager( 181): START {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.miui.home/.launcher.Launcher} from pid 181
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home recent clock >
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@4159c7c8 (uid=10049 pid=26293)
I/ActivityManager( 181): Start proc com.android.settings for broadcast com.android.settings/.bluetooth.DockEventReceiver: pid=26340 uid=1000 gids={1015, 3002, 3001, 3003, 3006, 3007}
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4158bce0
I/ActivityManager( 181): Start proc com.android.bluetooth for broadcast com.android.bluetooth/.pbap.BluetoothPbapReceiver: pid=26359 uid=10047 gids={3003, 3002, 3001, 1015}
I/ActivityManager( 181): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=evervolv.androidterm/.Term bnds=[239,200][343,335]} from pid 7252
D/PhoneStatusBar( 257): disable: < expand icons alerts ticker system_info back home recent clock >
W/InputManagerService( 181): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41565350 (uid=10019 pid=7252)
E/AndroidRuntime( 257): FATAL EXCEPTION: main
E/AndroidRuntime( 257): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.BLUETOOTH_HANDSFREE_BATTERY_CHANGED flg=0x10 (has extras) } in com.android.systemui.statusbar.phone.l@414eec78
E/AndroidRuntime( 257): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java)
E/AndroidRuntime( 257): at android.os.Handler.handleCallback(Handler.java)
E/AndroidRuntime( 257): at android.os.Handler.dispatchMessage(Handler.java)
E/AndroidRuntime( 257): at android.os.Looper.loop(Looper.java)
E/AndroidRuntime( 257): at android.app.ActivityThread.main(ActivityThread.java)
E/AndroidRuntime( 257): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 257): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 257): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
E/AndroidRuntime( 257): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
E/AndroidRuntime( 257): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 257): Caused by: java.lang.SecurityException: invalid status bar icon slot: bluetooth_handsfree_battery
E/AndroidRuntime( 257): at android.os.Parcel.readException(Parcel.java)
E/AndroidRuntime( 257): at android.os.Parcel.readException(Parcel.java)
E/AndroidRuntime( 257): at com.android.internal.statusbar.IStatusB****rvice$Stub$Proxy.setIcon(IStatusB****rvice.java)
E/AndroidRuntime( 257): at android.app.StatusBarManager.setIcon(StatusBarManager.java)
E/AndroidRuntime( 257): at com.android.systemui.statusbar.phone.E.i(PhoneStatusBarPolicy.java:358)
E/AndroidRuntime( 257): at com.android.systemui.statusbar.phone.E.h(PhoneStatusBarPolicy.java:44)
E/AndroidRuntime( 257): at com.android.systemui.statusbar.phone.l.onReceive(PhoneStatusBarPolicy.java:139)
E/AndroidRuntime( 257): ... 10 more
W/InputManagerService( 181): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@423c9f98
I/WindowManager( 181): WIN DEATH: Window{415ad300 StatusBarExpanded paused=false}
I/ActivityManager( 181): Process com.android.systemui (pid 257) has died.
W/ActivityManager( 181): Scheduling restart of crashed service com.android.systemui/.SystemUIService in 1250ms
W/ActivityManager( 181): Scheduling restart of crashed service com.android.systemui/.ImageWallpaper in 11250ms
W/WallpaperService( 181): Wallpaper service gone: ComponentInfo{com.android.systemui/com.android.systemui.ImageWallpaper}
I/WindowManager( 181): WIN DEATH: Window{415acc20 TrackingView paused=false}
I/WindowManager( 181): WIN DEATH: Window{41544eb8 com.android.systemui.ImageWallpaper paused=false}
I/WindowManager( 181): WIN DEATH: Window{41583090 StatusBar paused=false}
I/ActivityManager( 181): Start proc com.android.systemui for restart com.android.systemui: pid=26387 uid=1000 gids={1015, 3002, 3001, 3003, 3006, 3007}
W/Watchdog( 181): *** WATCHDOG KILLING SYSTEM PROCESS: com.android.server.am.ActivityManagerService

Waiting for your diagnostic.:o