Skip to content

Commit

Permalink
Add support to downgrade WhatsApp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev4Mod committed Jun 7, 2024
1 parent 496c133 commit a2bfa36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/wmods/wppenhacer/WppXposed.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static XSharedPreferences getPref() {
public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
var packageName = lpparam.packageName;
var classLoader = lpparam.classLoader;
var sourceDir = lpparam.appInfo.sourceDir;


if (packageName.equals(BuildConfig.APPLICATION_ID)) {
XposedHelpers.findAndHookMethod(MainActivity.class.getName(), lpparam.classLoader, "isXposedEnabled", XC_MethodReplacement.returnConstant(true));
Expand All @@ -58,6 +58,7 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Th
Patch.handleLoadPackage(lpparam, pref);
if (!packageName.equals(MainFeatures.PACKAGE_WPP) && !packageName.equals(MainFeatures.PACKAGE_BUSINESS))
return;
var sourceDir = lpparam.appInfo.sourceDir;
MainFeatures.start(classLoader, getPref(), sourceDir);
disableSecureFlag();
}
Expand Down

0 comments on commit a2bfa36

Please sign in to comment.