generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(YouTube Music - Spoof video streams): Disable stable volume
- Loading branch information
1 parent
839a404
commit b8d02a4
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
patches/src/main/kotlin/app/revanced/patches/music/misc/spoof/SpoofVideoStreamsPatch.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
package app.revanced.patches.music.misc.spoof | ||
|
||
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction | ||
import app.revanced.patches.music.misc.gms.musicActivityOnCreateFingerprint | ||
import app.revanced.patches.shared.misc.spoof.EXTENSION_CLASS_DESCRIPTOR | ||
import app.revanced.patches.shared.misc.spoof.spoofVideoStreamsPatch | ||
|
||
val spoofVideoStreamsPatch = spoofVideoStreamsPatch({ | ||
compatibleWith("com.google.android.apps.youtube.music") | ||
}) | ||
}, { | ||
musicActivityOnCreateFingerprint.method.addInstruction( | ||
0, | ||
"invoke-static { }, $EXTENSION_CLASS_DESCRIPTOR->setClientTypeToYouTubeMusic()V" | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters