[Galaxy S II Original Android Development] asafteirobert:
I'm having a big problem with the phone rebooting when I try to install an apk through adb(usually when developing and testing apps with Eclipse or Unity).

It does not happen all the time. Usually after a reboot it works, but if I try to install the apk a second time, the phone reboots again.

See the attached log below. This is causing the restart(system_server being killed), but I'm not sure why this is happening:

07-25 14:17:08.120: W/Vold(1843): com.twinsen.PhysicsBlocks-1 unmount attempt 3 failed (Device or resource busy)

07-25 14:17:08.310: E/ProcessKiller(1843): Process system_server (8454) has open file /mnt/asec/com.twinsen.PhysicsBlocks-1/pkg.apk

07-25 14:17:08.310: W/ProcessKiller(1843): Sending SIGHUP to process 8454

This is the log when I try to install an apk with the package name of com.twinsen.PhysicsBlocks, through adb.

07-25 14:16:50.870: D/AndroidRuntime(11736): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<

07-25 14:16:50.870: D/AndroidRuntime(11736): CheckJNI is OFF

07-25 14:16:50.875: D/dalvikvm(11736): Unable to stat classpath element '/system/framework/okhttp.jar'

07-25 14:16:50.890: D/dalvikvm(11736): Trying to load lib libjavacore.so 0x0

07-25 14:16:50.900: D/dalvikvm(11736): Added shared lib libjavacore.so 0x0

07-25 14:16:50.910: D/dalvikvm(11736): Trying to load lib libnativehelper.so 0x0

07-25 14:16:50.910: D/dalvikvm(11736): Added shared lib libnativehelper.so 0x0

07-25 14:16:51.090: D/AndroidRuntime(11736): Calling main entry com.android.commands.pm.Pm

07-25 14:16:52.415: W/ActivityManager(8454): No content provider found for permission revoke: file:///data/local/tmp/Package.apk

07-25 14:16:52.440: D/Finsky(9378): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 7

07-25 14:16:52.490: D/Finsky(9378): [1] WorkerTask.onPreExecute: Verification Requested for id = 7, data=file:///data/local/tmp/Package.apk flags=106 fromVerificationActivity=false

07-25 14:16:52.915: D/dalvikvm(9378): GC_CONCURRENT freed 869K, 32% free 5153K/7484K, paused 2ms+4ms, total 65ms

07-25 14:16:56.095: I/qtaguid(9378): Failed write_ctrl(u 66) res=-1 errno=22

07-25 14:16:56.095: I/qtaguid(9378): Untagging socket 66 failed errno=-22

07-25 14:16:56.095: W/NetworkManagementSocketTagger(9378): untagSocket(66) failed with errno -22

07-25 14:16:56.095: D/Finsky(9378): [1] 2.onResponse: Verification id=7 response=0

07-25 14:16:56.110: D/Finsky(9378): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 7

07-25 14:16:58.755: I//system/bin/make_ext4fs(1843): Creating filesystem with parameters:

07-25 14:16:58.755: I//system/bin/make_ext4fs(1843): Size: 35155968

07-25 14:16:58.760: I//system/bin/make_ext4fs(1843): Block size: 4096

07-25 14:16:58.760: I//system/bin/make_ext4fs(1843): Blocks per group: 32768

07-25 14:16:58.760: I//system/bin/make_ext4fs(1843): Inodes per group: 2160

07-25 14:16:58.765: I//system/bin/make_ext4fs(1843): Inode size: 256

07-25 14:16:58.770: I//system/bin/make_ext4fs(1843): Journal blocks: 0

07-25 14:16:58.770: I//system/bin/make_ext4fs(1843): Label:

07-25 14:16:58.770: I//system/bin/make_ext4fs(1843): Blocks: 8583

07-25 14:16:58.775: I//system/bin/make_ext4fs(1843): Block groups: 1

07-25 14:16:58.785: I//system/bin/make_ext4fs(1843): Reserved block group size: 7

07-25 14:16:58.790: I//system/bin/make_ext4fs(1843): Created filesystem with 11/2160 inodes and 149/8583 blocks

