osy / Jitterbug

Launch JIT enabled iOS app with a second iOS device
Apache License 2.0
1.05k stars 84 forks source link

Remove passcode requirement for jailbroken devices from jitterbugpair #88

Open Mia-Rain opened 4 months ago

Mia-Rain commented 4 months ago

Newer A11 using a palera1n jailbreak are unable to set a passcode
However it seems that a passcode isn't required, at least on these devices
As removing the code to check for the passcode in jitterbugpair causes no issues and a working mobiledevicepairing file is still produced

The below patch works and has no issues in my usage

diff --git a/JitterbugPair/main.c b/JitterbugPair/main.c
index dba9d4b..c4578e5 100644
--- a/JitterbugPair/main.c
+++ b/JitterbugPair/main.c
@@ -170,17 +170,6 @@ int main(int argc, const char * argv[]) {
         goto leave;
     }

-    lerr = lockdownd_set_value(client, "com.apple.mobile.wireless_lockdown", "EnableWifiDebugging", plist_new_bool(1));
-    if (lerr != LOCKDOWN_E_SUCCESS) {
-        result = EXIT_FAILURE;
-        if (lerr == LOCKDOWN_E_UNKNOWN_ERROR) {
-            fprintf(stderr, "ERROR: You must set up a passcode to enable wireless pairing.\n");
-        } else {
-            print_error_message(lerr, udid);
-        }
-        goto leave;
-    }
-    
     if (!plist_write_to_filename(pair_record, path, PLIST_FORMAT_XML)) {
         result = EXIT_FAILURE;
         goto leave;
Montivillon commented 3 months ago

No one replies

Mia-Rain commented 3 months ago

yeah it really seems like this repo is dead tbh

Montivillon commented 3 months ago

After all, iOS 17 doesn’t have a disk image and I kind of found a disk image that is personalized but I can’t use JIT with it and Jitterbug is glitching