Skip to content

Commit e8413ab

Browse files
oSumAtrIXindrastorms
authored andcommitted
feat(spotify): add unlck premium
1 parent c673c1c commit e8413ab

3 files changed

Lines changed: 48 additions & 1 deletion

File tree

api/dropped-patches.api

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ public final class app/revanced/patches/nova/prime/patch/UnlockPrimePatch : app/
1818
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
1919
}
2020

21+
public final class app/revanced/patches/spotify/premium/UnlockPremiumPatch : app/revanced/patches/shared/misc/hex/BaseHexPatch {
22+
public fun <init> ()V
23+
public fun getReplacements ()Ljava/util/List;
24+
}
25+
2126
public final class app/revanced/patches/tasker/trial/unlock/fingerprints/CheckLicenseFingerprint : app/revanced/patcher/fingerprint/MethodFingerprint {
2227
public static final field INSTANCE Lapp/revanced/patches/tasker/trial/unlock/fingerprints/CheckLicenseFingerprint;
2328
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
revanced-patcher = "19.3.1"
3-
revanced-patches = "4.3.0"
3+
revanced-patches = "4.8.0-dev.3"
44
smali = "3.0.5"
55
binary-compatibility-validator = "0.14.0"
66
kotlin = "1.9.22"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package app.revanced.patches.spotify.premium
2+
3+
import app.revanced.patcher.patch.annotation.CompatiblePackage
4+
import app.revanced.patcher.patch.annotation.Patch
5+
import app.revanced.patches.shared.misc.hex.BaseHexPatch
6+
7+
@Patch(
8+
name = "Unlock Spotify Premium",
9+
description = "Unlock Spotify Premium features for ARM64 devices. " +
10+
"Server-sided features like downloading songs are still locked. ",
11+
compatiblePackages = [
12+
CompatiblePackage(
13+
"com.spotify.music",
14+
[
15+
"8.9.8.545",
16+
],
17+
),
18+
],
19+
)
20+
@Suppress("unused")
21+
class UnlockPremiumPatch : BaseHexPatch() {
22+
private val arm64Replacements = listOf(
23+
Replacement(
24+
"01 0a 2a 89 00 00 34",
25+
"01 0a 2a 1f 20 03 d5",
26+
"lib/arm64-v8a/liborbit-jni-spotify.so",
27+
),
28+
Replacement(
29+
"94 1f 31 00 71 81 00 00 54",
30+
"94 1f 31 00 71 04 00 00 14",
31+
"lib/arm64-v8a/liborbit-jni-spotify.so",
32+
),
33+
Replacement(
34+
"e1 01 00 54 20",
35+
"0f 00 00 14 20",
36+
"lib/arm64-v8a/liborbit-jni-spotify.so",
37+
),
38+
)
39+
40+
// To support other architectures, add replacements for them.
41+
override val replacements = arm64Replacements
42+
}

0 commit comments

Comments
 (0)