首页
社区
课程
招聘
[求助]xposed hook 自定义参数
发表于: 2017-1-3 13:47 6595

[求助]xposed hook 自定义参数

2017-1-3 13:47
6595
使用xposed中的hook技术,如果要hook的函数中带有自定义参数该怎么办?参数是一个类,但是如果要引入这个类到项目的话,还得引入其调用的各种东西。。。怎么办?大神救命。有没有一种方法是可以直接找到这个类作为参数?得怎么写呀。

[培训]科锐逆向工程师培训第53期2025年7月8日开班!

收藏
免费 0
支持
分享
最新回复 (6)
雪    币: 1787
活跃值: (345)
能力值: ( LV3,RANK:30 )
在线值:
发帖
回帖
粉丝
2
反射拿类。就不用导入了。
2017-1-3 18:30
0
雪    币: 81
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
有点懵,如何反射拿类?是调用里面的那个findclass函数吗?还是?大神,能具体点嘛?
2017-1-4 11:11
0
雪    币: 36
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
There are two ways to specify the parameter types. If you already have a reference to the Class, use that. For Android framework classes, you can often use something like String.class. If you don't have the class reference, you can simply use the full class name as a string, e.g. java.lang.String or com.example.MyClass. It will be passed to findClass with the same class loader that is used for the target method, see its documentation for the allowed notations.


Xposed源码里的注释,比如上面这个例子,直接在对应参数位置传"com.example.MyClass"就可以了,不需要显式去反射。
2017-1-5 10:51
0
雪    币: 84
活跃值: (2638)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
看看这个
3e4K9s2c8@1M7s2y4Q4x3@1q4Q4x3V1k6Q4x3V1k6^5K9h3q4F1P5X3S2A6i4K6u0W2j5h3I4A6P5i4g2F1i4K6u0W2j5$3!0E0i4K6u0r3k6X3!0J5N6h3#2Q4x3V1k6J5k6h3q4V1i4K6u0r3y4U0p5I4i4K6u0W2K9s2c8E0L8l9`.`.
2017-1-5 11:38
0
雪    币: 63
活跃值: (464)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
6
刚发了一个为你这问题量身定制的贴
http://bbs.pediy.com/showthread.php?t=215039
2017-1-5 14:57
0
雪    币: 81
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
[QUOTE=AqCxBoM;1460015]刚发了一个为你这问题量身定制的贴
http://bbs.pediy.com/showthread.php?t=215039[/QUOTE]

万分感谢~~~~
2017-1-5 21:22
0
游客
登录 | 注册 方可回帖
返回