fix(Spotify - Spoof client patch): Block sending bad integrity verdicts to potentially fix account suspensions (#5274)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
5dba77612b
commit
69600d08a4
2 changed files with 12 additions and 0 deletions
|
|
@ -19,3 +19,11 @@ internal val startupPageLayoutInflateFingerprint = fingerprint {
|
||||||
parameters("Landroid/view/LayoutInflater;", "Landroid/view/ViewGroup;", "Landroid/os/Bundle;")
|
parameters("Landroid/view/LayoutInflater;", "Landroid/view/ViewGroup;", "Landroid/os/Bundle;")
|
||||||
strings("blueprintContainer", "gradient", "valuePropositionTextView")
|
strings("blueprintContainer", "gradient", "valuePropositionTextView")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal val standardIntegrityTokenProviderBuilderFingerprint = fingerprint {
|
||||||
|
strings(
|
||||||
|
"standard_pi_init",
|
||||||
|
"outcome",
|
||||||
|
"success"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import app.revanced.patches.spotify.misc.extension.sharedExtensionPatch
|
||||||
import app.revanced.util.findInstructionIndicesReversedOrThrow
|
import app.revanced.util.findInstructionIndicesReversedOrThrow
|
||||||
import app.revanced.util.getReference
|
import app.revanced.util.getReference
|
||||||
import app.revanced.util.indexOfFirstInstructionReversedOrThrow
|
import app.revanced.util.indexOfFirstInstructionReversedOrThrow
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
import com.android.tools.smali.dexlib2.Opcode
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||||
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
||||||
|
|
@ -118,5 +119,8 @@ val spoofClientPatch = bytecodePatch(
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Early return to block sending bad verdicts to the API.
|
||||||
|
standardIntegrityTokenProviderBuilderFingerprint.method.returnEarly()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue