fix: subscribe notification button not showing

This commit is contained in:
inotia00
2022-12-27 23:24:45 +09:00
parent f7176dcafc
commit 92ac0552ce
2 changed files with 3 additions and 2 deletions

View File

@ -13,5 +13,5 @@ object PrimaryPiPFingerprint : MethodFingerprint(
Opcode.CHECK_CAST,
Opcode.IGET_OBJECT
),
strings = listOf("OnYpcTransactionListener")
strings = listOf("honeycomb.Shell\$HomeActivity")
)

View File

@ -28,7 +28,8 @@ class PiPNotificationBytecodePatch : BytecodePatch(
).map {
it.result ?: return it.toErrorResult()
}.forEach { result ->
result.mutableMethod.addInstruction(0, "return-void")
val index = result.scanResult.patternScanResult!!.startIndex + 1
result.mutableMethod.addInstruction(index, "return-void")
}
return PatchResultSuccess()