diff --git a/AltStore.xcodeproj/project.pbxproj b/AltStore.xcodeproj/project.pbxproj index 51d36a65..b651376e 100644 --- a/AltStore.xcodeproj/project.pbxproj +++ b/AltStore.xcodeproj/project.pbxproj @@ -493,7 +493,6 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 19104DA32909BC1000C49C7B /* libem_proxy.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libem_proxy.a; path = "Dependencies/em_proxy/target/aarch64-apple-ios/debug/libem_proxy.a"; sourceTree = ""; }; 19104DA92909BC7100C49C7B /* em_proxy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = em_proxy.h; sourceTree = ""; }; 19104DB22909C06C00C49C7B /* libEmotionalDamage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libEmotionalDamage.a; sourceTree = BUILT_PRODUCTS_DIR; }; 19104DB42909C06D00C49C7B /* EmotionalDamage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmotionalDamage.swift; sourceTree = ""; }; @@ -1543,7 +1542,6 @@ children = ( B343F86C295F759E002B1159 /* libresolv.tbd */, 191E5FB5290A5E1F001A3B7C /* libminimuxer.a */, - 19104DA32909BC1000C49C7B /* libem_proxy.a */, B39575F4284F29E20080B4FF /* Roxas.framework */, D533E8B62727841800A9B5DD /* libAppleArchive.tbd */, BF580497246A3D19008AE704 /* UIKit.framework */, @@ -2575,7 +2573,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OBJC_BRIDGING_HEADER = Dependencies/em_proxy/em_proxy.h; + SWIFT_OBJC_BRIDGING_HEADER = EmotionalDamage/em_proxy.h; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; TVOS_DEPLOYMENT_TARGET = 14.0; @@ -2601,7 +2599,7 @@ OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_OBJC_BRIDGING_HEADER = Dependencies/em_proxy/em_proxy.h; + SWIFT_OBJC_BRIDGING_HEADER = EmotionalDamage/em_proxy.h; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; TVOS_DEPLOYMENT_TARGET = 14.0; @@ -2628,7 +2626,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OBJC_BRIDGING_HEADER = Dependencies/minimuxer/minimuxer.h; + SWIFT_OBJC_BRIDGING_HEADER = minimuxer/minimuxer.h; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -2651,7 +2649,7 @@ OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_OBJC_BRIDGING_HEADER = Dependencies/minimuxer/minimuxer.h; + SWIFT_OBJC_BRIDGING_HEADER = minimuxer/minimuxer.h; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; diff --git a/minimuxer/minimuxer.h b/minimuxer/minimuxer.h new file mode 100644 index 00000000..0abc5419 --- /dev/null +++ b/minimuxer/minimuxer.h @@ -0,0 +1,76 @@ +// Jackson Coxson + +#include +#include +#include +#include +#include + + +/** + * Mount iOS's developer DMG + * # Safety + * Don't be stupid + */ +void minimuxer_auto_mount(char *docs_path); + +/** + * Starts the muxer and heartbeat client + * # Arguments + * Pairing file as a list of chars and the length + * # Safety + * Don't be stupid + */ +int minimuxer_c_start(char *pairing_file, char *log_path); + +/** + * Debugs an app from an app ID + * # Safety + * Don't be stupid + */ +int minimuxer_debug_app(char *app_id); + +/** + * Installs an ipa with a bundle ID + * Expects the ipa to be in the afc jail from yeet_app_afc + * # Safety + * Don't be stupid + */ +int minimuxer_install_ipa(char *bundle_id); + +/** + * Installs a provisioning profile on the device + * # Arguments + * Pass a pointer to a plist + * # Returns + * 0 on success + * # Safety + * Don't be stupid + */ +int minimuxer_install_provisioning_profile(uint8_t *pointer, unsigned int len); + +/** + * Removes an app from the device + * # Safety + * Don't be stupid + */ +int minimuxer_remove_app(char *bundle_id); + +/** + * Removes a provisioning profile + * # Safety + * Don't be stupid + */ +int minimuxer_remove_provisioning_profile(char *id); + +/** + * Yeets an ipa to the afc jail + * # Safety + * Don't be stupid + */ +int minimuxer_yeet_app_afc(char *bundle_id, uint8_t *bytes_ptr, unsigned long bytes_len); + +/** + * Sets the current environment variable for libusbmuxd to localhost + */ +void target_minimuxer_address(void);