diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/SpoofClientPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/SpoofClientPatch.kt index 27cbaf88..b5d4f7f7 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/SpoofClientPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/SpoofClientPatch.kt @@ -25,12 +25,12 @@ object SpoofClientPatch : BaseSpoofClientPatch( } override fun Set.patchUserAgent(context: BytecodeContext) { - // Use a random user agent. - val randomName = (0..100000).random() + // Use a random number as the platform in the user agent string. + val platformName = (0..100000).random() first().mutableMethod.addInstructions( 1, - "const-string v3, \"$randomName\"", + "const-string v3, \"$platformName\"", ) } }