07-25 14:16:58.920: I/Vold(1843): Filesystem (ext4) formatted OK

07-25 14:16:58.930: E/VoldConnector(8454): NDC Command {53 asec create smdl2tmp1 33 ext4 4fe5eb41a53b5d604d4aaba3e4a3088b 10008 1} took too long (2786ms)

07-25 14:17:00.095: D/dalvikvm(9547): GC_CONCURRENT freed 526K, 64% free 2697K/7376K, paused 2ms+2ms, total 24ms

07-25 14:17:00.095: D/dalvikvm(9547): WAIT_FOR_CONCURRENT_GC blocked 11ms

07-25 14:17:00.130: D/dalvikvm(9547): GC_CONCURRENT freed 371K, 62% free 2828K/7376K, paused 2ms+4ms, total 16ms

07-25 14:17:00.130: D/dalvikvm(9547): WAIT_FOR_CONCURRENT_GC blocked 1ms

07-25 14:17:00.205: D/dalvikvm(9547): GC_CONCURRENT freed 533K, 63% free 2758K/7376K, paused 3ms+3ms, total 26ms

07-25 14:17:01.475: D/dalvikvm(10267): GC_EXPLICIT freed 28K, 70% free 2262K/7376K, paused 2ms+1ms, total 13ms

07-25 14:17:01.540: D/dalvikvm(8454): GC_EXPLICIT freed 956K, 21% free 9505K/11908K, paused 2ms+5ms, total 65ms

07-25 14:17:01.615: W/ActivityManager(8454): No content provider found for permission revoke: file:///data/local/tmp/Package.apk

07-25 14:17:03.060: D/dalvikvm(8454): GC_EXPLICIT freed 548K, 20% free 9545K/11908K, paused 2ms+6ms, total 65ms

07-25 14:17:03.415: W/PackageManager(8454): Mounting container com.twinsen.PhysicsBlocks-2

07-25 14:17:03.535: I/PackageManager(8454): Succesfully renamed smdl2tmp1 to com.twinsen.PhysicsBlocks-2 at new path: /mnt/asec/com.twinsen.PhysicsBlocks-2

07-25 14:17:03.535: I/PackageManager(8454): Removing non-system package:com.twinsen.PhysicsBlocks

07-25 14:17:03.535: I/ActivityManager(8454): Force stopping package com.twinsen.PhysicsBlocks appid=10082 user=-1

07-25 14:17:03.535: I/ActivityManager(8454): Killing proc 11667:com.twinsen.PhysicsBlocks/u0a10082: force stop com.twinsen.PhysicsBlocks

07-25 14:17:03.540: I/ActivityManager(8454): Force finishing activity ActivityRecord{40ea9880 u0 com.twinsen.PhysicsBlocks/com.unity3d.player.UnityPlayerNativeActivity}

07-25 14:17:03.560: I/WindowState(8454): WIN DEATH: Window{412750c8 u0 com.twinsen.PhysicsBlocks/com.unity3d.player.UnityPlayerNativeActivity}

07-25 14:17:03.560: W/WindowManager(8454): Force-removing child win Window{412b2c90 u0 SurfaceView} from container Window{412750c8 u0 com.twinsen.PhysicsBlocks/com.unity3d.player.UnityPlayerNativeActivity}

07-25 14:17:03.570: W/WindowManager(8454): Failed looking up window

07-25 14:17:03.570: W/WindowManager(8454): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@41318bd8 does not exist

07-25 14:17:03.570: W/WindowManager(8454):	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8207)

07-25 14:17:03.570: W/WindowManager(8454):	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8198)

07-25 14:17:03.570: W/WindowManager(8454):	at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:933)

07-25 14:17:03.570: W/WindowManager(8454):	at android.os.BinderProxy.sendDeathNotice(Binder.java:433)

07-25 14:17:03.570: W/WindowManager(8454):	at dalvik.system.NativeStart.run(Native Method)

07-25 14:17:03.570: I/WindowState(8454): WIN DEATH: null

