From a30750849d601fa37bf185aea41a2f7f2dfd74d1 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Thu, 1 Dec 2022 17:07:00 +0800 Subject: [PATCH] fix: update protocol version & add aPad protocol --- client/entities.go | 1 + client/internal/auth/auth.go | 30 +++++++++++++++++++++++------- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/client/entities.go b/client/entities.go index e88e5bac..b1e312ce 100644 --- a/client/entities.go +++ b/client/entities.go @@ -349,6 +349,7 @@ const ( MacOS = auth.MacOS QiDian = auth.QiDian IPad = auth.IPad + AndroidPad = auth.AndroidPad ) func (r *UserJoinGroupRequest) Accept() { diff --git a/client/internal/auth/auth.go b/client/internal/auth/auth.go index 8e6eb3e9..dd89bce4 100644 --- a/client/internal/auth/auth.go +++ b/client/internal/auth/auth.go @@ -10,6 +10,7 @@ const ( MacOS // MacOS QiDian // 企点 IPad // iPad + AndroidPad // Android Pad (和Android Phone同一个包) (com.tencent.common.config.AppSetting) ) type AppVersion struct { @@ -29,16 +30,31 @@ type AppVersion struct { func (i Protocol) Version() *AppVersion { switch i { - case AndroidPhone: // Dumped by mirai from qq android v8.8.38 + case AndroidPhone: return &AppVersion{ ApkId: "com.tencent.mobileqq", - AppId: 537122601, - SubAppId: 537122601, - SortVersionName: "8.8.95", - BuildTime: 1654672174, + AppId: 537143097, + SubAppId: 537143097, + SortVersionName: "8.9.23.9425", + BuildTime: 1640921786, ApkSign: []byte{0xA6, 0xB7, 0x45, 0xBF, 0x24, 0xA2, 0xC2, 0x77, 0x52, 0x77, 0x16, 0xF6, 0xF3, 0x6E, 0xB6, 0x8D}, - SdkVersion: "6.0.0.2512", - SSOVersion: 18, + SdkVersion: "6.0.0.2530", + SSOVersion: 19, + MiscBitmap: 150470524, + SubSigmap: 0x10400, + MainSigMap: 16724722, + Protocol: i, + } + case AndroidPad: + return &AppVersion{ + ApkId: "com.tencent.mobileqq", + AppId: 537142586, + SubAppId: 537142586, + SortVersionName: "8.9.23.9425", + BuildTime: 1640921786, + ApkSign: []byte{0xA6, 0xB7, 0x45, 0xBF, 0x24, 0xA2, 0xC2, 0x77, 0x52, 0x77, 0x16, 0xF6, 0xF3, 0x6E, 0xB6, 0x8D}, + SdkVersion: "6.0.0.2530", + SSOVersion: 19, MiscBitmap: 150470524, SubSigmap: 0x10400, MainSigMap: 16724722,