[Galaxy 3 Android Development] moikop:
Found another.. weird.. bug

If I boot the phone with my headphones plugged in, it'd just bootloop.

W/dalvikvm( 2483): threadid=9: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 2483): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 2483): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.HEADSET_PLUG flg=0x40000000 (has extras) } in android.media.AudioService$AudioServiceBroadcastReceiver@407db940
E/AndroidRuntime( 2483):	at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
E/AndroidRuntime( 2483):	at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 2483):	at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 2483):	at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2483):	at com.android.server.ServerThread.run(SystemServer.java:653)
E/AndroidRuntime( 2483): Caused by: java.lang.IllegalStateException: Cannot broadcast before boot completed
E/AndroidRuntime( 2483):	at com.android.server.am.ActivityManagerService.verifyBroadcastLocked(ActivityManagerService.java:10526)
E/AndroidRuntime( 2483):	at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:10543)
E/AndroidRuntime( 2483):	at android.app.ContextImpl.sendBroadcast(ContextImpl.java:683)
E/AndroidRuntime( 2483):	at android.media.AudioService.sendVolumeUpdate(AudioService.java:532)
E/AndroidRuntime( 2483):	at android.media.AudioService.setStreamVolume(AudioService.java:520)
E/AndroidRuntime( 2483):	at android.media.AudioService$AudioServiceBroadcastReceiver.onReceive(AudioService.java:1969)
E/AndroidRuntime( 2483):	at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
E/AndroidRuntime( 2483):	... 4 more
I/Process ( 2483): Sending signal. PID: 2483 SIG: 9
I/Zygote ( 2371): Exit zygote because system server (2483) has terminated
E/installd( 2374): eof
E/installd( 2374): failed to read size
I/installd( 2374): closing connection
E/ActivityThread( 2540): Failure accessing package redirection map, removing theme support.
I/ServiceManager( 2366): service 'sensorservice' died
I/ServiceManager( 2366): service 'entropy' died
I/ServiceManager( 2366): service 'power' died
I/ServiceManager( 2366): service 'SurfaceFlinger' died
I/ServiceManager( 2366): service 'accessibility' died
I/ServiceManager( 2366): service 'batteryinfo' died
I/ServiceManager( 2366): service 'usagestats' died
I/ServiceManager( 2366): service 'telephony.registry' died
I/ServiceManager( 2366): service 'connectivity' died
I/ServiceManager( 2366): service 'package' died
I/ServiceManager( 2366): service 'activity' died
I/ServiceManager( 2366): service 'meminfo' died
I/ServiceManager( 2366): service 'cpuinfo' died
I/ServiceManager( 2366): service 'permission' died
I/ServiceManager( 2366): service 'account' died
I/ServiceManager( 2366): service 'mount' died
I/ServiceManager( 2366): service 'profile' died
I/ServiceManager( 2366): service 'notification' died
I/ServiceManager( 2366): service 'devicestoragemonitor' died
D/BootAnimation( 2495): SurfaceFlinger died, exiting...
I/ServiceManager( 2366): service 'location' died
I/ServiceManager( 2366): service 'search' died
I/ServiceManager( 2366): service 'dropbox' died
I/ServiceManager( 2366): service 'wallpaper' died
I/ServiceManager( 2366): service 'battery' died
I/ServiceManager( 2366): service 'content' died
I/ServiceManager( 2366): service 'hardware' died
I/ServiceManager( 2366): service 'vibrator' died
I/ServiceManager( 2366): service 'alarm' died
I/ServiceManager( 2366): service 'throttle' died
I/ServiceManager( 2366): service 'window' died
I/ServiceManager( 2366): service 'bluetooth' died
I/ServiceManager( 2366): service 'bluetooth_a2dp' died
I/ServiceManager( 2366): service 'bluetooth_hid' died
I/ServiceManager( 2366): service 'bluetooth_network' died
I/ServiceManager( 2366): service 'device_policy' died
I/ServiceManager( 2366): service 'network_management' died
I/ServiceManager( 2366): service 'statusbar' died
I/ServiceManager( 2366): service 'clipboard' died
I/ServiceManager( 2366): service 'appwidget' died
I/ServiceManager( 2366): service 'diskstats' died
I/ServiceManager( 2366): service 'assetredirection' died
I/ServiceManager( 2366): service 'audio' died
I/ServiceManager( 2366): service 'usb' died
I/ServiceManager( 2366): service 'uimode' died
I/ServiceManager( 2366): service 'backup' died
I/ServiceManager( 2366): service 'input_method' died
I/ServiceManager( 2366): service 'netstat' died
I/ServiceManager( 2366): service 'wifi' died
I/ServiceManager( 2540): Waiting for service SurfaceFlinger...
I/ServiceManager( 2366): service 'media.audio_flinger' died
I/ServiceManager( 2366): service 'media.audio_policy' died
I/ServiceManager( 2366): service 'media.player' died
I/ServiceManager( 2366): service 'media.camera' died
...

Of course, because of the "nature" of this bug, if I unplug the headphones it'll boot normally.

This is weird and low priority, but worth to mention..