mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
use low level apis to generate video thumbnail & remove unnecessary code
- Adjusted status bar layout in MainWindow to include app version label. - Enhanced video thumbnail generation in PhotoModel using FFmpeg for better performance and resource management. - Streamlined MediaStreamerManager to ensure proper cleanup and thread safety. - Updated ServiceManager to include safe methods for retrieving file info and handling AFC operations. - Removed get_device_version - Cleaned up code and improved readability across multiple files. - Passed correct args to ZUpdater
This commit is contained in:
@@ -202,7 +202,7 @@ DeviceInfo fullDeviceInfo(const pugi::xml_document &doc,
|
||||
int minor = (parts.length() > 1) ? parts[1].toInt() : 0;
|
||||
int patch = (parts.length() > 2) ? parts[2].toInt() : 0;
|
||||
|
||||
d.parsedDeviceVersion = IDESCRIPTOR_DEVICE_VERSION(major, minor, patch);
|
||||
d.parsedDeviceVersion = IDEVICE_DEVICE_VERSION(major, minor, patch);
|
||||
|
||||
/*DiskInfo*/
|
||||
try {
|
||||
|
||||
@@ -97,7 +97,7 @@ mobile_image_mounter_error_t mount_dev_image(idevice_t device,
|
||||
goto leave;
|
||||
}
|
||||
|
||||
if (device_version >= IDESCRIPTOR_DEVICE_VERSION(7, 0, 0)) {
|
||||
if (device_version >= IDEVICE_DEVICE_VERSION(7, 0, 0)) {
|
||||
disk_image_upload_type = DISK_IMAGE_UPLOAD_TYPE_UPLOAD_IMAGE;
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ mobile_image_mounter_error_t mount_dev_image(idevice_t device,
|
||||
qDebug() << "Using image:" << image_path;
|
||||
qDebug() << "Using signature:" << image_sig_path;
|
||||
|
||||
if (device_version >= IDESCRIPTOR_DEVICE_VERSION(16, 0, 0)) {
|
||||
if (device_version >= IDEVICE_DEVICE_VERSION(16, 0, 0)) {
|
||||
uint8_t dev_mode_status = 0;
|
||||
plist_t val = NULL;
|
||||
ldret = lockdownd_get_value(lckd, "com.apple.security.mac.amfi",
|
||||
@@ -182,14 +182,14 @@ mobile_image_mounter_error_t mount_dev_image(idevice_t device,
|
||||
goto leave;
|
||||
}
|
||||
image_size = fst.st_size;
|
||||
if (device_version < IDESCRIPTOR_DEVICE_VERSION(17, 0, 0) &&
|
||||
if (device_version < IDEVICE_DEVICE_VERSION(17, 0, 0) &&
|
||||
stat(image_sig_path, &fst) != 0) {
|
||||
qDebug() << "ERROR: stat:" << image_sig_path << ":" << strerror(errno);
|
||||
res = -1;
|
||||
goto leave;
|
||||
}
|
||||
|
||||
if (device_version < IDESCRIPTOR_DEVICE_VERSION(17, 0, 0)) {
|
||||
if (device_version < IDEVICE_DEVICE_VERSION(17, 0, 0)) {
|
||||
f = fopen(image_sig_path, "rb");
|
||||
if (!f) {
|
||||
qDebug() << "Error opening signature file" << image_sig_path << ":"
|
||||
|
||||
@@ -71,7 +71,7 @@ bool set_location(idevice_t device, char *lat, char *lon)
|
||||
lerr = lockdownd_start_service(lockdown, DT_SIMULATELOCATION_SERVICE,
|
||||
&svc);
|
||||
if (lerr != LOCKDOWN_E_SUCCESS) {
|
||||
unsigned int device_version = get_device_version(device);
|
||||
unsigned int device_version = idevice_get_device_version(device);
|
||||
lockdownd_client_free(lockdown);
|
||||
idevice_free(device);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user