feat(youtube/spoof-player-parameter): changed to selectable option for MicroG (ROOT) users https://github.com/inotia00/ReVanced_Extended/issues/1110

This commit is contained in:
inotia00 2023-07-11 21:59:49 +09:00
parent 294f8eb36b
commit a5c8ce862d
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.PatchResult
import app.revanced.patcher.patch.PatchResultSuccess
import app.revanced.patcher.patch.annotations.DependsOn
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
import app.revanced.patches.youtube.utils.fix.parameter.fingerprints.BadResponseFingerprint
@ -31,6 +32,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
import org.jf.dexlib2.iface.instruction.ReferenceInstruction
@Patch
@Name("spoof-player-parameters")
@Description("Spoofs player parameters to prevent playback issues.")
@DependsOn(

View File

@ -38,7 +38,7 @@ class MicroGPatch : ResourcePatch {
val packageName = PackageNamePatch.YouTubePackageName!!
/*
/**
* Add settings
*/
SettingsPatch.addPreference(