refactor
This commit is contained in:
parent
d62d17fdeb
commit
9671c7499d
3 changed files with 6 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package app.revanced.patches.youtube.layout.hide.general
|
||||
|
||||
import app.revanced.patcher.StringMatchType
|
||||
import app.revanced.patcher.checkCast
|
||||
import app.revanced.patcher.fingerprint
|
||||
import app.revanced.patcher.methodCall
|
||||
|
|
@ -42,7 +43,7 @@ internal val parseElementFromBufferFingerprint = fingerprint {
|
|||
// IGET_BOOLEAN // 20.07+
|
||||
opcode(Opcode.INVOKE_INTERFACE, maxAfter = 1),
|
||||
opcode(Opcode.MOVE_RESULT_OBJECT, maxAfter = 0),
|
||||
string("Failed to parse Element", partialMatch = true)
|
||||
string("Failed to parse Element", matchType = StringMatchType.STARTS_WITH)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package app.revanced.patches.youtube.layout.startupshortsreset
|
||||
|
||||
import app.revanced.patcher.StringMatchType
|
||||
import app.revanced.patcher.checkCast
|
||||
import app.revanced.patcher.fingerprint
|
||||
import app.revanced.patcher.literal
|
||||
|
|
@ -21,7 +22,7 @@ internal val userWasInShortsAlternativeFingerprint = fingerprint {
|
|||
methodCall(smali = "Ljava/lang/Boolean;->booleanValue()Z", maxAfter = 0),
|
||||
opcode(Opcode.MOVE_RESULT, maxAfter = 0),
|
||||
// 20.40+ string was merged into another string and is a partial match.
|
||||
string("userIsInShorts: ", partialMatch = true, maxAfter = 15)
|
||||
string("userIsInShorts: ", matchType = StringMatchType.CONTAINS, maxAfter = 15)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package app.revanced.patches.youtube.misc.links
|
||||
|
||||
import app.revanced.patcher.StringMatchType
|
||||
import app.revanced.patcher.fingerprint
|
||||
import app.revanced.patcher.methodCall
|
||||
import app.revanced.patcher.string
|
||||
|
|
@ -14,7 +15,7 @@ internal val abUriParserLegacyFingerprint = fingerprint {
|
|||
parameters("Ljava/lang/Object;")
|
||||
instructions(
|
||||
string("Found entityKey=`"),
|
||||
string("that does not contain a PlaylistVideoEntityId", partialMatch = true),
|
||||
string("that does not contain a PlaylistVideoEntityId", matchType = StringMatchType.CONTAINS),
|
||||
methodCall(smali = "Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;")
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue