Added some clients, rearranged the list

This commit is contained in:
DarkCat09 2023-04-12 15:06:16 +04:00
parent 2e48334881
commit 58f6c3f067
3 changed files with 58 additions and 28 deletions

View file

@ -6,21 +6,29 @@ Also allows you to copy or save messages when "Restrict saving content" is enabl
### Support clients ### Support clients
- **Official** org.telegram.messenger - **Official** `org.telegram.messenger`
- **Official** org.telegram.messenger.web - **Official** `org.telegram.messenger.web`
- **Official** org.telegram.messenger.beta - **Official** `org.telegram.messenger.beta`
- **NekoX** nekox.messenger - **Nekogram** `tw.nekomimi.nekogram`
- **Nanogram** com.cool2645.nekolite - **Nekogram X** `nekox.messenger`
- **Plus Messenger** org.telegram.plus - **Forkgram** `org.forkclient.messenger`
- **iMe Messenger** com.iMe.android - **Forkgram** `org.forkclient.messenger.beta`
- **BGram** org.telegram.BifToGram - **exteraGram** `com.exteragram.messenger`
- **Catogram** ua.itaysonlab.messenger - **exteraGram** `com.exteragram.messenger.beta`
- **Forkgram** org.forkclient.messenger - **MDGram** `org.telegram.mdgram`
- **Forkgram** org.forkclient.messenger.beta - **MDGram** `org.telegram.mdgramyou`
- **aka** org.aka.messenger - **BGram** `org.telegram.BifToGram`
- **TurboTel Pro** ellipi.messenger - **OwlGram** `it.owlgram.android`
- **Catogram X** org.nift4.catox - **Catogram** `ua.itaysonlab.messenger`
- **OwlGram** it.owlgram.android - **Catogram X** `org.nift4.catox`
- **Nanogram** `com.cool2645.nekolite`
- **Ninjagram** `me.ninjagram.messenger`
- **Ninjagram** `org.ninjagram.messenger`
- **Graph (Telegraph)** `ir.ilmili.telegraph`
- **Plus Messenger** `org.telegram.plus`
- **iMe Messenger** `com.iMe.android`
- **aka** `org.aka.messenger`
- **TurboTel Pro** `ellipi.messenger`
## License ## License

View file

