add: HomePromoPatch
(#3)
* add: `HomePromoPatch` * fix: `HomePromoPatch` using the last signature in loop
This commit is contained in:
14
src/main/kotlin/app/revanced/extensions/Extensions.kt
Normal file
14
src/main/kotlin/app/revanced/extensions/Extensions.kt
Normal 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()
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user