feat(client-spoof): removed from patch list and dependent on microg-support patch

This commit is contained in:
inotia00 2023-04-30 18:19:39 +09:00
parent c4e6c6e688
commit e14065c2d3

View File

@ -10,18 +10,14 @@ import app.revanced.patcher.extensions.instruction
import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResult
import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.PatchResultSuccess
import app.revanced.patcher.patch.annotations.DependsOn
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patches.shared.annotation.YouTubeCompatibility import app.revanced.patches.shared.annotation.YouTubeCompatibility
import app.revanced.patches.youtube.misc.clientspoof.fingerprints.UserAgentHeaderBuilderFingerprint import app.revanced.patches.youtube.misc.clientspoof.fingerprints.UserAgentHeaderBuilderFingerprint
import app.revanced.patches.youtube.misc.microg.shared.Constants.PACKAGE_NAME import app.revanced.patches.youtube.misc.microg.shared.Constants.PACKAGE_NAME
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
import org.jf.dexlib2.iface.instruction.FiveRegisterInstruction import org.jf.dexlib2.iface.instruction.FiveRegisterInstruction
@Patch
@Name("client-spoof") @Name("client-spoof")
@Description("Spoofs a patched client to allow playback.") @Description("Spoofs a patched client to allow playback.")
@DependsOn([SettingsPatch::class])
@YouTubeCompatibility @YouTubeCompatibility
@Version("0.0.1") @Version("0.0.1")
class ClientSpoofPatch : BytecodePatch( class ClientSpoofPatch : BytecodePatch(
@ -38,11 +34,6 @@ class ClientSpoofPatch : BytecodePatch(
} }
} ?: return UserAgentHeaderBuilderFingerprint.toErrorResult() } ?: return UserAgentHeaderBuilderFingerprint.toErrorResult()
/*
update settings
*/
SettingsPatch.updatePatchStatus("client-spoof")
return PatchResultSuccess() return PatchResultSuccess()
} }
} }