跳转至

frida dump activity生命周期

onStart

system_server 进程

*** entered com.android.server.wm.ClientLifecycleManager.scheduleTransaction          

arg[0]: [object Object]                                                                   
arg[1]: [object Object]
arg[2]: TopResumedActivityChangeItem{onTop=false}                                                       #9df868 [2024-01-10 08:42:03.831] [23066]com.android.server.wm.ClientLifecycleManager.scheduleTransaction([object Object],[object Object],TopResumedActivityChangeItem{onTop=false})
java.lang.Exception                                                                       
        at com.android.server.wm.ClientLifecycleManager.scheduleTransaction(Native Method)    
        at com.android.server.wm.ActivityRecord.scheduleTopResumedActivityChanged(ActivityRecord.java:1517)
        at com.android.server.wm.ActivityTaskSupervisor.updateTopResumedActivityIfNeeded(ActivityTaskSupervisor.java:2547)
        at com.android.server.wm.TaskDisplayArea.positionChildTaskAt(TaskDisplayArea.java:432)
        at com.android.server.wm.TaskDisplayArea.positionChildAt(TaskDisplayArea.java:374)                           
        at com.android.server.wm.Task.moveToFront(Task.java:4892)                                                    
        at com.android.server.wm.ActivityRecord.moveFocusableActivityToTop(ActivityRecord.java:3479)           
        at com.android.server.wm.Task.moveTaskToFront(Task.java:5773)                     
        at com.android.server.wm.ActivityStarter.setTargetRootTaskIfNeeded(ActivityStarter.java:3410)       
        at com.android.server.wm.ActivityStarter.recycleTask(ActivityStarter.java:2570)
        at com.android.server.wm.ActivityStarter.startActivityInner(ActivityStarter.java:2044)
        at com.android.server.wm.ActivityStarter.startActivityUnchecked(ActivityStarter.java:1773)
        at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1601)                             
        at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:960)
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1351)
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1275)
        at com.android.server.wm.ActivityTaskManagerService.startActivity(ActivityTaskManagerService.java:1250)
        at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:929)
        at com.android.server.wm.ActivityTaskManagerService.onTransact(ActivityTaskManagerService.java:5634)
        at android.os.Binder.execTransactInternal(Binder.java:1339)
        at android.os.Binder.execTransact(Binder.java:1275)

#9df868 [2024-01-10 08:42:03.836] [23066]com.android.server.wm.ClientLifecycleManager.scheduleTransaction ==> undefined

*** exiting com.android.server.wm.ClientLifecycleManager.scheduleTransaction

app 进程

*** entered android.app.Activity.onStart
#7ef989 [2024-01-10 08:53:32.727] [23627]android.app.Activity.onStart()
java.lang.Exception
        at android.app.Activity.onStart(Native Method)
        at androidx.fragment.app.FragmentActivity.onStart(SourceFile:2)
        at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1588)
        at android.app.Activity.performStart(Activity.java:8680)
        at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4034)
        at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:229)
        at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:209)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:181)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:99)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2599)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:205)
        at android.os.Looper.loop(Looper.java:294)
        at android.app.ActivityThread.main(ActivityThread.java:8564)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:977)

#7ef989 [2024-01-10 08:53:32.731] [23627]android.app.Activity.onStart ==> undefined

*** exiting android.app.Activity.onStart

onResume

system_server 进程

*** entered com.android.server.wm.ClientLifecycleManager.scheduleTransaction

arg[0]: [object Object]
arg[1]: [object Object]
arg[2]: TopResumedActivityChangeItem{onTop=true}
#558d98 [2024-01-10 08:42:03.864] [20529]com.android.server.wm.ClientLifecycleManager.scheduleTransaction([object Object],[object Object],TopResumedActivityChangeItem{onTop=true})
java.lang.Exception
        at com.android.server.wm.ClientLifecycleManager.scheduleTransaction(Native Method)
        at com.android.server.wm.ActivityRecord.scheduleTopResumedActivityChanged(ActivityRecord.java:1517)
        at com.android.server.wm.ActivityTaskSupervisor.scheduleTopResumedActivityStateIfNeeded(ActivityTaskSupervisor.java:2578)
        at com.android.server.wm.ActivityTaskSupervisor.updateTopResumedActivityIfNeeded(ActivityTaskSupervisor.java:2570)
        at com.android.server.wm.TaskFragment.setResumedActivity(TaskFragment.java:548)
        at com.android.server.wm.TaskFragment.onActivityStateChanged(TaskFragment.java:844)
        at com.android.server.wm.ActivityRecord.setState(ActivityRecord.java:5931)
        at com.android.server.wm.TaskFragment.resumeTopActivity(TaskFragment.java:1469)
        at com.android.server.wm.Task.resumeTopActivityInnerLocked(Task.java:5223)
        at com.android.server.wm.Task.resumeTopActivityUncheckedLocked(Task.java:5155)
        at com.android.server.wm.RootWindowContainer.resumeFocusedTasksTopActivities(RootWindowContainer.java:2465)
        at com.android.server.wm.RootWindowContainer.resumeFocusedTasksTopActivities(RootWindowContainer.java:2451)
        at com.android.server.wm.TaskFragment.completePause(TaskFragment.java:1877)
        at com.android.server.wm.ActivityRecord.activityPaused(ActivityRecord.java:6601)
        at com.android.server.wm.ActivityClientController.activityPaused(ActivityClientController.java:222)
        at android.app.IActivityClientController$Stub.onTransact(IActivityClientController.java:663)
        at com.android.server.wm.ActivityClientController.onTransact(ActivityClientController.java:159)
        at android.os.Binder.execTransactInternal(Binder.java:1339)
        at android.os.Binder.execTransact(Binder.java:1275)

