refactor: Name and comment variable properly
This commit is contained in:
parent
62b1adfde1
commit
19d1503594
1 changed files with 3 additions and 3 deletions
|
|
@ -25,12 +25,12 @@ object SpoofClientPatch : BaseSpoofClientPatch(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun Set<MethodFingerprintResult>.patchUserAgent(context: BytecodeContext) {
|
override fun Set<MethodFingerprintResult>.patchUserAgent(context: BytecodeContext) {
|
||||||
// Use a random user agent.
|
// Use a random number as the platform in the user agent string.
|
||||||
val randomName = (0..100000).random()
|
val platformName = (0..100000).random()
|
||||||
|
|
||||||
first().mutableMethod.addInstructions(
|
first().mutableMethod.addInstructions(
|
||||||
1,
|
1,
|
||||||
"const-string v3, \"$randomName\"",
|
"const-string v3, \"$platformName\"",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue