add: HomePromoPatch (#3)

* add: `HomePromoPatch`

* fix: `HomePromoPatch` using the last signature in loop
This commit is contained in:
oSumAtrIX
2022-04-18 18:00:10 +02:00
committed by GitHub
parent 17bcf786a8
commit 2357bc09a3
4 changed files with 201 additions and 12 deletions

View File

@ -0,0 +1,14 @@
package app.revanced.extensions
import app.revanced.patcher.smali.toInstruction
import org.jf.dexlib2.builder.MutableMethodImplementation
internal fun MutableMethodImplementation.injectHideCall(
index: Int,
register: Int
) {
this.addInstruction(
index,
"invoke-static { v$register }, Lfi/razerman/youtube/XAdRemover;->HideView(Landroid/view/View;)V".toInstruction()
)
}