07-25 14:17:03.585: I/PackageManager(8454): Running dexopt on: com.twinsen.PhysicsBlocks

07-25 14:17:03.585: I/PackageManager(8454): Package com.twinsen.PhysicsBlocks codePath changed from /mnt/asec/com.twinsen.PhysicsBlocks-1/pkg.apk to /mnt/asec/com.twinsen.PhysicsBlocks-2/pkg.apk; Retaining data and using new

07-25 14:17:03.620: D/dalvikvm(11806): Unable to stat classpath element '/system/framework/okhttp.jar'

07-25 14:17:03.735: D/dalvikvm(11806): DexOpt: load 43ms, verify+opt 60ms, 620236 bytes

07-25 14:17:03.740: I/ActivityManager(8454): Force stopping package com.twinsen.PhysicsBlocks appid=10082 user=-1

07-25 14:17:03.740: W/PackageManager(8454): Code path for pkg : com.twinsen.PhysicsBlocks changing from /mnt/asec/com.twinsen.PhysicsBlocks-1/pkg.apk to /mnt/asec/com.twinsen.PhysicsBlocks-2/pkg.apk

07-25 14:17:03.740: W/PackageManager(8454): Resource path for pkg : com.twinsen.PhysicsBlocks changing from /mnt/asec/com.twinsen.PhysicsBlocks-1/pkg.apk to /mnt/asec/com.twinsen.PhysicsBlocks-2/pkg.apk

07-25 14:17:03.770: D/PackageManager(8454): New package installed in /mnt/asec/com.twinsen.PhysicsBlocks-2/pkg.apk

07-25 14:17:04.525: E/VoldConnector(8454): NDC Command {63 asec fixperms com.twinsen.PhysicsBlocks-2 -1 null} took too long (732ms)

07-25 14:17:04.540: I/ActivityManager(8454): Force stopping package com.twinsen.PhysicsBlocks appid=10082 user=0

07-25 14:17:04.725: D/dalvikvm(8654): GC_EXPLICIT freed 1269K, 21% free 6867K/8628K, paused 10ms+14ms, total 156ms

07-25 14:17:04.785: D/dalvikvm(10429): GC_EXPLICIT freed 319K, 66% free 2573K/7376K, paused 9ms+6ms, total 175ms

07-25 14:17:04.800: D/dalvikvm(9378): GC_EXPLICIT freed 252K, 32% free 5113K/7484K, paused 86ms+10ms, total 242ms

07-25 14:17:04.815: I/InputReader(8454): Reconfiguring input devices. changes=0x00000010

07-25 14:17:04.835: I/InputReader(8454): Reconfiguring input devices. changes=0x00000010

07-25 14:17:04.855: I/ThemeManager(10493): Handling replaced theme package: com.twinsen.PhysicsBlocks

07-25 14:17:04.990: W/RecognitionManagerService(8454): no available voice recognition services found for user 0

07-25 14:17:05.030: W/ContextImpl(10465): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1404 android.content.ContextWrapper.startService:450 android.content.ContextWrapper.startService:450 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2504

07-25 14:17:05.220: W/Searchables(8454): No global search activity found

07-25 14:17:05.240: W/Searchables(8454): No global search activity found

07-25 14:17:05.295: D/dalvikvm(9031): GC_EXPLICIT freed 2518K, 62% free 2813K/7376K, paused 82ms+3ms, total 129ms

07-25 14:17:05.370: D/dalvikvm(8454): GC_EXPLICIT freed 1553K, 19% free 9653K/11908K, paused 15ms+109ms, total 326ms

07-25 14:17:05.495: D/dalvikvm(11083): GC_EXPLICIT freed 1052K, 66% free 2508K/7376K, paused 3ms+3ms, total 29ms

07-25 14:17:05.530: D/dalvikvm(8747): GC_CONCURRENT freed 478K, 51% free 3682K/7376K, paused 2ms+2ms, total 50ms

