feat(YouTube): add support version 19.25.39, drop support version 19.23.40

This commit is contained in:
inotia00
2024-07-05 15:14:14 +09:00
parent 4866308321
commit 00cc6d0945
20 changed files with 152 additions and 121 deletions

View File

@ -18,6 +18,7 @@ abstract class BaseMainActivityResolvePatch(
setOf(mainActivityOnCreateFingerprint)
) {
lateinit var mainActivityMutableClass: MutableClass
lateinit var onConfigurationChangedMethod: MutableMethod
private lateinit var constructorMethod: MutableMethod
private lateinit var onBackPressedMethod: MutableMethod
@ -38,6 +39,9 @@ abstract class BaseMainActivityResolvePatch(
// set onBackPressed method
onBackPressedMethod = getMethod("onBackPressed")
onBackPressedMethodIndex = onBackPressedMethod.getTargetIndexOrThrow(Opcode.RETURN_VOID)
// set onConfigurationChanged method
onConfigurationChangedMethod = getMethod("onConfigurationChanged")
}
fun injectConstructorMethodCall(classDescriptor: String, methodDescriptor: String) =