Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
HChenX committed Jul 29, 2024
1 parent da5bc7e commit c028d65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
22 changes: 0 additions & 22 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,28 +279,6 @@ public class MainTest extends BaseHC {
}
};
}

// For static, the tool provides some methods, refer to BaseHC.java code for details.
public static void test() {
sChain.chain("com.hchen.demo", sChain.method("test")
.hook(new IAction() {
@Override
public void before() throws Throwable {
super.before();
}
})

.anyConstructor()
.hook(new IAction() {
@Override
public void after() throws Throwable {
super.after();
}
})
);

sCore.callStaticMethod("com.hchen.demo", "test", "hello");
}
}
```

Expand Down
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,28 +276,6 @@ public class MainTest extends BaseHC {
}
};
}

// 对于静态,工具提供了一些方法,具体参考 BaseHC.java 代码。
public static void test() {
sChain.chain("com.hchen.demo", sChain.method("test")
.hook(new IAction() {
@Override
public void before() throws Throwable {
super.before();
}
})

.anyConstructor()
.hook(new IAction() {
@Override
public void after() throws Throwable {
super.after();
}
})
);

sCore.callStaticMethod("com.hchen.demo", "test", "hello");
}
}
```

Expand Down

0 comments on commit c028d65

Please sign in to comment.