Skip to content

Commit

Permalink
Merge pull request #34 from ReSo7200/master
Browse files Browse the repository at this point in the history
  • Loading branch information
xHookman authored Jan 20, 2024
2 parents d5b8cad + 831dbda commit 3db3321
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ First you will need to use [Jadx](https://github.com/skylot/jadx)
- Search for "```is_employee```" or "```"is_employee", Boolean.valueOf```" and find a line similar to:

```
r2.A0i("is_employee", Boolean.valueOf(C1AX.A00(c12990lb)));
c0ba.A0Y("is_employee", Boolean.valueOf(C17H.A00(c12800m3)));
```
<img src="https://github.com/xHookman/IGexperiments/blob/master/readme/1.png?raw=true">

Double click on the method name, A03:
Double click on the method name, A00:

<img src="https://github.com/xHookman/IGexperiments/blob/master/readme/2.png?raw=true">

Now go at top, you will see a line like this:
```
/* renamed from: X.1AX reason: invalid class name */
/* renamed from: X.17H reason: invalid class name */
```
<img src="https://github.com/xHookman/IGexperiments/blob/master/readme/3.png?raw=true">

Expand Down
4 changes: 1 addition & 3 deletions app/src/main/java/com/chacha/igexperiments/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void initElemToHook() {

if (className.equals("")) {
XposedBridge.log("(IGExperiments) No class name found, using default");
className = Utils.DEFAULT_CLASS_TO_HOOK; // Change this if you want to update the app
className = Utils.DEFAULT_CLASS_TO_HOOK;
methodName = Utils.DEFAULT_METHOD_TO_HOOK;
secondClassName = Utils.DEFAULT_SECOND_CLASS_TO_HOOK;
}
Expand All @@ -87,7 +87,6 @@ public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) {
// if not normal means Hecker mode is being used!
if (!type.equals("Normal")) {
// DEV PURPOSES

//showToast("HECKER MODE");
//showToast("(IGExperiments) Hooking class: " + classToHook);
//showToast("(IGExperiments) Hooking method: " + methodToHook);
Expand Down Expand Up @@ -174,7 +173,6 @@ protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
private static String getJSONContent() {
try {
Log.println(Log.INFO, "IGexperiments", "Reading raw content from github file");
//Please change to the main one - xHookman after accepting pull request
URL url = new URL("https://raw.githubusercontent.com/ReSo7200/IGexperiments/master/classes_to_hook.json");
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
Expand Down

0 comments on commit 3db3321

Please sign in to comment.