Skip to content

Commit

Permalink
Force set device performance class to high
Browse files Browse the repository at this point in the history
thats unlock some features (at least blur mode in navbar)
  • Loading branch information
aire1 authored Jul 26, 2022
1 parent d3bb831 commit cbf0645
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/shatyuka/killergram/MainHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) {
if (chatUIActivityClass != null) {
XposedBridge.hookAllMethods(chatUIActivityClass, "addSponsoredMessages", XC_MethodReplacement.returnConstant(null));
}
Class<?> SharedConfigClass = XposedHelpers.findClassIfExists("org.telegram.messenger.SharedConfig", lpparam.classLoader);
if (SharedConfigClass != null) {
XposedBridge.hookAllMethods(SharedConfigClass, "getDevicePerformanceClass", XC_MethodReplacement.returnConstant(2));
}
} catch (Throwable ignored) {
}
}
Expand Down

0 comments on commit cbf0645

Please sign in to comment.