Android Question How to read unfiltered log

AHilberink

Active Member
Licensed User
Longtime User
Hi,

I try to find out if my app is killed in the background.
I think I need to check Unfiltered log.

Where do I look for? I find this:
B4X:
Destroying surface Surface(name=ciris.chauffeur/ciris.chauffeur.hoofdscherm$_27014)/@0x57b6457 called by com.android.server.wm.WindowStateAnimator.destroySurface:1794 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:765 com.android.server.wm.WindowState.destroySurfaceUnchecked:3918 com.android.server.wm.WindowState.destroySurface:3892 com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.ActivityRecord.notifyAppStopped:5291 com.android.server.wm.ActivityRecord.activityStopped:5918
 packageName : com.samsung.android.lool    className : com.samsung.android.sm.battery.ui.BatteryActivity

Does this mean my App is destroyed?
Can someone help me to check the logs?

Kind regards,
André
 

AHilberink

Active Member
Licensed User
Longtime User
Ok, as you can see the whole log, why not post it all here and hopefully someone will help identify your problem.

Because it is too long for this forum, I will send the last part. but I would be pleased if someone can help:
B4X:
Closing socket
USB UEVENT: {SUBSYSTEM=android_usb, SEQNUM=12343, ACTION=change, USB_STATE=DISCONNECTED, DEVPATH=/devices/virtual/android_usb/android0}
Creating socket
Caught an exception opening the socket: java.io.IOException: No such file or directory
Closing socket
isChangeAllowed() : name = mtp_running_status
mBackingStore.isClosed() : false
isChangeAllowed() : name = mtp_sync_alive
isChangeAllowed() : name = mtp_drive_display
mBackingStore.isClosed() : false
isChangeAllowed() : name = mtp_sync_alive
isChangeAllowed() : name = mtp_open_session
mBackingStore.isClosed() : false
isChangeAllowed() : name = mtp_event_status
Calling a method in the system process without a qualified user: android.app.ContextImpl.stopService:1751 android.content.ContextWrapper.stopService:748 android.content.ContextWrapper.stopService:748 com.samsung.android.MtpApplication.MtpReceiver.usbRemoved:810 com.samsung.android.MtpApplication.MtpReceiver$2.handleMessage:478
 packageName : ciris.chauffeur    className : ciris.chauffeur.hoofdscherm
setUIMode from UI function(3)
setUsbConfig(mtp,adb)
updateUsbStateBroadcastIfNeeded: functions=mtp,adb
broadcasting Intent { act=android.hardware.usb.action.USB_STATE flg=0x31000000 (has extras) } extras: Bundle[{host_connected=false, connected=true, unlocked=true, config_changed=true, adb=true, mtp=true, configured=true}]
Callback Function is canceled because of app Stuck. e=android.os.DeadObjectException
WIN DEATH: Window{fa86da0 u0 com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.USBConnection EXITING}
WIN DEATH: Window{c7250b8 u0 com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.USBConnection EXITING}
Callback Function is canceled because of app Stuck. e=android.os.DeadObjectException
Exception when sending broadcast to ComponentInfo{com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.MtpReceiver}
android.os.DeadObjectException
    at android.os.BinderProxy.transactNative(Native Method)
    at android.os.BinderProxy.transact(BinderProxy.java:605)
    at android.app.IApplicationThread$Stub$Proxy.scheduleReceiver(IApplicationThread.java:1482)
    at com.android.server.am.BroadcastQueue.processCurBroadcastLocked(BroadcastQueue.java:507)
    at com.android.server.am.BroadcastQueue.processNextBroadcastLocked(BroadcastQueue.java:1991)
    at com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:1267)
    at com.android.server.am.BroadcastQueue$BroadcastHandler.handleMessage(BroadcastQueue.java:267)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:246)
    at android.os.HandlerThread.run(HandlerThread.java:67)
    at com.android.server.ServiceThread.run(ServiceThread.java:44)