@ -14,18 +14,27 @@ public class MainHook implements IXposedHookLoadPackage {
"org.telegram.messenger", "org.telegram.messenger",
"org.telegram.messenger.web", "org.telegram.messenger.web",
"org.telegram.messenger.beta", "org.telegram.messenger.beta",
"tw.nekomimi.nekogram",
"nekox.messenger", "nekox.messenger",
"com.cool2645.nekolite",
"org.telegram.plus",
"com.iMe.android",
"org.telegram.BifToGram",
"ua.itaysonlab.messenger",
"org.forkclient.messenger", "org.forkclient.messenger",
"org.forkclient.messenger.beta", "org.forkclient.messenger.beta",
"org.aka.messenger", "com.exteragram.messenger",
"ellipi.messenger", "com.exteragram.messenger.beta",
"org.telegram.mdgram",
"org.telegram.mdgramyou",
"org.telegram.BifToGram",
"it.owlgram.android",
"ua.itaysonlab.messenger",
"org.nift4.catox", "org.nift4.catox",
"it.owlgram.android"); "com.cool2645.nekolite",
"me.ninjagram.messenger",
"org.ninjagram.messenger",
"ir.ilmili.telegraph",
"org.telegram.plus",
"com.iMe.android",
"org.aka.messenger",
"ellipi.messenger"
);
@Override @Override
public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) { public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) {
@ -36,21 +45,23 @@ public class MainHook implements IXposedHookLoadPackage {
XposedBridge.hookAllMethods(messagesControllerClass, "getSponsoredMessages", XC_MethodReplacement.returnConstant(null)); XposedBridge.hookAllMethods(messagesControllerClass, "getSponsoredMessages", XC_MethodReplacement.returnConstant(null));
XposedBridge.hookAllMethods(messagesControllerClass, "isChatNoForwards", XC_MethodReplacement.returnConstant(false)); XposedBridge.hookAllMethods(messagesControllerClass, "isChatNoForwards", XC_MethodReplacement.returnConstant(false));
} }
Class<?> chatUIActivityClass = XposedHelpers.findClassIfExists("org.telegram.ui.ChatActivity", lpparam.classLoader); Class<?> chatUIActivityClass = XposedHelpers.findClassIfExists("org.telegram.ui.ChatActivity", lpparam.classLoader);
if (chatUIActivityClass != null) { if (chatUIActivityClass != null) {
XposedBridge.hookAllMethods(chatUIActivityClass, "addSponsoredMessages", XC_MethodReplacement.returnConstant(null)); XposedBridge.hookAllMethods(chatUIActivityClass, "addSponsoredMessages", XC_MethodReplacement.returnConstant(null));
} }
Class<?> SharedConfigClass = XposedHelpers.findClassIfExists("org.telegram.messenger.SharedConfig", lpparam.classLoader); Class<?> SharedConfigClass = XposedHelpers.findClassIfExists("org.telegram.messenger.SharedConfig", lpparam.classLoader);
if (SharedConfigClass != null) { if (SharedConfigClass != null) {
XposedBridge.hookAllMethods(SharedConfigClass, "getDevicePerformanceClass", XC_MethodReplacement.returnConstant(2)); XposedBridge.hookAllMethods(SharedConfigClass, "getDevicePerformanceClass", XC_MethodReplacement.returnConstant(2));
} }
Class<?> UserConfigClass = XposedHelpers.findClassIfExists("org.telegram.messenger.UserConfig", lpparam.classLoader); Class<?> UserConfigClass = XposedHelpers.findClassIfExists("org.telegram.messenger.UserConfig", lpparam.classLoader);
if (UserConfigClass != null) { if (UserConfigClass != null) {
XposedBridge.hookAllMethods(UserConfigClass, "getMaxAccountCount", XC_MethodReplacement.returnConstant(999)); XposedBridge.hookAllMethods(UserConfigClass, "getMaxAccountCount", XC_MethodReplacement.returnConstant(999));
XposedBridge.hookAllMethods(UserConfigClass, "hasPremiumOnAccounts", XC_MethodReplacement.returnConstant(true)); XposedBridge.hookAllMethods(UserConfigClass, "hasPremiumOnAccounts", XC_MethodReplacement.returnConstant(true));
} }
} catch (Throwable ignored) { } catch (Throwable ignored) { }
}
} }
} }
} }

View file

@ -4,13 +4,24 @@
<item>org.telegram.messenger</item> <item>org.telegram.messenger</item>
<item>org.telegram.messenger.web</item> <item>org.telegram.messenger.web</item>
<item>org.telegram.messenger.beta</item> <item>org.telegram.messenger.beta</item>
<item>tw.nekomimi.nekogram</item>
<item>nekox.messenger</item> <item>nekox.messenger</item>
<item>org.forkclient.messenger</item>
<item>org.forkclient.messenger.beta</item>
<item>com.exteragram.messenger</item>
<item>com.exteragram.messenger.beta</item>
<item>org.telegram.mdgram</item>
<item>org.telegram.mdgramyou</item>
<item>org.telegram.BifToGram</item>
<item>it.owlgram.android</item>
<item>ua.itaysonlab.messenger</item>
<item>org.nift4.catox</item>
<item>com.cool2645.nekolite</item> <item>com.cool2645.nekolite</item>
<item>me.ninjagram.messenger</item>
<item>org.ninjagram.messenger</item>
<item>ir.ilmili.telegraph</item>
<item>org.telegram.plus</item> <item>org.telegram.plus</item>
<item>com.iMe.android</item> <item>com.iMe.android</item>
<item>org.telegram.BifToGram</item>
<item>ua.itaysonlab.messenger</item>
<item>org.forkclient.messenger.beta</item>
<item>org.aka.messenger</item> <item>org.aka.messenger</item>
<item>ellipi.messenger</item> <item>ellipi.messenger</item>
</string-array> </string-array>