-
-
hooker打印Activity栈的所有实例,一种比adb shell dumpsys window | grep mCurrentFocus更好的方法
-
发表于: 2021-3-20 17:00 3599
-
hooker打印Activity栈的所有实例,一种比adb shell dumpsys window | grep mCurrentFocus更好的方法
2021-3-20 17:00
3599
第一种方法
- stephen@ubuntu:~$ adb shell dumpsys window | grep mCurrentFocus
mCurrentFocus=Window{510f1fc u0 com.ss.android.ugc.aweme/com.ss.android.ugc.aweme.splash.SplashActivity}
如果你想获取所有Activity栈中所有Activity时,第一种方法就不管用了。
第二种方法
hooker工作台自带打印应用所有activity名的功能
- a : 打印Activity栈的所有实例,当前界面排最前面。你可以立刻获取当前手机界面的Activity实现类、继承关系、实现接口、Activity中的所有属性值和方法声明。配合jadx动静分析效果最佳,分析Activity对象的内部情况将极快的提供逆向的线索。值得注意的是Activity中每个成员变量hooker会分配一个ObjectId,这是为了让你用c命令对内部成员变量进行扫描的。
Please enter e, s, j, c or ex command.
a: Discovering activities.
b: Discovering services.
c: Discovering object. eg:'c {objectId}'
d: Object2Explain. eg:'d {objectId}'
v: Discovering view. eg:'v {viewId}'
e: Determines whether a class exists. eg:'e android.app.Application'
s: Discovering classes by a class'regex. eg:'s com.tencent.mm.Message.*'
t: Discovering offspring classes by a class'name. eg:'t com.tencent.mm.BasicActivity'
j: Generating hooked js. eg:'j okhttp3.Request$Builder:build'
k: Generating hooked the string generation js with a keyword. eg:'k {YourKeyword}'
l: Generating hooked the param generation js with a param keyword. eg:'l {YourKeyword}'
m: Discovering so module.
ex: Exit to the upper layer. eg:'ex'
: a #此处输入a命令回车即可打印Activity栈
Found Activities: 3
------------------0--------------------
Activity Title: 抖音
Activity Class: com.ss.android.ugc.aweme.friends.ui.RawAddFriendsActivity
Activity SuperClass: com.ss.android.ugc.aweme.base.activity.AmeSSActivity
Activity ImplementInterfaces:
Activity OnTop: true
Activity Paused: false
Activity Stopped: false
Activity Fields: 41
.......
------------------1--------------------
Activity Title: 抖音
Activity Class: com.ss.android.ugc.aweme.main.MainActivity
Activity SuperClass: com.ss.android.ugc.aweme.base.activity.AmeSSActivity
Activity ImplementInterfaces: com.bytedance.common.utility.collection.WeakHandler$IHandler,com.bytedance.ies.ugc.appcontext.AppMonitor$b,com.bytedance.jedi.arch.an,com.ss.android.ugc.aweme.b.d,com.ss.android.ugc.aweme.base.activity.d,com.ss.android.ugc.aweme.feed.panel.aq,com.ss.android.ugc.aweme.main.IMainActivity,com.ss.android.ugc.aweme.main.a.a$a,com.ss.android.ugc.dagger.android.injection.b,dagger.android.support.b
Activity OnTop: false
Activity Paused: true
Activity Stopped: true
Activity Fields: 98
.........
------------------2--------------------
Activity Title: 抖音
Activity Class: com.ss.android.ugc.aweme.following.ui.FollowRelationTabActivity
Activity SuperClass: com.ss.android.ugc.aweme.base.activity.AmeSSActivity
Activity ImplementInterfaces:
Activity OnTop: false
Activity Paused: true
Activity Stopped: true
Activity Fields: 41
.....
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
最后于 2021-3-20 20:56
被爬虫不看学历编辑
,原因: 标题修改
赞赏
他的文章
看原图
赞赏
雪币:
留言: