A fork of NPatch allowing to patch API 101 plugins (gkms-localify only)
Go to file
327135569 6c092f9a5b refine log 2021-03-30 17:41:42 +08:00
apksigner 修复在android7以下的手机上的兼容性问题 2020-02-27 14:17:10 +08:00
axmlprinter Fix AXMLPrinter2 bug: java.lang.ArrayIndexOutOfBoundsException in StringBlock.getShort 2019-05-26 15:18:24 +08:00
gradle/wrapper Add files via upload 2019-03-24 23:28:45 +08:00
xpatch refine log 2021-03-30 17:41:42 +08:00
.gitignore add .gitignore files 2019-03-24 23:42:06 +08:00
LICENSE.txt Add files via upload 2019-03-24 23:28:45 +08:00
NOTICE.txt Add files via upload 2019-03-24 23:28:45 +08:00
README.md update README 2021-03-29 10:14:37 +08:00
build.gradle update SandHook to the newest version, to support android11 and fix some hook bugs 2021-01-13 22:14:17 +08:00
gradle.properties Add files via upload 2019-03-24 23:28:45 +08:00
gradlew Add files via upload 2019-03-24 23:28:45 +08:00
gradlew.bat Add files via upload 2019-03-24 23:28:45 +08:00
settings.gradle 增加更换hook框架,支持修复manifest的破解方式,支持更多功能点 2020-02-08 22:34:29 +08:00

README.md

What is MMPatch

fork from Xpatch

MMPatch is a jar tool which is used to repackage the apk file. Then, the new apk can load any Xposed modules installed in the android system.

This is a way to use Xposed modules without root your device.

It is easy way to modify one app using xposed module. And any apps changed by MMPatch can load every modules downloaded in the Xposed Module Repository.

Benefits

  1. Use xposed modules without your device;
  2. Modify any apps without root your device.

How to use

  1. Download the latest jar file from the release page;
  2. Put dex files you wanna package to app in list-dex dir
  3. Put so files you wanna package to app in list-so/{eabi} dir, eg: list-so/armeabi-v7a.
  4. Run this command in the Windows/Mac console:
$ java -jar mmpatch.jar source.apk

Then, a new apk named source-xposed-signed.apk in the same folder as source.apk.

More command details can be found when no parameter is added, eg:

$ java -jar mmpatch.jar 

How to disable Xposed modules

When the new apk is installed in the device, It will load all the Xposed modules installed in the device when it's process started.

But you can manage the installed Xposed modules on/off state by a file in the storage.
The file path is /sdcard/xpmodules.list.

When the new app started, it will search all the installed Xposed modules and write the the module app name and the module application name into this file. (/sdcard/xpmodules.list) eg:

com.blanke.mdwechat#MDWechat
liubaoyua.customtext#文本自定义

Each line of this file is Application Name#App Name. You can disable a Xposed module by add # before the Application Name, eg:

#com.blanke.mdwechat#MDWechat
liubaoyua.customtext#文本自定义

This means the MDWechat Xposed module is disabled.

#com.blanke.mdwechat#MDWechat
#liubaoyua.customtext#文本自定义

This means all Xposed modules are disabled.

Note: The target app must have file system access permission. Otherwise this file will not be created, and all xposed modules are enabled.

Thanks to