Open the name of the app package you want to view:
$ adb shell Dumpsys Activity Top | Head-n 10TASK com.ss.android.article.news id=5 ACTIVITY com.ss.android.article.news/ Com.ss.android.article.base.activity.DetailActivity 4407b468 pid=2714 Local fragmentactivity 42df3028 State: mcreated=truemresumed=true mstopped=false mreallystopped=false mloadersstarted=true FragmentManager Misc State: [email protected]df3028 [email protected] mcurstate=5 mstatesaved=false mdestroyed=false View Hierarchy:
Here's an example of today's headline to see that its package is com.ss.android.article.news, without the need to decompile to see Manifast.xml to find its corresponding package name.
View Resolution:
$adb Shell Dumpsys Window | grep "Shownframe" | Head-n 1mhassurface=true mshowframe=[0.0,0.0] [720.0,1280.0]
You can see that the resolution shown here is 720x1280, which can also be obtained through the program.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
ADB command View registration and view phone resolution