Write a patch making guide or tutorial #1377
Replies: 2 comments 1 reply
-
Yes, those are prerequisites that are not covered but necessary for ReVanced development
This is dalvik specific, not related to ReVanced Patchers, but Dexlib/smali related.
Those are patches specific helper functions, not patcher APIs, these cant be documented in the patcher repository.
Learning Kotlin, Java or Dalvik is not in scope of ReVanced. The respective tools have their own documentation irrespectively of ReVanced. The chain of learning goes as far back as necessary so if you have a prerequisite you dont understand you need to learn the prerequisite.
Tools like JADX emulators or debuggers are not mandatory for ReVanced.
The patcher docs are specifically carved out for the purpose of documenting patcher, things like this are out of patchers scope.
Thats possible, however it needs separate and dedicated planning for which you'd have to invest time in. If you like, you can help us with such a documentation. |
Beta Was this translation helpful? Give feedback.
-
|
I've shifted the focus from improving the ReVanced Patcher documentation to writing a separate patch making guide. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
About
This was requested by u/The_Frozen_Duck on the ReVanced subreddit.
For context, I'm new to making patches for ReVanced. I spent the past 4 days trying to make one for Duolingo (I haven't wrote any patch code yet).
Currently, there isn't a guide or tutorial on making ReVanced patches. There is the ReVanced Patcher documentation, but it's more of a reference than a guide.
Without further ado, here is the proposal:
It should be a fairly comprehensive guide/tutorial on the process of making ReVanced patches. It should cover the prequisites for making patches, such as Dalvik bytecode, and reverse engineering. It serves as the main resource for beginners, while also serving as a supplement for advanced patch makers.
Here is what I would do in the guide/tutorial:
getInstruction,addResources, andreturnEarly).Java:
Smali/Dalvik:
Kotlin:
Smali/Dalvik:
There should be many code snippets showing the commonly used features of Java and Kotlin. A list of all Dalvik opcodes and their corresponding
Opcodeconstants is also helpful.Edit: I will clarify that those tools are not required to use ReVanced, nor are they required to merely build ReVanced Patches (only a JDK is required). However, they are most likely needed to write patches.
The layout should look like this:
The guide/tutorial should go in the revanced-documentation repository.
Acknowledgements
Beta Was this translation helpful? Give feedback.
All reactions