mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2025-05-11 21:25:40 +02:00
fix(Spotify - Unlock Spotify Premium): Remove restrictions for Google voice assistant (#4702)
Co-authored-by: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
e5ffd2c353
commit
106202f9eb
3 changed files with 76 additions and 4 deletions
|
@ -94,7 +94,7 @@ public final class UnlockPremiumPatch {
|
|||
);
|
||||
|
||||
/**
|
||||
* Override attributes injection point.
|
||||
* Injection point. Override account attributes.
|
||||
*/
|
||||
public static void overrideAttribute(Map<String, /*AccountAttribute*/ Object> attributes) {
|
||||
try {
|
||||
|
@ -119,7 +119,14 @@ public final class UnlockPremiumPatch {
|
|||
}
|
||||
|
||||
/**
|
||||
* Remove ads sections from home injection point.
|
||||
* Injection point. Remove station data from Google assistant URI.
|
||||
*/
|
||||
public static String removeStationString(String spotifyUriOrUrl) {
|
||||
return spotifyUriOrUrl.replace("spotify:station:", "spotify:");
|
||||
}
|
||||
|
||||
/**
|
||||
* Injection point. Remove ads sections from home.
|
||||
*/
|
||||
public static void removeHomeSections(List<Section> sections) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue