mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-09 19:14:37 +02:00
fix(Spoof streaming data): Remove Chipset
from parameter list
This commit is contained in:
parent
da770b32bf
commit
0d0c108d85
@ -289,7 +289,7 @@ object AppClient {
|
|||||||
/**
|
/**
|
||||||
* Android SDK version, equivalent to [Build.VERSION.SDK] (System property: ro.build.version.sdk)
|
* Android SDK version, equivalent to [Build.VERSION.SDK] (System property: ro.build.version.sdk)
|
||||||
*/
|
*/
|
||||||
val androidSdkVersion: String = Build.VERSION.SDK,
|
val androidSdkVersion: String? = null,
|
||||||
/**
|
/**
|
||||||
* App version.
|
* App version.
|
||||||
*/
|
*/
|
||||||
@ -298,10 +298,6 @@ object AppClient {
|
|||||||
* GmsCore versionCode.
|
* GmsCore versionCode.
|
||||||
*/
|
*/
|
||||||
val gmscoreVersionCode: String? = null,
|
val gmscoreVersionCode: String? = null,
|
||||||
/**
|
|
||||||
* ChipSet.
|
|
||||||
*/
|
|
||||||
val chipset: String? = null,
|
|
||||||
/**
|
/**
|
||||||
* If the client can access the API logged in.
|
* If the client can access the API logged in.
|
||||||
* If false, 'Authorization' must not be included.
|
* If false, 'Authorization' must not be included.
|
||||||
@ -333,7 +329,6 @@ object AppClient {
|
|||||||
userAgent = USER_AGENT_ANDROID_VR,
|
userAgent = USER_AGENT_ANDROID_VR,
|
||||||
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_VR,
|
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_VR,
|
||||||
clientVersion = CLIENT_VERSION_ANDROID_VR,
|
clientVersion = CLIENT_VERSION_ANDROID_VR,
|
||||||
chipset = CHIPSET_ANDROID_VR,
|
|
||||||
clientName = "ANDROID_VR",
|
clientName = "ANDROID_VR",
|
||||||
friendlyName = "Android VR"
|
friendlyName = "Android VR"
|
||||||
),
|
),
|
||||||
@ -345,7 +340,6 @@ object AppClient {
|
|||||||
userAgent = USER_AGENT_ANDROID_VR,
|
userAgent = USER_AGENT_ANDROID_VR,
|
||||||
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_VR,
|
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_VR,
|
||||||
clientVersion = CLIENT_VERSION_ANDROID_VR,
|
clientVersion = CLIENT_VERSION_ANDROID_VR,
|
||||||
chipset = CHIPSET_ANDROID_VR,
|
|
||||||
supportsCookies = false,
|
supportsCookies = false,
|
||||||
clientName = "ANDROID_VR",
|
clientName = "ANDROID_VR",
|
||||||
friendlyName = "Android VR No auth"
|
friendlyName = "Android VR No auth"
|
||||||
@ -359,7 +353,6 @@ object AppClient {
|
|||||||
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_UNPLUGGED,
|
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_UNPLUGGED,
|
||||||
clientVersion = CLIENT_VERSION_ANDROID_UNPLUGGED,
|
clientVersion = CLIENT_VERSION_ANDROID_UNPLUGGED,
|
||||||
gmscoreVersionCode = GMS_CORE_VERSION_CODE_ANDROID_UNPLUGGED,
|
gmscoreVersionCode = GMS_CORE_VERSION_CODE_ANDROID_UNPLUGGED,
|
||||||
chipset = CHIPSET_ANDROID_UNPLUGGED,
|
|
||||||
requireAuth = true,
|
requireAuth = true,
|
||||||
clientName = "ANDROID_UNPLUGGED",
|
clientName = "ANDROID_UNPLUGGED",
|
||||||
friendlyName = "Android TV"
|
friendlyName = "Android TV"
|
||||||
@ -373,7 +366,6 @@ object AppClient {
|
|||||||
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_CREATOR,
|
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_CREATOR,
|
||||||
clientVersion = CLIENT_VERSION_ANDROID_CREATOR,
|
clientVersion = CLIENT_VERSION_ANDROID_CREATOR,
|
||||||
gmscoreVersionCode = GMS_CORE_VERSION_CODE_ANDROID_CREATOR,
|
gmscoreVersionCode = GMS_CORE_VERSION_CODE_ANDROID_CREATOR,
|
||||||
chipset = CHIPSET_ANDROID_CREATOR,
|
|
||||||
requireAuth = true,
|
requireAuth = true,
|
||||||
clientName = "ANDROID_CREATOR",
|
clientName = "ANDROID_CREATOR",
|
||||||
friendlyName = "Android Studio"
|
friendlyName = "Android Studio"
|
||||||
@ -418,7 +410,6 @@ object AppClient {
|
|||||||
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_MUSIC,
|
androidSdkVersion = ANDROID_SDK_VERSION_ANDROID_MUSIC,
|
||||||
clientVersion = CLIENT_VERSION_ANDROID_MUSIC,
|
clientVersion = CLIENT_VERSION_ANDROID_MUSIC,
|
||||||
gmscoreVersionCode = GMS_CORE_VERSION_CODE_ANDROID_MUSIC,
|
gmscoreVersionCode = GMS_CORE_VERSION_CODE_ANDROID_MUSIC,
|
||||||
chipset = CHIPSET_ANDROID_MUSIC,
|
|
||||||
requireAuth = true,
|
requireAuth = true,
|
||||||
clientName = "ANDROID_MUSIC",
|
clientName = "ANDROID_MUSIC",
|
||||||
friendlyName = "Android Music"
|
friendlyName = "Android Music"
|
||||||
|
@ -86,14 +86,11 @@ object PlayerRoutes {
|
|||||||
client.put("clientVersion", clientType.clientVersion)
|
client.put("clientVersion", clientType.clientVersion)
|
||||||
client.put("osName", clientType.osName)
|
client.put("osName", clientType.osName)
|
||||||
client.put("osVersion", clientType.osVersion)
|
client.put("osVersion", clientType.osVersion)
|
||||||
if (clientType.osName == "Android") {
|
if (clientType.androidSdkVersion != null) {
|
||||||
client.put("androidSdkVersion", clientType.androidSdkVersion)
|
client.put("androidSdkVersion", clientType.androidSdkVersion)
|
||||||
if (clientType.gmscoreVersionCode != null) {
|
if (clientType.gmscoreVersionCode != null) {
|
||||||
client.put("gmscoreVersionCode", clientType.gmscoreVersionCode)
|
client.put("gmscoreVersionCode", clientType.gmscoreVersionCode)
|
||||||
}
|
}
|
||||||
if (clientType.chipset != null) {
|
|
||||||
client.put("chipset", clientType.chipset)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
client.put(
|
client.put(
|
||||||
"hl",
|
"hl",
|
||||||
|
@ -279,7 +279,7 @@ class StreamingDataRequest private constructor(
|
|||||||
} else {
|
} else {
|
||||||
BufferedInputStream(connection.inputStream).use { inputStream ->
|
BufferedInputStream(connection.inputStream).use { inputStream ->
|
||||||
ByteArrayOutputStream().use { stream ->
|
ByteArrayOutputStream().use { stream ->
|
||||||
val buffer = ByteArray(8192)
|
val buffer = ByteArray(4096)
|
||||||
var bytesRead: Int
|
var bytesRead: Int
|
||||||
while ((inputStream.read(buffer)
|
while ((inputStream.read(buffer)
|
||||||
.also { bytesRead = it }) >= 0
|
.also { bytesRead = it }) >= 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user