Move to iOS WhatsApp migration shows 'Not compatible' and times out.
Subject: Move to iOS: WhatsApp migration fails with "Not compatible with iOS" due to ContentProvider SecurityException and 10-minute timeout
Component: Move to iOS (Android Client & iOS Setup Assistant Receiver)
Move to iOS Android Version:4.0.3 (Build 3038, targetSdk: 34)
iOS Version:iOS 18.7.8 (iPhone 13 Pro)
Android Source:Samsung Galaxy S21 5G (SM-G991B), Android 15
WhatsApp Version:2.26.38.73
#### Issue 1: Unhandled ContentProvider SecurityException Reported as "Not Compatible"
When the user finishes the WhatsApp export flow on Android (ExportMigrationActivity), WhatsApp returns RESULT_PREPARATION_COMPLETED (result code
100).
When Move to iOS queries content://com.whatsapp.provider.migrate.ios/files, WhatsApp returns a SecurityException: Provider access is disabled.
Instead of reporting a meaningful error or prompting a retry, Move to iOS treats this as an incompatibility and flags WhatsApp as "Not compatible
with iOS / 0 items", giving the user no recourse.
#### Move to iOS Client Log Snippet:
```text
V whatsapp: did receive a result code. code=100
E DatabaseUtils: Writing exception to parcel: java.lang.SecurityException: Provider access is disabled.
V whatsapp: did receive an error from files. error=java.lang.SecurityException: Provider access is disabled.
```
#### Issue 2: Strict 600-Second (10-Minute) Selection Screen Timeout Breaks Large Transfers
For users with large chat databases and media (>10 GB, ~100k files), WhatsApp's on-device MessagesExporterService takes approximately 10 to 12
minutes to serialize and hash files.
Move to iOS enforces a hard 600-second (10-minute) inactivity timeout while waiting on the data fragment. When this timeout expires, Move to iOS
disconnects from the iOS server, transitions to retry, and terminates the session:
```text
m2ios Pushed fragment with tag: data
// Exactly 10 minutes and 25 seconds elapse during WhatsApp packaging:
ServiceDiscoveryManager Started service discovery.
m2ios Pushed fragment with tag: retry
m2ios Migration cancelled.
```
If WhatsApp finishes packaging at minute 10:20, Move to iOS has already closed the transfer session 20 seconds earlier.
#### Suggested Fixes for Apple:
1. Extend or remove the 600-second timeout on the data selection screen while a third-party exporter foreground service (like WhatsApp's
MessagesExporterService) is actively running.
2. Handle SecurityException from third-party content providers with an explicit error dialog ("WhatsApp refused access to exported files; please
check WhatsApp permissions") rather than a generic "Not compatible with iOS" failure.