07-25 14:17:05.535: I/GCoreUlr(8747): Ensuring that reporting is stopped because of reasons: {account#0#=[InactiveReason{mVersionCode=0, mIdentifier=5, mName='ReportingNotSelected'}]}

07-25 14:17:05.535: D/GCoreFlp(8747): Unknown pending intent to remove.

07-25 14:17:05.535: I/GCoreUlr(8747): Unbound from all location providers

07-25 14:17:05.580: D/dalvikvm(8454): GC_EXPLICIT freed 321K, 20% free 9527K/11908K, paused 27ms+10ms, total 204ms

07-25 14:17:05.580: W/Vold(1843): com.twinsen.PhysicsBlocks-1 unmount attempt 1 failed (Device or resource busy)

07-25 14:17:05.615: E/ProcessKiller(1843): Process system_server (8454) has open file /mnt/asec/com.twinsen.PhysicsBlocks-1/pkg.apk

07-25 14:17:06.780: W/Vold(1843): com.twinsen.PhysicsBlocks-1 unmount attempt 2 failed (Device or resource busy)

07-25 14:17:06.925: E/ProcessKiller(1843): Process system_server (8454) has open file /mnt/asec/com.twinsen.PhysicsBlocks-1/pkg.apk

07-25 14:17:08.120: W/Vold(1843): com.twinsen.PhysicsBlocks-1 unmount attempt 3 failed (Device or resource busy)

07-25 14:17:08.310: E/ProcessKiller(1843): Process system_server (8454) has open file /mnt/asec/com.twinsen.PhysicsBlocks-1/pkg.apk

07-25 14:17:08.310: W/ProcessKiller(1843): Sending SIGHUP to process 8454

07-25 14:17:08.400: I/ServiceManager(1842): service 'entropy' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'power' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'mount' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'content' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'batteryinfo' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'usagestats' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'display' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'telephony.registry' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'scheduling_policy' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'package' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'activity' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'meminfo' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'gfxinfo' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'dbinfo' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'cpuinfo' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'permission' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'user' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'device_policy' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'netpolicy' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'window' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'input' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'fm_transmitter' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'input_method' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'accessibility' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'bluetooth_manager' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'alarm' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'account' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'network_management' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'clipboard' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'netstats' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'lock_settings' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'battery' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'sensorservice' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'statusbar' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'vibrator' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'hardware' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'textservices' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'wifip2p' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'wifi' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'connectivity' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'servicediscovery' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'throttle' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'fm_receiver' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'updatelock' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'profile' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'notification' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'devicestoragemonitor' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'location' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'country_detector' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'search' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'dropbox' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'wallpaper' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'audio' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'usb' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'serial' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'uimode' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'backup' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'appwidget' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'diskstats' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'samplingprofiler' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'commontime_management' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'dreams' died

07-25 14:17:08.400: I/ServiceManager(1842): service 'assetredirection' died

07-25 14:17:08.405: D/SurfaceFlinger(1847): Screen acquired, type=0 flinger=0x406d03a8

07-25 14:17:08.405: D/SurfaceFlinger(1847): screen was previously acquired

07-25 14:17:08.410: W/AudioFlinger(8232): power manager service died !!!

07-25 14:17:08.415: W/Sensors(8747): sensorservice died [0x4bdf0fd0]

07-25 14:17:08.420: W/Sensors(8640): sensorservice died [0x4bde1a70]

07-25 14:17:08.460: E/WifiManager(8544): Channel connection lost

07-25 14:17:08.460: E/WifiManager(8640): Channel connection lost

07-25 14:17:08.475: E/WifiManager(8747): Channel connection lost

07-25 14:17:08.475: E/WifiManager(8747): Channel connection lost

07-25 14:17:08.480: E/WifiManager(8801): Channel connection lost

07-25 14:17:08.520: D/libEGL(11835): loaded /system/lib/egl/libEGL_mali.so

07-25 14:17:08.525: D/libEGL(11835): loaded /system/lib/egl/libGLESv1_CM_mali.so

07-25 14:17:08.525: D/libEGL(11835): loaded /system/lib/egl/libGLESv2_mali.so

07-25 14:17:08.535: E/(11835): Device driver API match

07-25 14:17:08.535: E/(11835): Device driver API version: 17

07-25 14:17:08.535: E/(11835): User space API version: 17

07-25 14:17:08.535: E/(11835): mali: REVISION=Linux-r3p1-01rel1 BUILD_DATE=Mon May 6 11:20:56 KST 2013

07-25 14:17:08.540: E/Trace(11835): error opening trace file: No such file or directory (2)

07-25 14:17:08.565: E/installd(1851): eof

07-25 14:17:08.565: E/installd(1851): failed to read size

07-25 14:17:08.565: I/installd(1851): closing connection

07-25 14:17:08.710: E/InputEventReceiver(8544): channel '41349348 SearchPanel (client)' ~ Publisher closed input channel or an error occurred. events=0x9

07-25 14:17:08.710: E/InputEventReceiver(8654): channel '40d12680 com.teslacoilsw.launcher/com.android.launcher2.Launcher (client)' ~ Publisher closed input channel or an error occurred. events=0x9

07-25 14:17:08.710: E/InputEventReceiver(8544): channel '40efa410 StatusBar (client)' ~ Publisher closed input channel or an error occurred. events=0x9

07-25 14:17:08.710: E/InputEventReceiver(8544): channel '40e1a1d0 NavigationBar (client)' ~ Publisher closed input channel or an error occurred. events=0x9

07-25 14:17:08.710: E/InputEventReceiver(8544): channel '40d90040 com.android.systemui.ImageWallpaper (client)' ~ Publisher closed input channel or an error occurred. events=0x9

07-25 14:17:08.710: E/InputEventReceiver(10148): channel '4134bf88 com.android.settings/com.android.settings.Settings$ManageApplicationsActivity (client)' ~ Publisher closed input channel or an error occurred. events=0x9

07-25 14:17:08.715: D/Zygote(8234): Process 8454 terminated by signal (15)

07-25 14:17:08.715: I/Zygote(8234): Exit zygote because system server (8454) has terminated

07-25 14:17:08.770: I/Netd(11848): Netd 1.0 starting

07-25 14:17:08.775: W/InterfaceController(11848): Error (Symbol not found: ) while searching for the interface command fini function

07-25 14:17:08.835: I/ServiceManager(1842): service 'media.audio_policy' died

07-25 14:17:08.835: I/ServiceManager(1842): service 'media.audio_flinger' died

07-25 14:17:08.835: I/ServiceManager(1842): service 'media.player' died

07-25 14:17:08.835: I/ServiceManager(1842): service 'media.camera' died

07-25 14:17:09.020: D/AndroidRuntime(11849): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

07-25 14:17:09.020: D/AndroidRuntime(11849): CheckJNI is OFF

07-25 14:17:09.025: D/dalvikvm(11849): Unable to stat classpath element '/system/framework/okhttp.jar'

07-25 14:17:09.050: D/dalvikvm(11849): Trying to load lib libjavacore.so 0x0

07-25 14:17:09.055: D/dalvikvm(11849): Added shared lib libjavacore.so 0x0

07-25 14:17:09.070: D/dalvikvm(11849): Trying to load lib libnativehelper.so 0x0

07-25 14:17:09.070: D/dalvikvm(11849): Added shared lib libnativehelper.so 0x0

07-25 14:17:09.100: W/dalvikvm(11849): Failed to mount /storage as MS_SLAVE: Invalid argument

07-25 14:17:09.105: I/mediaserver(11847): ServiceManager: 0x40dcae30

07-25 14:17:09.105: I/AudioFlinger(11847): Using default 3000 mSec as standby time.

07-25 14:17:09.105: I/CameraService(11847): CameraService started (pid=11847)

07-25 14:17:09.110: D/exynos_camera(11847): exynos_camera_get_number_of_cameras()

I'm having this issue with a freshly installed Slim-i9100-4.2.2.build.7-OFFICIAL. I also had this issue with build 4.(haven't tested anything else.)

Is this a ROM issue, or is there something I can do to stop it from happening?

Please, any help is appreciated(in this thread or in private), as it is extremely frustrating to see my phone rebooting while developing apps.

Thanks