fix: всегда отправляем arm64-v8a
This commit is contained in:
@@ -369,7 +369,7 @@ class Api {
|
||||
String deviceType = 'ANDROID';
|
||||
String osVersion = '';
|
||||
String deviceName = 'Unknown';
|
||||
String architecture = 'arm64';
|
||||
String architecture = 'arm64-v8a';
|
||||
String appVersion = SpoofingService.hardcodedAppVersion;
|
||||
int buildNumber = SpoofingService.hardcodedBuildNumber;
|
||||
String screen = '420dpi 420dpi 1080x2340';
|
||||
@@ -390,7 +390,6 @@ class Api {
|
||||
if (Platform.isLinux) {
|
||||
final linuxInfo = await deviceInfo.linuxInfo;
|
||||
osVersion = linuxInfo.name;
|
||||
architecture = _archFromPlatformVersion();
|
||||
} else if (Platform.isIOS) {
|
||||
final iosInfo = await deviceInfo.iosInfo;
|
||||
osVersion = iosInfo.systemVersion;
|
||||
@@ -399,11 +398,9 @@ class Api {
|
||||
final androidInfo = await deviceInfo.androidInfo;
|
||||
osVersion = 'Android ${androidInfo.version.release}';
|
||||
deviceName = '${androidInfo.manufacturer} ${androidInfo.model}';
|
||||
architecture = androidInfo.supportedAbis.first;
|
||||
} else if (Platform.isWindows) {
|
||||
final windowsInfo = await deviceInfo.windowsInfo;
|
||||
osVersion = windowsInfo.productName;
|
||||
architecture = _archFromPlatformVersion();
|
||||
}
|
||||
|
||||
final spoofed = await SpoofingService.getSpoofedSessionData(
|
||||
@@ -678,11 +675,6 @@ class Api {
|
||||
}
|
||||
}
|
||||
|
||||
static String _archFromPlatformVersion() {
|
||||
final v = Platform.version;
|
||||
return v.substring(v.indexOf('_') + 1, v.length - 1);
|
||||
}
|
||||
|
||||
static String? _serverErrorText(dynamic payload) {
|
||||
if (payload is! Map) return null;
|
||||
for (final key in ['localizedMessage', 'title']) {
|
||||
|
||||
@@ -214,13 +214,11 @@ class _SpoofScreenState extends State<SpoofScreen> {
|
||||
_deviceNameController.text =
|
||||
'${androidInfo.manufacturer} ${androidInfo.model}';
|
||||
_osVersionController.text = 'Android ${androidInfo.version.release}';
|
||||
_selectedArch = androidInfo.supportedAbis.isNotEmpty
|
||||
? androidInfo.supportedAbis.first
|
||||
: 'arm64-v8a';
|
||||
_selectedArch = 'arm64-v8a';
|
||||
} else if (Platform.isIOS) {
|
||||
final iosInfo = await deviceInfo.iosInfo;
|
||||
_selectedDeviceType = 'ANDROID';
|
||||
_selectedArch = 'arm64';
|
||||
_selectedArch = 'arm64-v8a';
|
||||
_deviceNameController.text = iosInfo.utsname.machine;
|
||||
_osVersionController.text = iosInfo.systemVersion;
|
||||
} else if (Platform.isLinux) {
|
||||
@@ -274,7 +272,7 @@ class _SpoofScreenState extends State<SpoofScreen> {
|
||||
_spoofingEnabled = true;
|
||||
|
||||
_selectedDeviceType = preset.deviceType;
|
||||
_selectedArch = preset.deviceType == 'IOS' ? 'arm64' : 'arm64-v8a';
|
||||
_selectedArch = 'arm64-v8a';
|
||||
_buildNumberController.text = '$_hardcodedBuildNumber';
|
||||
|
||||
if (_selectedMethod == SpoofingMethod.full) {
|
||||
|
||||
Reference in New Issue
Block a user