fix(YouTube Music): Add Spoof client patch to fix playback (#4132)

This commit is contained in:
oSumAtrIX
2024-12-16 19:07:37 +01:00
committed by GitHub
parent 3b48f2e5ef
commit b0925088e8
12 changed files with 274 additions and 90 deletions

View File

@ -0,0 +1 @@
// Do not remove. Necessary for the extension plugin to be applied to the project.

View File

@ -0,0 +1 @@
<manifest/>

View File

@ -0,0 +1,27 @@
package app.revanced.extension.music.spoof;
/**
* @noinspection unused
*/
public class SpoofClientPatch {
private static final int CLIENT_TYPE_ID = 26;
private static final String CLIENT_VERSION = "6.21";
private static final String DEVICE_MODEL = "iPhone16,2";
private static final String OS_VERSION = "17.7.2.21H221";
public static int getClientId() {
return CLIENT_TYPE_ID;
}
public static String getClientVersion() {
return CLIENT_VERSION;
}
public static String getClientModel() {
return DEVICE_MODEL;
}
public static String getOsVersion() {
return OS_VERSION;
}
}