From 6ba0a0863d49edcd0ade825166fabb40d93f7982 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 1 Oct 2023 11:24:01 +0900 Subject: [PATCH] fix: checkin req params --- .../kotlin/be/zvz/kotlininside/security/Auth.kt | 13 +++++++++---- src/main/kotlin/be/zvz/kotlininside/value/Const.kt | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/be/zvz/kotlininside/security/Auth.kt b/src/main/kotlin/be/zvz/kotlininside/security/Auth.kt index f3baaff9..86f3ed43 100644 --- a/src/main/kotlin/be/zvz/kotlininside/security/Auth.kt +++ b/src/main/kotlin/be/zvz/kotlininside/security/Auth.kt @@ -30,6 +30,7 @@ import java.time.ZoneId import java.time.ZonedDateTime import java.time.format.DateTimeFormatter import java.util.* +import kotlin.random.Random class Auth { private val seoulTimeZone = TimeZone.getTimeZone("Asia/Seoul") @@ -64,13 +65,17 @@ class Auth { radio = "FLO-04.04" clientId = "android-google" sdkVersion = Const.Firebase.OS_VERSION.toInt() + packageVersionCode = Const.DC_APP_VERSION_CODE.toInt() } lastCheckinMs = 0 + roaming = "WIFI::" } - locale = Locale.getDefault().language - macAddress.add(RandomStringUtils.random(12, "ABCDEF0123456789")) - meid = RandomStringUtils.randomNumeric(15) - timeZone = ZoneId.systemDefault().id + locale = Locale.getDefault().toString() + loggingId = Random(System.currentTimeMillis()).nextLong() + macAddress.add(RandomStringUtils.random(12, "abcdef0123456789")) + meid = RandomStringUtils.randomNumeric(14) + serial = RandomStringUtils.random(8, "abcdef0123456789") + timeZone = TimeZone.getDefault().id version = 3 otaCert.add("--no-output--") macAddressType.add("wifi") diff --git a/src/main/kotlin/be/zvz/kotlininside/value/Const.kt b/src/main/kotlin/be/zvz/kotlininside/value/Const.kt index 14474c62..1fffeb26 100644 --- a/src/main/kotlin/be/zvz/kotlininside/value/Const.kt +++ b/src/main/kotlin/be/zvz/kotlininside/value/Const.kt @@ -34,7 +34,7 @@ object Const { const val X_SCOPE_REFRESH_REMOTE_CONFIG = "/topics/DcRefreshRemoteConfig" const val X_SCOPE_SHOW_NOTICE_MESSAGE = "/topics/DcShowNoticeMessage" const val X_FIREBASE_APP_NAME_HASH = "R1dAH9Ui7M-ynoznwBdw01tLxhI" - const val USER_AGENT = "Android-GCM/1.5" + const val USER_AGENT = "Android-GCM/1.5 (generic_x86 KK)" const val APP = DC_APP_PACKAGE const val GCM_VERSION = Firebase.GCM_VERSION const val CERT = Firebase.CERT