This will allow you to patch the Android system and inject features without needing to recompile the OS or install Xposed.
Notably, it is made to inject support for signature spoofing into the system so it can spoof Android app signatures (useful for microG).
Download it here.
Windows, Linux, macOS (OS X) and Android.
It doesn't require root on the OS where you run it but it require root on the device you want to patch.
Python, 7-Zip, Java and ADB.
sudo add-apt-repository universesudo apt-get updatesudo apt-get install python3 p7zip-full default-jre android-tools-adb
Dependencies setup on macOS (using Homebrew)
brew updatebrew install python3brew install p7zipbrew cask install javabrew cask install android-platform-tools
- Make sure
Developer optionsis enabled. This is hidden by default since sometime in Android 4.x, you can show it by going toAbout phoneand tapping on theBuild number7 times in succession. - In the developer settings, find the setting for
Android debuggingand enable it. - Find the setting for
Root accessand make sure ADB has root access. - Connect your device via USB.
- Now, on the computer, run
python main.py(orpython3 main.py). - Select the option 1 to allow the patcher to do everything automatically.
- Reboot the device.
You can run this patcher also when the device is in Android's recovery.
You will need to reboot for Android to detect that you've installed a new framework and so for Dalvik/ART to re-optimise all the apps on the phone. Without this, you may receive an INSTALL_FAILED_DEXOPT error when installing new apps.
Note: You will need to redo this everytime you flash a new /system partition (e.g. flashing an updated LineageOS zip or a different ROM).
Note for Magisk users: Apply Android patches before installing Magisk to be sure everything is working correctly.