Skip to content

Commit

Permalink
fix: FuckOpenContactsActivity
Browse files Browse the repository at this point in the history
修改了错误的 Hook 点
正确的hook点:
Lcom/tencent/mobileqq/activity/phone/PhoneMatchActivity;->doOnCreate(Landroid/os/Bundle;)Z
  • Loading branch information
MoonLeeeaf authored Jan 20, 2025
1 parent b0bfab7 commit 6a83dfe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ public boolean isAvailable() {

@Override
public boolean initOnce() throws Exception {
// Lcom/tencent/mobileqq/activity/phone/PhoneMatchActivity;->doOnCreate(Landroid/os/Bundle;)Z
Method _onCreate = Initiator.loadClass("com.tencent.mobileqq.activity.phone.PhoneMatchActivity")
.getDeclaredMethod("onCreate", Bundle.class);
.getDeclaredMethod("doOnCreate", Bundle.class);

HookUtils.hookAfterIfEnabled(this, _onCreate, (param) -> {
Activity self = (Activity) param.thisObject;
Expand Down

0 comments on commit 6a83dfe

Please sign in to comment.