This commit is contained in:
@@ -57,11 +57,31 @@ private val shutdownStateFingerprint = Fingerprint(
|
|||||||
parameters = emptyList()
|
parameters = emptyList()
|
||||||
)
|
)
|
||||||
|
|
||||||
private val xChatObsoleteVersionStateFingerprint = Fingerprint(
|
private val appUpdateScreenRendererFingerprint = Fingerprint(
|
||||||
definingClass = "Lcom/x/dms/y;",
|
definingClass = "Lcom/twitter/clientshutdown/update/j;",
|
||||||
name = "invokeSuspend",
|
name = "<init>",
|
||||||
returnType = "Ljava/lang/Object;",
|
returnType = "V",
|
||||||
parameters = listOf("Ljava/lang/Object;")
|
parameters = listOf(
|
||||||
|
"Landroid/view/View;",
|
||||||
|
"Landroid/app/Activity;",
|
||||||
|
"Lcom/twitter/app/common/activity/b;",
|
||||||
|
"Lcom/twitter/subsystem/clientshutdown/api/c;"
|
||||||
|
),
|
||||||
|
strings = listOf("rootView", "activityFinisher", "eventLogHelper")
|
||||||
|
)
|
||||||
|
|
||||||
|
private val forceUpdateScreenRendererFingerprint = Fingerprint(
|
||||||
|
definingClass = "Lcom/x/forceupdate/g;",
|
||||||
|
name = "a",
|
||||||
|
returnType = "V",
|
||||||
|
parameters = listOf(
|
||||||
|
"Lkotlin/jvm/functions/Function0;",
|
||||||
|
"Lkotlin/jvm/functions/Function1;",
|
||||||
|
"Landroidx/compose/ui/Modifier;",
|
||||||
|
"Landroidx/compose/runtime/Composer;",
|
||||||
|
"I"
|
||||||
|
),
|
||||||
|
strings = listOf("onUpdateClick", "onLearnMoreClick")
|
||||||
)
|
)
|
||||||
|
|
||||||
private const val APP_UPDATE_ACTIVITY = "com.twitter.clientshutdown.update.AppUpdateActivity"
|
private const val APP_UPDATE_ACTIVITY = "com.twitter.clientshutdown.update.AppUpdateActivity"
|
||||||
@@ -122,7 +142,10 @@ val disableOutdatedVersionScreenPatch = bytecodePatch(
|
|||||||
|
|
||||||
shutdownEntryPointDisablerFingerprint.method.addInstructions(
|
shutdownEntryPointDisablerFingerprint.method.addInstructions(
|
||||||
0,
|
0,
|
||||||
"return-void"
|
"""
|
||||||
|
invoke-virtual {p0}, Lcom/twitter/subsystem/clientshutdown/i;->c()V
|
||||||
|
return-void
|
||||||
|
"""
|
||||||
)
|
)
|
||||||
outdatedVersionEnforcementFingerprint.method.addInstructions(
|
outdatedVersionEnforcementFingerprint.method.addInstructions(
|
||||||
0,
|
0,
|
||||||
@@ -140,12 +163,21 @@ val disableOutdatedVersionScreenPatch = bytecodePatch(
|
|||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
xChatObsoleteVersionStateFingerprint.method.addInstructions(
|
appUpdateScreenRendererFingerprint.method.addInstructions(
|
||||||
0,
|
0,
|
||||||
"""
|
"""
|
||||||
const/4 v0, 0x0
|
new-instance v0, Lcom/twitter/subsystem/clientshutdown/a;
|
||||||
iput-boolean v0, p0, Lcom/x/dms/y;->o:Z
|
invoke-direct {v0, p2}, Lcom/twitter/subsystem/clientshutdown/a;-><init>(Landroid/content/Context;)V
|
||||||
|
const/4 v1, 0x2
|
||||||
|
const-string v2, "com.twitter.clientshutdown.update.AppUpdateActivityAlias"
|
||||||
|
invoke-virtual {v0, v1, v2}, Lcom/twitter/subsystem/clientshutdown/a;->b(ILjava/lang/String;)V
|
||||||
|
invoke-virtual {p2}, Landroid/app/Activity;->finish()V
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
forceUpdateScreenRendererFingerprint.method.addInstructions(
|
||||||
|
0,
|
||||||
|
"return-void"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user