Skip to content

Commit

Permalink
Update Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipppppppppp authored Mar 19, 2024
1 parent 9a2e203 commit 691f65f
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions app/src/main/java/io/github/chipppppppppp/lime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -631,41 +631,6 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
});
}

if (limeOptions.unlockThemes.checked) {
hookTarget = lparam.classLoader.loadClass("qp5.d2");
XposedBridge.hookAllMethods(hookTarget, "read", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
param.thisObject.getClass().getDeclaredField("r").set(param.thisObject, true);
}
});

hookTarget = lparam.classLoader.loadClass("ih4.a2");
XposedBridge.hookAllMethods(hookTarget, "read", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
param.thisObject.getClass().getDeclaredField("a").set(param.thisObject, null);
}
});

hookTarget = lparam.classLoader.loadClass("qp5.q2");
XposedBridge.hookAllMethods(hookTarget, "read", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
param.thisObject.getClass().getDeclaredField("a").set(param.thisObject, true);
}
});

hookTarget = lparam.classLoader.loadClass("nc2.j");
XposedBridge.hookAllMethods(hookTarget, "write", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
Field keyName = param.thisObject.getClass().getDeclaredField("a");
if (keyName.get(param.thisObject).toString().equals("theme.currentid")) keyName.set(param.thisObject, null);
}
});
}

if (limeOptions.outputCommunication.checked) {
hookTarget = lparam.classLoader.loadClass("org.apache.thrift.n");
XposedBridge.hookAllMethods(hookTarget, "a", new XC_MethodHook() {
Expand Down

0 comments on commit 691f65f

Please sign in to comment.