Esempio n. 1
0
void InstallApplicationOnDevice(char *udid, char *app_path) {
	SDMMD_AMDeviceRef device = FindDeviceFromUDID(udid);
	if (device) {
		CFStringRef path = CFStringCreateWithBytes(kCFAllocatorDefault, (UInt8 *)app_path, strlen(app_path), kCFStringEncodingUTF8, false);
		SDMMD_AMDeviceInstallApp(device, path);
		CFSafeRelease(path);
	}
}
Esempio n. 2
0
void InstallAppToDevice(char *udid, char *path)
{
	SDMMD_AMDeviceRef device = FindDeviceFromUDID(udid);
	if (device) {
		CFStringRef app_path = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%s"), path);
		SDMMD_AMDeviceCopyApplication(device, app_path);
		SDMMD_AMDeviceInstallApp(device, app_path);
		CFSafeRelease(app_path);
	}
}