feat(ORF ON): Add Remove root detection patch (#5551)
This commit is contained in:
parent
afc7c75df1
commit
d92362b0d9
3 changed files with 33 additions and 0 deletions
|
|
@ -424,6 +424,10 @@ public final class app/revanced/patches/openinghours/misc/fix/crash/FixCrashPatc
|
||||||
public static final fun getFixCrashPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getFixCrashPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class app/revanced/patches/orfon/detection/root/RemoveRootDetectionPatchKt {
|
||||||
|
public static final fun getRemoveRootDetectionPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
|
}
|
||||||
|
|
||||||
public final class app/revanced/patches/pandora/ads/DisableAudioAdsPatchKt {
|
public final class app/revanced/patches/pandora/ads/DisableAudioAdsPatchKt {
|
||||||
public static final fun getDisableAudioAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getDisableAudioAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
package app.revanced.patches.orfon.detection.root
|
||||||
|
|
||||||
|
import app.revanced.patcher.fingerprint
|
||||||
|
import com.android.tools.smali.dexlib2.AccessFlags
|
||||||
|
|
||||||
|
internal val isDeviceRootedFingeprint = fingerprint {
|
||||||
|
accessFlags(AccessFlags.PUBLIC)
|
||||||
|
returns("Z")
|
||||||
|
custom { method, classDef ->
|
||||||
|
method.name == "isDeviceRooted" &&
|
||||||
|
classDef.endsWith("/RootChecker;")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
package app.revanced.patches.orfon.detection.root
|
||||||
|
|
||||||
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
|
@Suppress("unused")
|
||||||
|
val removeRootDetectionPatch = bytecodePatch(
|
||||||
|
name = "Remove root detection",
|
||||||
|
description = "Removes the check for root permissions.",
|
||||||
|
) {
|
||||||
|
compatibleWith("com.nousguide.android.orftvthek")
|
||||||
|
|
||||||
|
execute {
|
||||||
|
isDeviceRootedFingeprint.method.returnEarly(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue