revanced-patches-template icon indicating copy to clipboard operation
revanced-patches-template copied to clipboard

feat: JADX plugin to autogenerate fingerpints and patches

Open Sculas opened this issue 1 year ago • 2 comments

Type

Functionality

Issue

Currently, fingerprints and patches have to be written by hand. While this is not an issue for some, this can be a challenge for newcomers.

Feature

Develop a JADX plugin (either using the current Java API or the new KTS API) to autogenerate fingerprints and patches. This system will include checking if said fingerprint actually resolves to the correct method, and if needed autogenerate parent fingerprints. It should prefer string patterns over opcode patterns. It would also be nice if it can minimize the opcode pattern as much as possible.

Creating patches would be made easier too, just click "Create Patch", make your changes and click "Done"! The developer would need to know how smali works, but smali is quite an easy language to learn.

Motivation

This would allow newcomers to create fingerprints and patches very easily and speeds up patch development in general.

Additional context

Optionally port this plugin over to Recaf when Android support has been added. It's a good alternative to JADX (when Android support has been added) and supporting more decompilers is always good.

Sculas avatar Aug 03 '22 17:08 Sculas

Well...this could really help me to generate fingerprints for my patches.

OxrxL avatar Aug 03 '22 19:08 OxrxL

The issue was edited to add "autogeneration of patches" as a feature.

Sculas avatar Aug 07 '22 19:08 Sculas