Removed extra hooks, incremented versionCode
This commit is contained in:
parent
d7bd65e788
commit
e2b186b03a
3 changed files with 2 additions and 19 deletions
|
@ -53,15 +53,8 @@ public class MainHook implements IXposedHookLoadPackage {
|
||||||
getSponsoredMessages.hookAllMethods("a", XC_MethodReplacement.returnConstant(null));
|
getSponsoredMessages.hookAllMethods("a", XC_MethodReplacement.returnConstant(null));
|
||||||
|
|
||||||
XposedClass chat = new XposedClass("org.telegram.tgnet.TLRPC$Chat", lpparam.classLoader);
|
XposedClass chat = new XposedClass("org.telegram.tgnet.TLRPC$Chat", lpparam.classLoader);
|
||||||
//chat.hookAllConstructors(new NoForwardsHook(true));
|
|
||||||
chat.hookAllMethods("TLdeserialize", new NoForwardsHook(false));
|
chat.hookAllMethods("TLdeserialize", new NoForwardsHook(false));
|
||||||
|
|
||||||
/*
|
|
||||||
XposedClass message = new XposedClass("org.telegram.tgnet.TLRPC$Message", lpparam.classLoader);
|
|
||||||
//message.hookAllConstructors(new NoForwardsHook(true));
|
|
||||||
message.hookAllMethods("TLdeserialize", new NoForwardsHook(false));
|
|
||||||
*/
|
|
||||||
|
|
||||||
XposedClass sharedConfig = new XposedClass("org.telegram.messenger.SharedConfig", lpparam.classLoader);
|
XposedClass sharedConfig = new XposedClass("org.telegram.messenger.SharedConfig", lpparam.classLoader);
|
||||||
sharedConfig.hookAllMethods("getDevicePerformanceClass", XC_MethodReplacement.returnConstant(2));
|
sharedConfig.hookAllMethods("getDevicePerformanceClass", XC_MethodReplacement.returnConstant(2));
|
||||||
|
|
||||||
|
|
|
@ -21,14 +21,4 @@ public class XposedClass {
|
||||||
XposedBridge.log(t);
|
XposedBridge.log(t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void hookAllConstructors(XC_MethodHook callback) {
|
|
||||||
try {
|
|
||||||
if (aClass == null) return;
|
|
||||||
XposedBridge.hookAllConstructors(aClass, callback);
|
|
||||||
}
|
|
||||||
catch (Throwable t) {
|
|
||||||
XposedBridge.log(t);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,5 +18,5 @@ android.useAndroidX=true
|
||||||
# Automatically convert third-party libraries to use AndroidX
|
# Automatically convert third-party libraries to use AndroidX
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
|
|
||||||
appVerName=23.04.12
|
appVerName=23.04.13
|
||||||
appVerCode=202304122
|
appVerCode=202304130
|
||||||
|
|
Loading…
Add table
Reference in a new issue