Skip to content

Commit

Permalink
update bv2av magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
5ec1cff authored Feb 1, 2024
1 parent bfa9ad3 commit 9a0d64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/me/iacn/biliroaming/utils/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fun bv2av(bv: String): Long {
val r = intArrayOf(11, 10, 3, 8, 4, 6).withIndex().sumOf { (i, p) ->
table[bv[p]]!! * BigInteger.valueOf(58).pow(i).toLong()
}
return (r - 8728348608).xor(177451812)
return (r - 7654606784).xor(1251193636)
}

fun getPackageVersion(packageName: String) = try {
Expand Down

0 comments on commit 9a0d64a

Please sign in to comment.