mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-28 00:24:12 +00:00
🐛 Fix Get FP
This commit is contained in:
parent
2d54ab5ca1
commit
75c35adbb8
@ -1,5 +1,6 @@
|
|||||||
import json as jsonlib
|
import json as jsonlib
|
||||||
import time
|
import time
|
||||||
|
import uuid
|
||||||
from typing import Optional, Tuple, Union
|
from typing import Optional, Tuple, Union
|
||||||
|
|
||||||
from simnet.client.base import BaseClient
|
from simnet.client.base import BaseClient
|
||||||
@ -617,40 +618,63 @@ class AuthClient(BaseClient):
|
|||||||
str: The device fingerprint.
|
str: The device fingerprint.
|
||||||
"""
|
"""
|
||||||
seed_time = int(time.time() * 1000)
|
seed_time = int(time.time() * 1000)
|
||||||
seed_id = get_random_hex_string_of_length(13)
|
seed_id = str(uuid.uuid4())
|
||||||
if extend_properties is None:
|
if extend_properties is None:
|
||||||
model = get_random_hex_string_of_length(6)
|
device = get_random_hex_string_of_length(12)
|
||||||
|
product = get_random_hex_string_of_length(6)
|
||||||
extend_properties = {
|
extend_properties = {
|
||||||
"cpuType": "arm64-v8a",
|
"proxyStatus": 0,
|
||||||
|
"isRoot": 0,
|
||||||
"romCapacity": "512",
|
"romCapacity": "512",
|
||||||
"productName": model,
|
"deviceName": device,
|
||||||
"romRemain": "256",
|
"productName": product,
|
||||||
"manufacturer": "XiaoMi",
|
"romRemain": "512",
|
||||||
"appMemory": "512",
|
|
||||||
"hostname": "dg02-pool03-kvm87",
|
"hostname": "dg02-pool03-kvm87",
|
||||||
"screenSize": "1080x1920",
|
"screenSize": "1440x2905",
|
||||||
"osVersion": "13",
|
"isTablet": 0,
|
||||||
"vendor": "中国移动",
|
"aaid": "",
|
||||||
"accelerometer": "1.4883357x7.1712894x6.2847486",
|
"model": device,
|
||||||
"buildTags": "release-keys",
|
|
||||||
"model": model,
|
|
||||||
"brand": "XiaoMi",
|
"brand": "XiaoMi",
|
||||||
"oaid": "",
|
|
||||||
"hardware": "qcom",
|
"hardware": "qcom",
|
||||||
"deviceType": "OP5913L1",
|
"deviceType": "OP5913L1",
|
||||||
"devId": "REL",
|
"devId": "REL",
|
||||||
"serialNumber": "unknown",
|
"serialNumber": "unknown",
|
||||||
"buildTime": "1687848011000",
|
"sdCapacity": 512215,
|
||||||
"buildUser": "root",
|
"buildTime": "1693626947000",
|
||||||
"ramCapacity": "469679",
|
"buildUser": "android-build",
|
||||||
"magnetometer": "20.081251x-27.487501x2.1937501",
|
"simState": 5,
|
||||||
"display": f"{model}_13.1.0.181(CN01)",
|
"ramRemain": "239814",
|
||||||
"ramRemain": "215344",
|
"appUpdateTimeDiff": 1702604034482,
|
||||||
"deviceInfo": f"XiaoMi/{model}/OP5913L1:13/SKQ1.221119.001/T.118e6c7-5aa23-73911:user/release-keys",
|
"deviceInfo": f"XiaoMi/{product}/OP5913L1:13/SKQ1.221119.001/T.118e6c7-5aa23-73911:user/release-keys",
|
||||||
"gyroscope": "0.030226856x0.014647375x0.010652636",
|
|
||||||
"vaid": "",
|
"vaid": "",
|
||||||
"buildType": "user",
|
"buildType": "user",
|
||||||
"sdkVersion": "33",
|
"sdkVersion": "34",
|
||||||
|
"ui_mode": "UI_MODE_TYPE_NORMAL",
|
||||||
|
"isMockLocation": 0,
|
||||||
|
"cpuType": "arm64-v8a",
|
||||||
|
"isAirMode": 0,
|
||||||
|
"ringMode": 2,
|
||||||
|
"chargeStatus": 1,
|
||||||
|
"manufacturer": "XiaoMi",
|
||||||
|
"emulatorStatus": 0,
|
||||||
|
"appMemory": "512",
|
||||||
|
"osVersion": "14",
|
||||||
|
"vendor": "unknown",
|
||||||
|
"accelerometer": "1.4883357x7.1712894x6.2847486",
|
||||||
|
"sdRemain": 239600,
|
||||||
|
"buildTags": "release-keys",
|
||||||
|
"packageName": "com.mihoyo.hyperion",
|
||||||
|
"networkType": "WiFi",
|
||||||
|
"oaid": "",
|
||||||
|
"debugStatus": 1,
|
||||||
|
"ramCapacity": "469679",
|
||||||
|
"magnetometer": "20.081251x-27.487501x2.1937501",
|
||||||
|
"display": f"{product}_13.1.0.181(CN01)", # assuming 'product' is defined elsewhere
|
||||||
|
"appInstallTimeDiff": 1688455751496,
|
||||||
|
"packageVersion": "2.20.1",
|
||||||
|
"gyroscope": "0.030226856x0.014647375x0.010652636",
|
||||||
|
"batteryStatus": 100,
|
||||||
|
"hasKeyboard": 0,
|
||||||
"board": "taro",
|
"board": "taro",
|
||||||
}
|
}
|
||||||
ext_fields = jsonlib.dumps(extend_properties)
|
ext_fields = jsonlib.dumps(extend_properties)
|
||||||
@ -663,6 +687,6 @@ class AuthClient(BaseClient):
|
|||||||
"seed_id": seed_id,
|
"seed_id": seed_id,
|
||||||
"seed_time": seed_time,
|
"seed_time": seed_time,
|
||||||
}
|
}
|
||||||
new_device_fp = await self.request_lab(GET_FP_URL, method="POST", data=data)
|
new_device_fp = await self.request_lab(GET_FP_URL.get_url(), method="POST", data=data)
|
||||||
self.device_fp = new_device_fp
|
self.device_fp = new_device_fp
|
||||||
return new_device_fp
|
return new_device_fp
|
||||||
|
Loading…
Reference in New Issue
Block a user