Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

两个函数签名完全一样(参数、返回值),怎么办? #7

Open
Blankeer opened this issue May 4, 2018 · 3 comments
Open

Comments

@Blankeer
Copy link

Blankeer commented May 4, 2018

微信 6.6.6 版本,com.tencent.mm.ui.w$a 类中

public final void af(int i) {
        w.d("MicroMsg.LauncherUI.MainTabUI", "on page selected changed to %d", new Object[]{Integer.valueOf(i)});
        w.v("MicroMsg.LauncherUI.MainTabUI", "reportSwitch clickCount:%d, pos:%d", new Object[]{Integer.valueOf(this.rLM), Integer.valueOf(i)});
//.......   
}

public final void ag(int i) {
//.....
 }

public final void pq(int i) {
//......    
}

这3个方法签名完全一样,我想找出其中一个方法,该怎么做?有什么思路呢?
谢谢

@Gh0u1L5
Copy link
Owner

Gh0u1L5 commented May 8, 2018

@Blankeer 简单看了一下,感觉还是有点思路的,但你具体想要的是哪一个啊?af吗?

@Blankeer
Copy link
Author

Blankeer commented May 9, 2018

这3个方法我都想 hook,但是要区分开来。这里的问题我已经解决了,我采取的是 hook 其他地方(能达到目的)来绕过这种情况,我也观察打印过函数调用链,不太好从调用链区分。
这种情况还是没有一个太好的方法,能否说下你的思路,感觉可行的。
谢谢

@Gh0u1L5
Copy link
Owner

Gh0u1L5 commented May 9, 2018

其实考虑到这三个函数都有logcat的输出,有个最简单粗暴的办法是直接hook那个输出函数看内容。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants