add: HomePromoPatch (#3)
* add: `HomePromoPatch` * fix: `HomePromoPatch` using the last signature in loop
This commit is contained in:
parent
c2e0e918d0
commit
57f506dbfd
4 changed files with 201 additions and 12 deletions
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()
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue