From a8c410751bea7cf961bf5b5223142bd0598ec75f Mon Sep 17 00:00:00 2001 From: Grega Kespret Date: Fri, 6 Nov 2026 13:58:23 +0100 Subject: [PATCH 1/2] Pin apple-private-apis to the default-phone change Moves the submodule to 6557333, where the SMS code goes to Apple's default trusted phone and the 2FA prompt answers with `TfaAnswer` (a code, or another phone to text). The two console prompts in src/test.rs answer with `TfaAnswer::Code`. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018qVCoJNNwwmBEafaSpCBiG --- apple-private-apis | 2 +- src/test.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apple-private-apis b/apple-private-apis index 28fde51..6557333 160000 --- a/apple-private-apis +++ b/apple-private-apis @@ -1 +1 @@ -Subproject commit 28fde5160af4238a5d28799c2209d5fd1af5f2ad +Subproject commit 6557333a865b6a0a967fd0a73273c6ed8ac70f75 diff --git a/src/test.rs b/src/test.rs index 936105f..0c9ba4f 100644 --- a/src/test.rs +++ b/src/test.rs @@ -350,7 +350,7 @@ async fn main() { println!("Enter 2FA code: "); let mut input = String::new(); std::io::stdin().read_line(&mut input).unwrap(); - Some(input.trim().to_string()) + Some(icloud_auth::TfaAnswer::Code(input.trim().to_string())) }; let mut account = AppleAccount::new_with_anisette(config.get_gsa_config(&*connection.state.read().await, false), anisette_client.clone()).unwrap(); @@ -437,7 +437,7 @@ async fn main() { println!("Enter 2FA code: "); let mut input = String::new(); std::io::stdin().read_line(&mut input).unwrap(); - Some(input.trim().to_string()) + Some(icloud_auth::TfaAnswer::Code(input.trim().to_string())) }; let acc = AppleAccount::login(appleid_closure, tfa_closure, From 77fb266d23e9d0d84a2462038efaa99fe96e5780 Mon Sep 17 00:00:00 2001 From: Grega Kespret Date: Fri, 6 Nov 2026 16:57:29 +0100 Subject: [PATCH 2/2] Pin apple-private-apis to the refused-switch fix Moves the submodule to 1eaf3e0: a phone switch Apple will not send goes back to the text already sent instead of failing the sign-in, and TfaPrompt gains `texts` and `switch_refused`. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018qVCoJNNwwmBEafaSpCBiG --- apple-private-apis | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple-private-apis b/apple-private-apis index 6557333..1eaf3e0 160000 --- a/apple-private-apis +++ b/apple-private-apis @@ -1 +1 @@ -Subproject commit 6557333a865b6a0a967fd0a73273c6ed8ac70f75 +Subproject commit 1eaf3e0c0460dedfa1b73b644c2953ff5716edf2