refactor(myexpenses): UnlockProPatch
This commit is contained in:
parent
8e94a17c28
commit
d5c56c4889
2 changed files with 9 additions and 10 deletions
|
|
@ -1,8 +1,9 @@
|
|||
package app.revanced.patches.myexpenses.misc.pro
|
||||
|
||||
import app.revanced.patcher.fingerprint
|
||||
import app.revanced.patcher.BytecodePatchContextMethodMatching.gettingFirstMutableMethodDeclaratively
|
||||
import app.revanced.patcher.patch.BytecodePatchContext
|
||||
import app.revanced.patcher.returnType
|
||||
|
||||
internal val isEnabledFingerprint = fingerprint {
|
||||
returns("Z")
|
||||
strings("feature", "feature.licenceStatus")
|
||||
internal val BytecodePatchContext.isEnabledMethod by gettingFirstMutableMethodDeclaratively("feature", "feature.licenceStatus") {
|
||||
returnType("Z")
|
||||
}
|
||||
|
|
@ -1,16 +1,14 @@
|
|||
package app.revanced.patches.myexpenses.misc.pro
|
||||
|
||||
import app.revanced.patcher.extensions.addInstructions
|
||||
import app.revanced.patcher.patch.bytecodePatch
|
||||
import app.revanced.patcher.patch.creatingBytecodePatch
|
||||
|
||||
@Suppress("unused")
|
||||
val unlockProPatch = bytecodePatch(
|
||||
name = "Unlock pro",
|
||||
) {
|
||||
@Suppress("unused", "ObjectPropertyName")
|
||||
val `Unlock pro` by creatingBytecodePatch {
|
||||
compatibleWith("org.totschnig.myexpenses"("3.4.9"))
|
||||
|
||||
apply {
|
||||
isEnabledFingerprint.method.addInstructions(
|
||||
isEnabledMethod.addInstructions(
|
||||
0,
|
||||
"""
|
||||
const/4 v0, 0x1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue