快捷搜索: 王者荣耀 脱发

adb 获取app的包名、类名

前提:当前app正在运行

方法一:adb shell dumpsys activity activities | findstr “Run” 方法二:adb logcat | find “START”(推荐)

C:Usersuser>adb connect 172.16.37.162 connected to 172.16.37.162:5555 C:Usersuser>adb shell dumpsys activity activities | findstr “Run” Running activities (most recent first): Run #0: ActivityRecord{3a5d23e u0 com.example.and_web/.MainActivity t218} Running activities (most recent first): Run #0: ActivityRecord{edcab27 u0 com.tianci.movieplatform/com.coocaa.homepage.vast.HomePageActivity t1} C:Usersuser>adb logcat | find “START” 11-25 11:25:53.536 3617 12096 I ActivityManager: START u0 {flg=0x10000000 pkg=com.example.webview_change_url cmp=com.example.webview_change_url/.MainActivity} from uid 1000 11-25 11:29:01.867 3617 3892 I ActivityManager: START u0 {flg=0x10000000 pkg=com.tianci.setting cmp=com.tianci.setting/.activity.MainActivity (has extras)} from uid 1000 11-25 11:29:04.067 3617 3892 I ActivityManager: START u0 {cmp=com.tianci.setting/.activity.ConnectSetting (has extras)} from uid 1000 11-25 11:29:05.419 3617 8720 I ActivityManager: START u0 {cmp=com.tianci.setting/.connectsetting.net.wifi.WifiActivity (has extras)} from uid 1000 11-25 11:29:09.426 3617 13510 I ActivityManager: START u0 {cmp=com.tianci.setting/.activity.MainActivity (has extras)} from uid 1000 11-25 11:34:16.456 3617 13510 I ActivityManager: START u0 {flg=0x10000000 pkg=com.example.webview_change_url cmp=com.example.webview_change_url/.MainActivity (has extras)} from uid 1000 11-25 11:35:41.633 3617 3892 I ActivityManager: START u0 {flg=0x10000000 pkg=com.tianci.setting cmp=com.tianci.setting/.activity.MainActivity (has extras)} from uid 1000 11-25 11:35:43.178 3617 8720 I ActivityManager: START u0 {cmp=com.tianci.setting/.activity.ConnectSetting (has extras)} from uid 1000 11-25 11:35:44.347 3617 13510 I ActivityManager: START u0 {cmp=com.tianci.setting/.connectsetting.net.wifi.WifiActivity (has extras)} from uid 1000 11-25 11:36:27.892 3617 3892 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.webview_change_url/.MainActivity} from uid 2000 11-25 11:45:44.579 3617 3892 I ActivityManager: START u0 {cmp=com.tianci.setting/.activity.MainActivity (has extras)} from uid 1000 11-25 11:45:51.527 3617 3892 I ActivityManager: START u0 {flg=0x10000000 pkg=com.example.and_web cmp=com.example.and_web/.MainActivity (has extras)} from uid 1000

经验分享 程序员 微信小程序 职场和发展