some fixes
This commit is contained in:
parent
db74542031
commit
93301e7f76
7 changed files with 14 additions and 19 deletions
|
|
@ -25,6 +25,6 @@ internal val BytecodePatchContext.cb11ConstructorMethod by gettingFirstMethodDec
|
|||
}
|
||||
|
||||
internal val BytecodePatchContext.getBottomBarMethod by gettingFirstMethodDeclaratively {
|
||||
name("getBottombar")
|
||||
name("getBottomBar")
|
||||
definingClass { endsWith("HomeMenu;") }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ import app.revanced.patcher.patch.BytecodePatchContext
|
|||
|
||||
internal val BytecodePatchContext.onApplicationCreateMethodMatch by composingFirstMethod {
|
||||
name("onCreate")
|
||||
definingClass { endsWith("RecorderApplication") }
|
||||
definingClass { endsWith("RecorderApplication;") }
|
||||
instructions("com.google.android.feature.PIXEL_2017_EXPERIENCE"())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import app.revanced.patcher.instructions
|
|||
import app.revanced.patcher.invoke
|
||||
import app.revanced.patcher.patch.BytecodePatchContext
|
||||
|
||||
internal const val MILLISECOND_IN_A_DAY_LITERAL = 0x5265c00L
|
||||
private const val MILLISECOND_IN_A_DAY_LITERAL = 0x5265c00L
|
||||
|
||||
internal val BytecodePatchContext.appUpdateLockoutBuilderMethod by gettingFirstMethodDeclaratively(
|
||||
"android.hardware.sensor.hinge_angle",
|
||||
|
|
|
|||
|
|
@ -15,10 +15,10 @@ internal fun BytecodePatchContext.editShareLinksPatch(block: MutableMethod.(inde
|
|||
liveUrlResponseJsonParserMethodMatch,
|
||||
)
|
||||
|
||||
methodsToPatch.forEachIndexed { index, match ->
|
||||
methodsToPatch.forEach { match ->
|
||||
match.method.apply {
|
||||
val putSharingUrlIndex = indexOfFirstInstruction(
|
||||
index,
|
||||
match[0],
|
||||
Opcode.IPUT_OBJECT
|
||||
)
|
||||
val sharingUrlRegister = getInstruction<TwoRegisterInstruction>(putSharingUrlIndex).registerA
|
||||
|
|
|
|||
|
|
@ -8,10 +8,9 @@ import app.revanced.patcher.opcodes
|
|||
import app.revanced.patcher.patch.BytecodePatchContext
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
|
||||
internal val BytecodePatchContext.permalinkResponseJsonParserMethodMatch by composingFirstMethod(
|
||||
"permalink",
|
||||
) {
|
||||
internal val BytecodePatchContext.permalinkResponseJsonParserMethodMatch by composingFirstMethod {
|
||||
name("parseFromJson")
|
||||
instructions("permalink"())
|
||||
opcodes(
|
||||
Opcode.NEW_INSTANCE,
|
||||
Opcode.INVOKE_DIRECT,
|
||||
|
|
@ -19,20 +18,17 @@ internal val BytecodePatchContext.permalinkResponseJsonParserMethodMatch by comp
|
|||
)
|
||||
}
|
||||
|
||||
internal val BytecodePatchContext.storyUrlResponseJsonParserMethodMatch by composingFirstMethod(
|
||||
"story_item_to_share_url",
|
||||
) {
|
||||
internal val BytecodePatchContext.storyUrlResponseJsonParserMethodMatch by composingFirstMethod {
|
||||
name("parseFromJson")
|
||||
instructions("story_item_to_share_url"())
|
||||
}
|
||||
|
||||
internal val BytecodePatchContext.profileUrlResponseJsonParserMethodMatch by composingFirstMethod(
|
||||
"profile_to_share_url"
|
||||
) {
|
||||
internal val BytecodePatchContext.profileUrlResponseJsonParserMethodMatch by composingFirstMethod {
|
||||
name("parseFromJson")
|
||||
instructions("profile_to_share_url"())
|
||||
}
|
||||
|
||||
internal val BytecodePatchContext.liveUrlResponseJsonParserMethodMatch by composingFirstMethod(
|
||||
"live_to_share_url",
|
||||
) {
|
||||
internal val BytecodePatchContext.liveUrlResponseJsonParserMethodMatch by composingFirstMethod {
|
||||
name("parseFromJson")
|
||||
instructions("live_to_share_url"())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ internal val BytecodePatchContext.adResolverMethod by gettingFirstMethodDeclarat
|
|||
accessFlags(AccessFlags.PUBLIC, AccessFlags.FINAL)
|
||||
returnType("L")
|
||||
parameterTypes("L", "L")
|
||||
|
||||
}
|
||||
|
||||
internal val BytecodePatchContext.whAdViewInjectorMethod by gettingFirstMethodDeclaratively("successfulAdView") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue