mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-25 03:31:03 +00:00
unofficial 20.40.33
This commit is contained in:
@@ -20,7 +20,8 @@ internal val userWasInShortsAlternativeFingerprint by fingerprint {
|
||||
checkCast("Ljava/lang/Boolean;"),
|
||||
methodCall(smali = "Ljava/lang/Boolean;->booleanValue()Z", maxAfter = 0),
|
||||
opcode(Opcode.MOVE_RESULT, maxAfter = 0),
|
||||
string("userIsInShorts: ", maxAfter = 5)
|
||||
// 20.40+ string was merged into another string and is a partial match.
|
||||
string("userIsInShorts: ", partialMatch = true, maxAfter = 15)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -36,11 +36,10 @@ internal val videoIdBackgroundPlayFingerprint by fingerprint {
|
||||
opcode(Opcode.MONITOR_EXIT),
|
||||
opcode(Opcode.RETURN_VOID)
|
||||
)
|
||||
// The target snippet of code is buried in a huge switch block and the target method
|
||||
// has been changed many times by YT which makes identifying it more difficult than usual.
|
||||
custom { method, classDef ->
|
||||
classDef.methods.count() == 17 &&
|
||||
method.implementation != null
|
||||
method.implementation != null &&
|
||||
(classDef.methods.count() == 17 // 20.39 and lower.
|
||||
|| classDef.methods.count() == 16) // 20.40+
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user