Remove passcode requirement for jailbroken devices from jitterbugpair
Mia-Rain opened this issue · 3 comments
Mia-Rain commented
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;