Skip to content

Commit f7b574c

Browse files
brossshoSumAtrIX
andauthored
fix(Spotify - Spoof client patch): Block sending bad integrity verdicts to potentially fix account suspensions (#5274)
Co-authored-by: oSumAtrIX <[email protected]>
1 parent 29295b8 commit f7b574c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/Fingerprints.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ internal val startupPageLayoutInflateFingerprint = fingerprint {
1919
parameters("Landroid/view/LayoutInflater;", "Landroid/view/ViewGroup;", "Landroid/os/Bundle;")
2020
strings("blueprintContainer", "gradient", "valuePropositionTextView")
2121
}
22+
23+
internal val standardIntegrityTokenProviderBuilderFingerprint = fingerprint {
24+
strings(
25+
"standard_pi_init",
26+
"outcome",
27+
"success"
28+
)
29+
}

patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/SpoofClientPatch.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import app.revanced.patches.spotify.misc.extension.sharedExtensionPatch
1212
import app.revanced.util.findInstructionIndicesReversedOrThrow
1313
import app.revanced.util.getReference
1414
import app.revanced.util.indexOfFirstInstructionReversedOrThrow
15+
import app.revanced.util.returnEarly
1516
import com.android.tools.smali.dexlib2.Opcode
1617
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
1718
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
@@ -118,5 +119,8 @@ val spoofClientPatch = bytecodePatch(
118119
"""
119120
)
120121
}
122+
123+
// Early return to block sending bad verdicts to the API.
124+
standardIntegrityTokenProviderBuilderFingerprint.method.returnEarly()
121125
}
122126
}

0 commit comments

Comments
 (0)