revanced-patches
revanced-patches copied to clipboard
feat(YouTube Music): Spoof location
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
Are you talking about this?
It would be great if this problem could be solved.
yeah. that's exactly what i'm talking about
That's most likely determined by the location of your IP and thus not possible
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??
Still requires a proxy, at that point it's easier to use a vpn.
a vpn will encapsulate all my apps. the patch would only be for yt.
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.
If this feature gets implemented, you will have to specify your own proxy.
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: @.***>
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.
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: @.***>
I used Orbot to circumvent IP requirements. I would be nice if you could use Tor as a proxy directly in the app.
This definitely should be implemented if possible.
a vpn will encapsulate all my apps. the patch would only be for yt.
There are several VPNs on Android that allow split tunnelling
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
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.
So is this issue solvable or not?
It is, but it likely wont be unless anyone is willing to proxy web requests
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).
... 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.
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