From 9044049b78b77e8e2561055dc63ee1a2633937d4 Mon Sep 17 00:00:00 2001 From: rA9stuff Date: Sat, 25 Nov 2023 18:38:43 +0300 Subject: [PATCH] rm redundant headers --- LeetDown.xcodeproj/project.pbxproj | 4 +- LeetDown_M/Base.lproj/Main.storyboard | 40 +++--- LeetDown_M/LeetDownMain.h | 2 +- LeetDown_M/libirecovery.h | 175 -------------------------- clear | 1 + 5 files changed, 24 insertions(+), 198 deletions(-) delete mode 100644 LeetDown_M/libirecovery.h diff --git a/LeetDown.xcodeproj/project.pbxproj b/LeetDown.xcodeproj/project.pbxproj index 32c68d4..d447cba 100644 --- a/LeetDown.xcodeproj/project.pbxproj +++ b/LeetDown.xcodeproj/project.pbxproj @@ -194,7 +194,6 @@ 692DCC0F269E3CE7004DC22C /* SSZipCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSZipCommon.h; sourceTree = ""; }; 692DCC10269E3CE7004DC22C /* SSZipArchive.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSZipArchive.m; sourceTree = ""; }; 692DCC11269E3CE7004DC22C /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 693782CB269CE44B0082F92D /* libirecovery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libirecovery.h; sourceTree = ""; }; 69387BF326B6C7FF00A5EAF6 /* DFUHelperViewController.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = DFUHelperViewController.mm; sourceTree = ""; }; 69387BF526B6C81600A5EAF6 /* DFUHelperViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DFUHelperViewController.h; sourceTree = ""; }; 6938CBD526DBF4B300094628 /* com.rA9.LeetDownPreferences.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = com.rA9.LeetDownPreferences.plist; sourceTree = ""; }; @@ -400,7 +399,6 @@ 69AFA6F7269CE0DD0020D40D /* Info.plist */, 69AFA6F8269CE0DD0020D40D /* main.m */, 69AFA6FA269CE0DD0020D40D /* LeetDown_M.entitlements */, - 693782CB269CE44B0082F92D /* libirecovery.h */, 6938CBD526DBF4B300094628 /* com.rA9.LeetDownPreferences.plist */, 608232BD2B109E83004035CD /* LDUpdater.m */, ); @@ -835,6 +833,7 @@ "${PROJECT_DIR}/headers/libplist/include", "${PROJECT_DIR}/headers/libimobiledevice-glue/include", "${PROJECT_DIR}/headers/libimobiledevice-glue/src", + "${PROJECT_DIR}/headers/libirecovery/include", ); USER_HEADER_SEARCH_PATHS = "${PROJECT_DIR}/headers"; }; @@ -901,6 +900,7 @@ "${PROJECT_DIR}/headers/libplist/include", "${PROJECT_DIR}/headers/libimobiledevice-glue/include", "${PROJECT_DIR}/headers/libimobiledevice-glue/src", + "${PROJECT_DIR}/headers/libirecovery/include", ); USER_HEADER_SEARCH_PATHS = "${PROJECT_DIR}/headers"; }; diff --git a/LeetDown_M/Base.lproj/Main.storyboard b/LeetDown_M/Base.lproj/Main.storyboard index 5ad077c..4662c0f 100644 --- a/LeetDown_M/Base.lproj/Main.storyboard +++ b/LeetDown_M/Base.lproj/Main.storyboard @@ -56,7 +56,7 @@ - + @@ -176,7 +176,7 @@ - + @@ -184,7 +184,7 @@ - + @@ -193,7 +193,7 @@ - + @@ -247,7 +247,7 @@ - + @@ -256,7 +256,7 @@ - + @@ -265,7 +265,7 @@ - + @@ -289,7 +289,7 @@ - + @@ -300,7 +300,7 @@ home button for - + @@ -312,7 +312,7 @@ button for - + @@ -321,7 +321,7 @@ button for - + @@ -384,7 +384,7 @@ Gw - + @@ -441,7 +441,7 @@ Gw - + @@ -474,7 +474,7 @@ Gw - + @@ -497,7 +497,7 @@ the child processes it creates to ~/Documents. - + @@ -519,7 +519,7 @@ this toggle is enabled. - + @@ -530,7 +530,7 @@ uploading iBoot. Disabling this toggle could 
cause bootchain upload issues on - + @@ -539,7 +539,7 @@ uploading iBoot. Disabling this toggle could 
cause bootchain upload issues on - + @@ -558,7 +558,7 @@ to pwn the connected device. - + @@ -585,7 +585,7 @@ to pwn the connected device. - + diff --git a/LeetDown_M/LeetDownMain.h b/LeetDown_M/LeetDownMain.h index 65c22d4..799fe5d 100644 --- a/LeetDown_M/LeetDownMain.h +++ b/LeetDown_M/LeetDownMain.h @@ -10,7 +10,7 @@ #import "DFUHelperViewController.h" #import #import -#include "libirecovery.h" +#include #include #include "SSZipArchive/SSZipArchive.h" #include diff --git a/LeetDown_M/libirecovery.h b/LeetDown_M/libirecovery.h deleted file mode 100644 index 336c41f..0000000 --- a/LeetDown_M/libirecovery.h +++ /dev/null @@ -1,175 +0,0 @@ -/* - * libirecovery.h - * Communication to iBoot/iBSS on Apple iOS devices via USB - * - * Copyright (c) 2012-2019 Nikias Bassen - * Copyright (c) 2012-2013 Martin Szulecki - * Copyright (c) 2010 Chronic-Dev Team - * Copyright (c) 2010 Joshua Hill - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the GNU Lesser General Public License - * (LGPL) version 2.1 which accompanies this distribution, and is available at - * http://www.gnu.org/licenses/lgpl-2.1.html - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - */ - -#ifndef LIBIRECOVERY_H -#define LIBIRECOVERY_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include - -enum irecv_mode { - IRECV_K_RECOVERY_MODE_1 = 0x1280, - IRECV_K_RECOVERY_MODE_2 = 0x1281, - IRECV_K_RECOVERY_MODE_3 = 0x1282, - IRECV_K_RECOVERY_MODE_4 = 0x1283, - IRECV_K_WTF_MODE = 0x1222, - IRECV_K_DFU_MODE = 0x1227 -}; - -typedef enum { - IRECV_E_SUCCESS = 0, - IRECV_E_NO_DEVICE = -1, - IRECV_E_OUT_OF_MEMORY = -2, - IRECV_E_UNABLE_TO_CONNECT = -3, - IRECV_E_INVALID_INPUT = -4, - IRECV_E_FILE_NOT_FOUND = -5, - IRECV_E_USB_UPLOAD = -6, - IRECV_E_USB_STATUS = -7, - IRECV_E_USB_INTERFACE = -8, - IRECV_E_USB_CONFIGURATION = -9, - IRECV_E_PIPE = -10, - IRECV_E_TIMEOUT = -11, - IRECV_E_UNSUPPORTED = -254, - IRECV_E_UNKNOWN_ERROR = -255 -} irecv_error_t; - -typedef enum { - IRECV_RECEIVED = 1, - IRECV_PRECOMMAND = 2, - IRECV_POSTCOMMAND = 3, - IRECV_CONNECTED = 4, - IRECV_DISCONNECTED = 5, - IRECV_PROGRESS = 6 -} irecv_event_type; - -typedef struct { - int size; - const char* data; - double progress; - irecv_event_type type; -} irecv_event_t; - -struct irecv_device { - const char* product_type; - const char* hardware_model; - unsigned int board_id; - unsigned int chip_id; - const char* display_name; -}; -typedef struct irecv_device* irecv_device_t; - -struct irecv_device_info { - unsigned int cpid; - unsigned int cprv; - unsigned int cpfm; - unsigned int scep; - unsigned int bdid; - unsigned long long ecid; - unsigned int ibfl; - char* srnm; - char* imei; - char* srtg; - char* serial_string; - unsigned char* ap_nonce; - unsigned int ap_nonce_size; - unsigned char* sep_nonce; - unsigned int sep_nonce_size; -}; - -typedef enum { - IRECV_DEVICE_ADD = 1, - IRECV_DEVICE_REMOVE = 2 -} irecv_device_event_type; - -typedef struct { - irecv_device_event_type type; - enum irecv_mode mode; - struct irecv_device_info *device_info; -} irecv_device_event_t; - -typedef struct irecv_client_private irecv_client_private; -typedef irecv_client_private* irecv_client_t; - -/* library */ -void irecv_set_debug_level(int level); -const char* irecv_strerror(irecv_error_t error); -void irecv_init(void); /* deprecated: libirecovery has constructor now */ -void irecv_exit(void); /* deprecated: libirecovery has destructor now */ - -/* device connectivity */ -irecv_error_t irecv_open_with_ecid(irecv_client_t* client, unsigned long long ecid); -irecv_error_t irecv_open_with_ecid_and_attempts(irecv_client_t* pclient, unsigned long long ecid, int attempts); -irecv_error_t irecv_reset(irecv_client_t client); -irecv_error_t irecv_close(irecv_client_t client); -irecv_client_t irecv_reconnect(irecv_client_t client, int initial_pause); - -/* misc */ -irecv_error_t irecv_receive(irecv_client_t client); -irecv_error_t irecv_execute_script(irecv_client_t client, const char* script); -irecv_error_t irecv_reset_counters(irecv_client_t client); -irecv_error_t irecv_finish_transfer(irecv_client_t client); -irecv_error_t irecv_trigger_limera1n_exploit(irecv_client_t client); - -/* usb helpers */ -irecv_error_t irecv_usb_set_configuration(irecv_client_t client, int configuration); -irecv_error_t irecv_usb_set_interface(irecv_client_t client, int usb_interface, int usb_alt_interface); -int irecv_usb_control_transfer(irecv_client_t client, uint8_t bm_request_type, uint8_t b_request, uint16_t w_value, uint16_t w_index, unsigned char *data, uint16_t w_length, unsigned int timeout); -int irecv_usb_bulk_transfer(irecv_client_t client, unsigned char endpoint, unsigned char *data, int length, int *transferred, unsigned int timeout); - -/* events */ -typedef void(*irecv_device_event_cb_t)(const irecv_device_event_t* event, void *user_data); -typedef struct irecv_device_event_context* irecv_device_event_context_t; -irecv_error_t irecv_device_event_subscribe(irecv_device_event_context_t *context, irecv_device_event_cb_t callback, void *user_data); -irecv_error_t irecv_device_event_unsubscribe(irecv_device_event_context_t context); -typedef int(*irecv_event_cb_t)(irecv_client_t client, const irecv_event_t* event); -irecv_error_t irecv_event_subscribe(irecv_client_t client, irecv_event_type type, irecv_event_cb_t callback, void *user_data); -irecv_error_t irecv_event_unsubscribe(irecv_client_t client, irecv_event_type type); - -/* I/O */ -irecv_error_t irecv_send_file(irecv_client_t client, const char* filename, int dfu_notify_finished); -irecv_error_t irecv_send_command(irecv_client_t client, const char* command); -irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfu_notify_finished); -irecv_error_t irecv_recv_buffer(irecv_client_t client, char* buffer, unsigned long length); - -/* commands */ -irecv_error_t irecv_saveenv(irecv_client_t client); -irecv_error_t irecv_getenv(irecv_client_t client, const char* variable, char** value); -irecv_error_t irecv_setenv(irecv_client_t client, const char* variable, const char* value); -irecv_error_t irecv_reboot(irecv_client_t client); -irecv_error_t irecv_getret(irecv_client_t client, unsigned int* value); - -/* device information */ -irecv_error_t irecv_get_mode(irecv_client_t client, int* mode); -const struct irecv_device_info* irecv_get_device_info(irecv_client_t client); - -/* device database queries */ -irecv_device_t irecv_devices_get_all(void); -irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_device_t* device); -irecv_error_t irecv_devices_get_device_by_product_type(const char* product_type, irecv_device_t* device); -irecv_error_t irecv_devices_get_device_by_hardware_model(const char* hardware_model, irecv_device_t* device); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/clear b/clear index f62b56f..b4c5ba4 100755 --- a/clear +++ b/clear @@ -2,3 +2,4 @@ rm -rf LeetDown.app rm -rf Podfile.lock rm -rf Pods +rm -rf headers