keysPaused=false inHistory=true visible=true sleeping=false idle=true mStartingWindowState=STARTING_WINDOW_REMOVED
fullscreen=true noDisplay=false immersive=false launchMode=0
frozenBeforeDestroy=false forceNewConfig=false
mActivityType=standard
waitingVisible=false nowVisible=true lastVisibleTime=-12s404ms
connections=[ConnectionRecord{b2a7614 u0 CR com.uplus.onphone/.player.PopupPlayer:@b109867}]
resizeMode=RESIZE_MODE_RESIZEABLE
mLastReportedMultiWindowMode=false mLastReportedPictureInPictureMode=false
translucent=false
Running activities (most recent first):
TaskRecord{5546a0e #3162 A=com.uplus.onphone U=0 StackId=102 sz=1}
Run #0: ActivityRecord{64b2438 u0 com.uplus.onphone/.activity.MainActivity t3162}
mResumedActivity: ActivityRecord{64b2438 u0 com.uplus.onphone/.activity.MainActivity t3162}
mLastPausedActivity: ActivityRecord{64b2438 u0 com.uplus.onphone/.activity.MainActivity t3162}
Stack #0: type=home mode=fullscreen
isSleeping=false
mBounds=Rect(0, 0 - 0, 0)
法三:
1、手机打开应用
2、执行:adb shell dumpsys activity top
linux: adb shell dumpsys activity | grep “mFocusedActivity”
windows: adb shell dumpsys activity | findstr “mFocusedActivity”
这种方法和法二类似,但仔细看一下下面的打印太恐怖了。我打印了安卓Launcher桌面活动信息,居然什么都暴露了,我擦谷歌爸爸太强大了!
D:\other>adb shell dumpsys activity top
TASK com.android.systemui id=3064 userId=0
ACTIVITY com.android.systemui/.recents.RecentsActivity 1c13a90 pid=2533
Local Activity ca56c1a State:
mResumed=false mStopped=true mFinished=false
mChangingConfigurations=false
mCurrentConfig={1.0 460mcc1mnc [zh_CN_#Hans,en_US,zh_CN] ldltr sw360dp w360dp h654dp 640dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2712,1440) mAppBounds=Rect(0, 0 - 1440, 2712) mWindowingMode=fullscreen mActivityType=recents} s.45 fontTypeIndex0 forceEmbolden0}
mLoadersStarted=true
FragmentManager misc state:
mHost=android.app.Activity H o s t C a l l b a c k s @ d f 5 b 1 f e m C o n t a i n e r = a n d r o i d . a p p . A c t i v i t y HostCallbacks@df5b1fe mContainer=android.app.Activity HostCallbacks@df5b1femContainer=android.app.ActivityHostCallbacks@df5b1fe
mCurState=3 mStateSaved=true mDestroyed=false
ViewRoot:
mAdded=true mRemoved=false
mConsumeBatchedInputScheduled=false
mConsumeBatchedInputImmediatelyScheduled=false
mPendingInputEventCount=0
mProcessInputEventsScheduled=false
mTraversalScheduled=false mIsAmbientMode=false
android.view.ViewRootImpl N a t i v e P r e I m e I n p u t S t a g e : m Q u e u e L e n g t h = 0 a n d r o i d . v i e w . V i e w R o o t I m p l NativePreImeInputStage: mQueueLength=0 android.view.ViewRootImpl NativePreImeInputStage:mQueueLength=0android.view.ViewRootImplImeInputStage: mQueueLength=0
android.view.ViewRootImplKaTeX parse error: Expected ‘}’, got ‘#’ at position 338: ……I. 0,0-0,0 #̲102018a android…HostCallbacks@de35f9e
mContainer=android.app.Activity H o s t C a l l b a c k s @ d e 35 f 9 e m C u r S t a t e = 5 m S t a t e S a v e d = f a l s e m D e s t r o y e d = f a l s e V i e w R o o t : m A d d e d = t r u e m R e m o v e d = f a l s e m C o n s u m e B a t c h e d I n p u t S c h e d u l e d = f a l s e m C o n s u m e B a t c h e d I n p u t I m m e d i a t e l y S c h e d u l e d = f a l s e m P e n d i n g I n p u t E v e n t C o u n t = 0 m P r o c e s s I n p u t E v e n t s S c h e d u l e d = f a l s e m T r a v e r s a l S c h e d u l e d = f a l s e m I s A m b i e n t M o d e = f a l s e a n d r o i d . v i e w . V i e w R