#558d98 [2024-01-10 08:42:03.865] [20529]com.android.server.wm.ClientLifecycleManager.scheduleTransaction ==> undefined

*** exiting com.android.server.wm.ClientLifecycleManager.scheduleTransaction

app 进程

*** entered android.app.Activity.onResume
java.lang.Exception
        at android.app.Activity.onResume(Native Method)
        at androidx.fragment.app.FragmentActivity.onResume(SourceFile:2)
        at flyme.support.v7.app.AppCompatActivity.onResume(SourceFile:1)
        at com.meizu.logreport.v2.ui.activity.LogreportV2MainActivity.onResume(SourceFile:1)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1609)
        at android.app.Activity.performResume(Activity.java:8795)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5234)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5277)
        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
        at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:184)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:99)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2599)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:205)
        at android.os.Looper.loop(Looper.java:294)
        at android.app.ActivityThread.main(ActivityThread.java:8564)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:977)

#659959 [2024-01-10 08:24:42.015] [23627]android.app.Activity.onResume ==> undefined

*** exiting android.app.Activity.onResume

onPause

system_server 进程

*** entered com.android.server.wm.ClientLifecycleManager.scheduleTransaction                                              

arg[0]: [object Object]                                                                    
arg[1]: [object Object]                                                           
arg[2]: PauseActivityItem{finished=false,userLeaving=true,configChanges=0,dontReport=false,autoEnteringPip=false}
#8df595 [2024-01-10 08:42:03.847] [23066]com.android.server.wm.ClientLifecycleManager.scheduleTransaction([object Object],[object Object],PauseActivityItem{finished=false,userLeaving=true,configChanges=0,dontReport=false,autoEnteringPip=false})
java.lang.Exception                                                                   
        at com.android.server.wm.ClientLifecycleManager.scheduleTransaction(Native Method)                         
        at com.android.server.wm.TaskFragment.schedulePauseActivity(TaskFragment.java:1807)                        
        at com.android.server.wm.TaskFragment.startPausing(TaskFragment.java:1745) 
        at com.android.server.wm.TaskFragment.startPausing(TaskFragment.java:1625)      
        at com.android.server.wm.TaskDisplayArea.lambda$pauseBackTasks$5(TaskDisplayArea.java:1331)        
        at com.android.server.wm.TaskDisplayArea$$ExternalSyntheticLambda11.accept(Unknown Source:6)
        at com.android.server.wm.TaskFragment.forAllLeafTaskFragments(TaskFragment.java:1984)          
        at com.android.server.wm.TaskDisplayArea.lambda$pauseBackTasks$6(TaskDisplayArea.java:1328)
        at com.android.server.wm.TaskDisplayArea.$r8$lambda$FlQviUgsmrYxxHmk-YxKCIGWOPY(Unknown Source:0)
        at com.android.server.wm.TaskDisplayArea$$ExternalSyntheticLambda4.accept(Unknown Source:8)
        at com.android.server.wm.Task.forAllLeafTasks(Task.java:3256)                                                  
        at com.android.server.wm.Task.forAllLeafTasks(Task.java:3244)
        at com.android.server.wm.WindowContainer.forAllLeafTasks(WindowContainer.java:2135)
        at com.android.server.wm.TaskDisplayArea.pauseBackTasks(TaskDisplayArea.java:1314)
        at com.android.server.wm.TaskFragment.resumeTopActivity(TaskFragment.java:1281)
        at com.android.server.wm.Task.resumeTopActivityInnerLocked(Task.java:5223)
        at com.android.server.wm.Task.resumeTopActivityUncheckedLocked(Task.java:5155)
        at com.android.server.wm.RootWindowContainer.resumeFocusedTasksTopActivities(RootWindowContainer.java:2465)                                                
        at com.android.server.wm.ActivityStarter.resumeTargetRootTaskIfNeeded(ActivityStarter.java:3473)
        at com.android.server.wm.ActivityStarter.recycleTask(ActivityStarter.java:2617)   
        at com.android.server.wm.ActivityStarter.startActivityInner(ActivityStarter.java:2044)
        at com.android.server.wm.ActivityStarter.startActivityUnchecked(ActivityStarter.java:1773)
        at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1601)
        at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:960)
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1351)
        at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1275)
        at com.android.server.wm.ActivityTaskManagerService.startActivity(ActivityTaskManagerService.java:1250)
        at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:929)
        at com.android.server.wm.ActivityTaskManagerService.onTransact(ActivityTaskManagerService.java:5634)
        at android.os.Binder.execTransactInternal(Binder.java:1339)
        at android.os.Binder.execTransact(Binder.java:1275)

#8df595 [2024-01-10 08:42:03.848] [23066]com.android.server.wm.ClientLifecycleManager.scheduleTransaction ==> undefined

*** exiting com.android.server.wm.ClientLifecycleManager.scheduleTransaction

app 进程

*** entered android.app.Activity.onPause
#dfe9e6 [2024-01-10 08:36:46.353] [23627]android.app.Activity.onPause()
java.lang.Exception
        at android.app.Activity.onPause(Native Method)
        at androidx.fragment.app.FragmentActivity.onPause(SourceFile:1)
        at android.app.Activity.performPause(Activity.java:8842)
        at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1665)
        at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5535)
        at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5496)
        at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5447)
        at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:48)
        at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:184)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:99)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2599)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:205)
        at android.os.Looper.loop(Looper.java:294)
        at android.app.ActivityThread.main(ActivityThread.java:8564)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:977)

#dfe9e6 [2024-01-10 08:36:46.354] [23627]android.app.Activity.onPause ==> undefined

*** exiting android.app.Activity.onPause

评论