ProcessRecord{d94279b 456:com.samsung.android.MtpApplication/1000} is attached to a previous process
Already have existing proc ProcessRecord{d94279b 456:com.samsung.android.MtpApplication/1000} when adding ProcessRecord{c8320a 0:com.samsung.android.MtpApplication/1000}
getExternalStorageMountMode: uid=1000 packageName=com.samsung.android.MtpApplication
Compat change id reported: 135634846; UID 1000; state: DISABLED
Process com.samsung.android.MtpApplication (pid 456) has died: fg  RCVR(122,379)
proc ProcessRecord{d94279b 456:com.samsung.android.MtpApplication/1000} already removed. so we skip next process.
add tag=system_server_wtf isTagEnabled=true flags=0x2
Reparenting to original parent: Surface(name=DisplayArea.Root)/@0x8e6a0e4, destroy=true, surface=Surface(name=Dim Layer for - DisplayArea.Root)/@0xdf168c7
add tag=system_server_wtf isTagEnabled=true flags=0x2
Start proc 698:com.samsung.android.MtpApplication/1000 for broadcast {com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.MtpReceiver}
DSS OFF for com.samsung.android.MtpApplication
attachApplicationLocked() app=ProcessRecord{c8320a 698:com.samsung.android.MtpApplication/1000} app.isolatedEntryPoint=null instr2=null
handleBindApplication()++ app=com.samsung.android.MtpApplication
mAclOffEnabled : false mAclPreviewState : false mAclCompensationState : false
Slow dispatch took 231ms android.fg h=com.android.server.usb.UsbDeviceManager$UsbHandlerLegacy c=null m=2
adbd socket disconnected
adbd socket disconnected
Reparenting to original parent: Surface(name=ActivityRecord{d08675b u0 com.samsung.android.MtpApplication/.USBConnection t81})/@0x9bbc93d, destroy=true, surface=Surface(name=fa86da0 com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.USBConnection)/@0x85e0a94
win=Window{fa86da0 u0 com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.USBConnection EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0 caller=com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.WindowState.onExitAnimationDone:5623 com.android.server.wm.WindowStateAnimator.onAnimationFinished:332 com.android.server.wm.WindowState.onAnimationFinished:6088 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$SurfaceAnimator:112
Destroying surface Surface(name=com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.USBConnection$_456)/@0x15e38ae called by com.android.server.wm.WindowStateAnimator.destroySurface:1794 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:765 com.android.server.wm.WindowState.destroySurfaceUnchecked:3918 com.android.server.wm.WindowState.destroySurface:3892 com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.WindowState.onExitAnimationDone:5623 com.android.server.wm.WindowStateAnimator.onAnimationFinished:332
isChangeAllowed() : name = mtp_sync_alive
isChangeAllowed() : name = boot_time_connected
isChangeAllowed() : name = mtp_open_session
isChangeAllowed() : name = mtp_running_status
isChangeAllowed() : name = mtp_event_status
mBackingStore.isClosed() : false
!@ 179,0 r 2267760 47486650 w 625486 14677212 d 52726 27191660 f 61214 257210 iot 1168680 976409 th 51200 51200 43912 pt 1440 inp 0 0 115586.860
Reparenting to original parent: Surface(name=ActivityRecord{d08675b u0 com.samsung.android.MtpApplication/.USBConnection t81})/@0x9bbc93d, destroy=true, surface=Surface(name=c7250b8 com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.USBConnection)/@0x5f8688b
win=Window{c7250b8 u0 com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.USBConnection EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0 caller=com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.WindowState.onExitAnimationDone:5623 com.android.server.wm.WindowStateAnimator.onAnimationFinished:332 com.android.server.wm.WindowState.onAnimationFinished:6088 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$SurfaceAnimator:112
Destroying surface Surface(name=com.samsung.android.MtpApplication/com.samsung.android.MtpApplication.USBConnection$_456)/@0x68ca99d called by com.android.server.wm.WindowStateAnimator.destroySurface:1794 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:765 com.android.server.wm.WindowState.destroySurfaceUnchecked:3918 com.android.server.wm.WindowState.destroySurface:3892 com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.WindowState.onExitAnimationDone:5623 com.android.server.wm.WindowStateAnimator.onAnimationFinished:332
setHasOverlayUi called on unknown pid: 456
Hide switching menu
Cancelling animation restarting=true, leash=Surface(name=Surface(name=9f9638f InputMethod)/@0xf87f225 - animation-leash)/@0x2398889
Reparenting to original parent: Surface(name=WindowToken{b996167 android.os.Binder@1d3a126})/@0x584c05d, destroy=false, surface=Surface(name=9f9638f InputMethod)/@0xf87f225
Reparenting to leash, surface=Surface(name=9f9638f InputMethod)/@0xf87f225, leashParent=Surface(name=WindowToken{b996167 android.os.Binder@1d3a126})/@0x584c05d
makeSurface duration=1 leash=Surface(name=Surface(name=9f9638f InputMethod)/@0xf87f225 - animation-leash)/@0x6b05fe0
USB UEVENT: {SUBSYSTEM=android_usb, SEQNUM=12345, ACTION=change, USB_STATE=CONNECTED, DEVPATH=/devices/virtual/android_usb/android0}
handleMessage -> MSG_UPDATE_STATE: connected=1 configured=0 mCurrentFunctions=
updateUsbNotification(false): mConnected=true mHostConnected=false mSourcePower=false mSinkPower=true mUsbCharging=true
isDexModeOn() : false
isSemiDexModeOn() : false
updateUsbStateBroadcastIfNeeded: functions=mtp,adb
getExternalStorageMountMode: uid=10136 packageName=com.sec.android.provider.badge
broadcasting Intent { act=android.hardware.usb.action.USB_STATE flg=0x31000000 (has extras) } extras: Bundle[{host_connected=false, connected=true, unlocked=true, config_changed=false, adb=true, mtp=true, configured=false}]
Compat change id reported: 135634846; UID 10136; state: DISABLED
Compat change id reported: 143937733; UID 10136; state: DISABLED
Start proc 728:com.sec.android.provider.badge/u0a136 for broadcast {com.sec.android.provider.badge/com.sec.android.provider.badge.BadgeCountReceiver}
USB UEVENT: {SUBSYSTEM=android_usb, SEQNUM=12346, ACTION=change, USB_STATE=CONFIGURED, DEVPATH=/devices/virtual/android_usb/android0}
handleMessage -> MSG_UPDATE_STATE: connected=1 configured=1 mCurrentFunctions=
updateUsbNotification(false): mConnected=true mHostConnected=false mSourcePower=false mSinkPower=true mUsbCharging=true
isDexModeOn() : false
isSemiDexModeOn() : false
updateUsbStateBroadcastIfNeeded: functions=mtp,adb
broadcasting Intent { act=android.hardware.usb.action.USB_STATE flg=0x31000000 (has extras) } extras: Bundle[{host_connected=false, connected=true, unlocked=true, config_changed=false, adb=true, mtp=true, configured=true}]
DSS OFF for com.sec.android.provider.badge
attachApplicationLocked() app=ProcessRecord{d8f4299 728:com.sec.android.provider.badge/u0a136} app.isolatedEntryPoint=null instr2=null
handleBindApplication()++ app=com.sec.android.provider.badge
called from android.uid.system:1000
isUsbMediaPlayerAvailable : true
isChangeAllowed() : name = mtp_running_status
mBackingStore.isClosed() : false
Expired : 8
mBackingStore.isClosed() : false
Sending to uid : 1000 L=693660b:TIME_TICK alarm=Alarm{d091ea4 type 3 when 165590082 android}
setExact (T:3/F:1/AC:false) 20210925T101000 now=165590084 - CU:1000/CP:3934/L:693660b:TIME_TICK
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165590084
setLocked to kernel - T:3 / 20210925T100912, set=165602119, now=165590084
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165590085
setLocked to kernel - T:3 / 20210925T100912, set=165602119, now=165590085
isChangeAllowed() : name = mtp_drive_display
mBackingStore.isClosed() : false
isChangeAllowed() : name = mtp_open_session
mBackingStore.isClosed() : false
mBackingStore.isClosed() : false
isChangeAllowed() : name = mtp_drive_display
isChangeAllowed() : name = enable_mtp_settings
mBackingStore.isClosed() : false
AMP_release() ACT_RESUME
Closing socket
adbd socket disconnected
Creating socket
adbd socket connected
Received connected key message: QAAAAMV69c3zCz7Yos4bkJD9+mcfyYgFHx0n6e/x2UbrHRIU1Ro2yuXy38HyxtX41QRic40VWiHDJSFy8SnFPyWK77E83bH1pCtD4cAELJ4UJ++wKC2LFQfgWXc1Qus962IFW2NuAl/hrgLPM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Ze03CWeRFWEQGKfj/75e6h0UQJdCPjgNQ8SdxeXiqy9tnMYhO1NuJ6hxNzuoaqVls/q3G0UXVoI2+jEKTIxPMTPPdb/j4BPjsRn3QMXG9MqB6h257rs+2MgsIw9QMUkr94F/IhgfC0CZuwarc2HDj0CVUjg+4ii5G3iQOsuJyfdT0oZm4D4Y/BOtFi5K29dKZlmNs9E/BR9mBBq23hr4QVnWpQsPzL1w1wEAAQA= @unknown, state = 4, alwaysAllow = true, lastConnectionTime = 1632557341588, authWindow = 604800000
handleMessage -> MESSAGE_ADB_PERSIST_KEYSTORE
setInexact (T:3/F:0/AC:false) 20310923T100901 now=165591776 - CU:10022/CP:18405/OP:PendingIntent{d673398: PendingIntentRecord{63977f1 com.google.android.gms/ startService}}
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165591776
setLocked to kernel - T:3 / 20210925T100912, set=165602119, now=165591776
setInexact (T:3/F:0/AC:false) 20310923T100901 now=165591807 - CU:10022/CP:32480/OP:PendingIntent{de3acf3: PendingIntentRecord{f94ddb0 com.google.android.gms/ startService}}
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165591808
setLocked to kernel - T:3 / 20210925T100912, set=165602119, now=165591808
!@ 179,0 r 2267841 47488214 w 625495 14677536 d 52729 27191712 f 61214 257216 iot 1168724 976441 th 51200 51200 43912 pt 1440 inp 0 0 115588.863
Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
UserActivityStateListenerState: 0
File error accessing recents directory (directory doesn't exist?).
!@ 179,0 r 2267841 47488214 w 625498 14677628 d 52730 27191716 f 61214 257218 iot 1168728 976443 th 51200 51200 43912 pt 1440 inp 0 0 115590.867
handleMessage: entry what = 101
getGMSBinder(), begin
getGMSBinder(), successful: true
identifyGamePackage. ciris.chauffeur, mCurrentUserId: 0, callerUserId: 0
getGamePkgData(). ciris.chauffeur
!@ 179,0 r 2267841 47488214 w 625562 14677948 d 52730 27191716 f 61214 257218 iot 1168732 976447 th 51200 51200 43912 pt 1440 inp 0 0 115592.870
Heartbeat 11545
Sending ACTION_BATTERY_CHANGED. scale:100, info:{.chargerAcOnline = false, .chargerUsbOnline = true, .chargerWirelessOnline = false, .maxChargingCurrent = 0, .maxChargingVoltage = 0, .batteryStatus = CHARGING, .batteryHealth = GOOD, .batteryPresent = true, .batteryLevel = 82, .batteryVoltage = 4027, .batteryTemperature = 254, .batteryCurrent = 35, .batteryCycleCount = 0, .batteryFullCharge = 6000000, .batteryChargeCounter = 4920000, .batteryTechnology = Li-ion}
online:4, current avg:50, charge type:2, POGO powered:false, power sharing:false, high voltage charger:false, charger_type:0, capacity:280000, misc_event:0x0, current_event:0x8000, current_now:35
BATTERY_HEALTH_CHECK extraHealth=2 mBatteryMiscEvent=0
!@ 179,0 r 2267841 47488214 w 625564 14678032 d 52731 27191720 f 61214 257220 iot 1168732 976449 th 51200 51200 43912 pt 1440 inp 0 0 115594.874
Cancel Alarm calling from uid:10022 pid :18405 / OP:PendingIntent{60f49f3: PendingIntentRecord{63977f1 com.google.android.gms/ startService}}
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165598823
setLocked to kernel - T:3 / 20210925T100912, set=165602119, now=165598823
Cancel Alarm calling from uid:10022 pid :32480 / OP:PendingIntent{4639929: PendingIntentRecord{f94ddb0 com.google.android.gms/ startService}}
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165598840
setLocked to kernel - T:3 / 20210925T100912, set=165602119, now=165598840
Launch timeout has expired, giving up wake lock!
Changes in 10022 3 to 5, 7 to 0 Caller=com.android.server.am.OomAdjuster.updateOomAdjLockedInner:669 com.android.server.am.OomAdjuster.updateOomAdjLocked:526 com.android.server.am.OomAdjuster.updateOomAdjLocked:332 com.android.server.am.ActivityManagerService.updateOomAdjLocked:21189 com.android.server.am.ActiveServices.removeConnectionLocked:3856 com.android.server.am.ActiveServices.unbindServiceLocked:2468 com.android.server.am.ActivityManagerService.unbindService:18078
updateUidProcState uid: 10024 procState: 0 capability:7
[api] setDeviceIdleTempWhitelist: appids:  (uid: 1000 pid: 3934)
Expired : 8
Sending to uid : 1000 L=fba9d1c:DetectMovementSPListener alarm=Alarm{379b401 type 3 when 165602119 android}
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165602120
setLocked to kernel - T:3 / 20210925T100915, set=165605937, now=165602121
setExact (T:3/F:9/AC:false) 20210925T101012 now=165602125 - CU:1000/CP:3934/L:fba9d1c:DetectMovementSPListener
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165602125
setLocked to kernel - T:3 / 20210925T100915, set=165605937, now=165602125
!@ 179,0 r 2267876 47488862 w 625564 14678032 d 52731 27191720 f 61214 257220 iot 1168748 976459 th 51200 51200 43912 pt 1440 inp 0 0 115600.885
!@ 179,0 r 2267876 47488862 w 625580 14678108 d 52731 27191720 f 61214 257220 iot 1168748 976460 th 51200 51200 43912 pt 1440 inp 0 0 115602.888
Expired : 8
Sending to uid : 1000 L=84568be:StatsCompanionService.pull alarm=Alarm{d72f3a4 type 3 when 165605937 android}
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165605938
setExact (T:3/F:9/AC:false) 20210925T110915 now=165606065 - CU:1000/CP:3934/L:84568be:StatsCompanionService.pull
setLocked to kernel - T:2 / 20210925T100931, set=165621896, now=165606065

My App is freezing after a while in background on Samsung TabA since v11 and worked fine with v10 and before. Erel mentioned to check if my App is killed. Therefore this question.

My App is called ciris.chauffeur.

May be there is need for more logcontent. Please let me know. It was to big to paste to this thread.

André
 
Upvote 0
Top