package app.revanced.patches.mifitness.misc.login

import app.revanced.patcher.extensions.addInstruction
import app.revanced.patcher.patch.bytecodePatch

@Suppress("ObjectPropertyName")
val fixLoginPatch = bytecodePatch(
    name = "Fix login",
    description = "Fixes login for uncertified Mi Fitness app",
) {
    compatibleWith("com.xiaomi.wearable")

    apply {
        xiaomiAccountManagerConstructorMethod.addInstruction(0, "const/16 p2, 0x0")
    }
}
