This commit is contained in:
xsean 2025-11-13 21:11:28 +08:00
parent 9c8108fd5d
commit 73af692ae2
19 changed files with 1820 additions and 1783 deletions

View File

@ -6,5 +6,5 @@ Author: XYZShell
Section: Utilities
Tag: role::developer
Architecture: iphoneos-arm
Version: 0.0.7-10-77+debug
Version: 0.0.7-10-78+debug
Installed-Size: 1696

View File

@ -1 +1 @@
./packages/com.xyzshell.ioscontrol_0.0.7-10-77+debug_iphoneos-arm.deb
./packages/com.xyzshell.ioscontrol_0.0.7-10-78+debug_iphoneos-arm.deb

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
77
78

View File

@ -324,6 +324,40 @@ BOOL myadTaskManualStop = NO;
[[MyEventBus sharedInstance] postEvent:@"UpdateRunStatus" withObject:@(NO)];
}
- (NSString *)getSystemInfo {
void *buffer = NULL;
NSString *result = nil;
// sysctl mib
// 0x100000006LL int: {6, 1}
// 321 (0x1), 326 (0x6)
int mib[2];
mib[0] = 6; // CTL_HW
mib[1] = 1; // HW_MACHINE
size_t size = 100;
//
// #import <sys/sysctl.h>
sysctl(mib, 2, NULL, &size, NULL, 0);
//
buffer = malloc(size);
if (buffer != NULL) {
//
sysctl(mib, 2, buffer, &size, NULL, 0);
// NSString
result = [NSString stringWithUTF8String:(const char *)buffer];
//
free(buffer);
}
return result;
}
- (void)onChangeInfo:(NSDictionary *)dic {
NSString* t_idfa = [self getStr:@"idfa" dic:dic];
if (![XSHelper strIsEmpty:t_idfa]) {
@ -422,6 +456,7 @@ BOOL myadTaskManualStop = NO;
}
uint16_t udp_port = [XUDPServer sharedInstance].udp_port;
[tempBfaceDictKey setValue:@(udp_port) forKey:@"udp_port"];
[tempBfaceDictKey setValue:[self getSystemInfo] forKey:@"device_model"];
NSLog(@"XS- resetApp 1");
NSMutableDictionary *tempAppInfo = [[NSMutableDictionary alloc] init];

Binary file not shown.