mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-19 13:37:00 +01:00
fix(YouTube - Client spoof): Set the client version correctly
Previously the version was hardcoded.
This commit is contained in:
parent
55bdb7db73
commit
5e80ccd6d6
@ -31,7 +31,7 @@ final class PlayerRoutes {
|
|||||||
|
|
||||||
JSONObject client = new JSONObject();
|
JSONObject client = new JSONObject();
|
||||||
client.put("clientName", "ANDROID");
|
client.put("clientName", "ANDROID");
|
||||||
client.put("clientVersion", "18.37.36");
|
client.put("clientVersion", ReVancedUtils.getVersionName());
|
||||||
client.put("androidSdkVersion", 34);
|
client.put("androidSdkVersion", 34);
|
||||||
|
|
||||||
context.put("client", client);
|
context.put("client", client);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user