revanced-patches icon indicating copy to clipboard operation
revanced-patches copied to clipboard

feat(YouTube Music): Spoof location

Open vixalien opened this issue 2 years ago • 21 comments

Application

Youtube Music

Issue

it should fix YouTube music not working in certain countries

Patch

Allow selection of a country to be spoofed as so that youtube music works

Motivation

because some of us can't access YouTube music because it's not available. with this patch, it would make YouTube music available for more people

vixalien avatar Sep 18 '22 12:09 vixalien

Are you talking about this? Cap 2022-09-18 23-48-45-109

It would be great if this problem could be solved.

webzeroacs avatar Sep 18 '22 14:09 webzeroacs

yeah. that's exactly what i'm talking about

vixalien avatar Sep 19 '22 14:09 vixalien

That's most likely determined by the location of your IP and thus not possible

oSumAtrIX avatar Sep 19 '22 14:09 oSumAtrIX

yes i believe that's how it's done. what do you mean it's not possible?? can't patches set up a mini proxy that only intercept and spoof the location and nothing else??

vixalien avatar Sep 19 '22 17:09 vixalien

Still requires a proxy, at that point it's easier to use a vpn.

oSumAtrIX avatar Sep 19 '22 17:09 oSumAtrIX

a vpn will encapsulate all my apps. the patch would only be for yt.

vixalien avatar Sep 19 '22 17:09 vixalien

who's going to pay the proxy cost? You could use services like ControlD or probably Smart DNS Proxy, that you can set to traffic youtube only, even then, some vpn app allow you to make it only certain apps would use the vpn connection.

EatVanced avatar Sep 20 '22 09:09 EatVanced

If this feature gets implemented, you will have to specify your own proxy.

oSumAtrIX avatar Sep 20 '22 09:09 oSumAtrIX

Isn't there a way to have code that just interprets the network calls in vanced music and only affect the needed one. eg:

const oldFetch = globablThis.fetch;

function fetch  (url, options) {
	if (url === "<https://some.geolocati.on/website>") {
		return json({ lat: -1.9, long: 40.1 });
	} else {
		// passthrough
		return 	oldFetch(url, options);
	}
}

globalThis.fetch = fetch;

this is what i was calling a proxy. Isn't there a way to implement this (that's the general idea of one would implement that in JavaScript).

On Tue, Sep 20 2022 at 02:28:29 -07:00:00, oSumAtrIX @.***> wrote:

If this feature gets implemented, you will have to specify your own proxy.

— Reply to this email directly, view it on GitHub https://github.com/revanced/revanced-patches/issues/526#issuecomment-1252086180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB5FCIYXJ5LJ73HPFZLN2LV7F7T3ANCNFSM6AAAAAAQPNKL2M. You are receiving this because you authored the thread.Message ID: @.***>

vixalien avatar Sep 20 '22 09:09 vixalien

YouTube Music has an entire object oriented and highly abstracted implementation of their networking infrastructure, it's not as trivial as a simple web request.

oSumAtrIX avatar Sep 20 '22 09:09 oSumAtrIX

I get it. I thought it was plausible. Thanks btw.

  • Or isn't there a way to patch the library that it uses under the hood?

On Tue, Sep 20 2022 at 02:35:53 -07:00:00, oSumAtrIX @.***> wrote:

YouTube Music has an entire object oriented and highly abstracted implementation of their networking infrastructure, it's not as trivial as a simple web request.

— Reply to this email directly, view it on GitHub https://github.com/revanced/revanced-patches/issues/526#issuecomment-1252094772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB5FCLY4EGQP54IPOA4KALV7GAPTANCNFSM6AAAAAAQPNKL2M. You are receiving this because you authored the thread.Message ID: @.***>

vixalien avatar Sep 20 '22 09:09 vixalien

I used Orbot to circumvent IP requirements. I would be nice if you could use Tor as a proxy directly in the app.

Fooftilly avatar Sep 20 '22 10:09 Fooftilly

This definitely should be implemented if possible.

ilyassesalama avatar Dec 03 '22 03:12 ilyassesalama

a vpn will encapsulate all my apps. the patch would only be for yt.

There are several VPNs on Android that allow split tunnelling

pixiekat avatar Dec 03 '22 14:12 pixiekat

vpns are paid and you can never be sure of the security of the free ones.

also, vpns make the network slower and this would be a cleaner solution imo

vixalien avatar Dec 03 '22 16:12 vixalien

vpns are paid and you can never be sure of the security of the free ones.

also, vpns make the network slower and this would be a cleaner solution imo

Most likely a non issue when it comes to music. The music stream is compressed and doesnt have a huge bandwidth footprint. I personally suggest mullvad vpn. 5 euros a month, solid privacy policy, and split tunneling.

lordcyb3r avatar Dec 07 '22 19:12 lordcyb3r

So is this issue solvable or not?

It is, but it likely wont be unless anyone is willing to proxy web requests

oSumAtrIX avatar Feb 24 '23 12:02 oSumAtrIX

Sounds like a proxy all app traffic through a proxy (with a proxy specified in settings) patch, which sounds hard to implement (might be more a thing that a custom ROM would do).

UnlimitedCookies avatar Mar 20 '23 11:03 UnlimitedCookies

... some vpn app allow you to make it only certain apps would use the vpn connection.

This is the simple and straightforward solution that is available right now. Use a VPN app, and set it to application specific mode, and pick only the apps you want to use with the VPN (all other apps will bypass the VPN).

A VPN is guaranteed to always work, without the investment cost of creating and maintaining an app specific patch.

LisoUseInAIKyrios avatar Mar 20 '23 12:03 LisoUseInAIKyrios

RVX just implemented spoof-version patch which fixes this issue. Can someone look into that and see whether we can implement it as well?

#451

oSumAtrIX avatar Jun 01 '24 21:06 oSumAtrIX