Skip to main content

Transfer SMS/MMS/RCS messages from Android to iPhone

Project description

green2blue

Move your texts from Android to iPhone. SMS, MMS, RCS, group chats, photos, videos — all of it.

green2blue takes an export from the free SMS Import/Export app and injects it into an iPhone backup. Restore the backup, and your messages show up in Messages like they were always there.

Quickstart

1. Export from Android

Install SMS Import/Export on your Android phone. Export all messages as NDJSON with attachments. You'll get a ZIP file.

2. Get the ZIP to your computer

Email it, AirDrop it, USB it, cloud it — whatever works.

3. Make an encrypted iPhone backup

Connect your iPhone. Open Finder (macOS) or iTunes (Windows). Turn on "Encrypt local backup", then click "Back Up Now".

Encrypted backups are required — iOS won't restore messages from unencrypted ones.

4. Install green2blue

Easiest — download a binary from the latest release. No Python needed.

Or install with pip:

pip install green2blue

5. Run it

green2blue

The wizard walks you through everything. Or go direct:

green2blue inject export.zip

6. Restore the backup

Back in Finder/iTunes, click "Restore Backup" and pick your backup. Done.


Features

Review before import — Let the Android owner browse and filter their export in-browser before you touch anything. Deselect conversations, search by contact or content, download a trimmed ZIP.

green2blue review export.zip

Privacy-safe corpus — Generate a representative sample ZIP with redacted text, anonymized contacts, and placeholder media. Safe to share for testing or bug reports.

green2blue corpus capture export.zip sample.zip

Canonical archive — Merge Android and iPhone message histories into a single SQLite archive. Deduplicates across sources, content-addresses attachments, and can re-export to either platform.

green2blue archive import-android export.zip archive.sqlite
green2blue archive import-ios ~/path/to/backup archive.sqlite
green2blue archive merge archive.sqlite

iCloud sync protection — iCloud Messages can wipe injected messages on sign-in. The --disable-icloud-sync flag prevents that.

Dry run — See exactly what would be injected without modifying anything:

green2blue inject export.zip --dry-run

Troubleshooting

"macOS can't verify this app" — Right-click the file, click Open, then Open again. Or: xattr -d com.apple.quarantine green2blue-macos-*

"Windows Defender SmartScreen" — Click "More info", then "Run anyway".

"No iPhone backups found" — Create a backup first. Finder on macOS, iTunes on Windows.

"Wrong password" — This is your local backup password from Finder/iTunes, not your Apple ID.

Messages disappear after restore — iCloud Messages is wiping them. Re-run with --disable-icloud-sync, or don't sign into iCloud Messages right after restore.

Non-US phone numbers — Use --country GB (or whatever). The wizard auto-detects this.

CLI Reference

green2blue                     Interactive wizard
green2blue inject <zip>        Inject messages into a backup
green2blue review <zip>        Browse/filter export in browser
green2blue corpus capture      Privacy-safe sample generation
green2blue archive <cmd>       Canonical archive operations
green2blue list-backups        Show available iPhone backups
green2blue inspect <zip>       Preview export contents
green2blue verify <path>       Check backup integrity
green2blue diagnose <path>     Show CloudKit sync state

Full CLI docs: docs/CLI.md

Development

git clone https://github.com/discordwell/green2blue.git
cd green2blue
pip install -e ".[dev]"
pytest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

green2blue-0.1.0.tar.gz (487.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

green2blue-0.1.0-py3-none-any.whl (447.4 kB view details)

Uploaded Python 3

File details

Details for the file green2blue-0.1.0.tar.gz.

File metadata

  • Download URL: green2blue-0.1.0.tar.gz
  • Upload date:
  • Size: 487.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for green2blue-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27a2fcbc631180a8042ae1cc3b23ec14b963b59b0a906b11456f435c5158fd62
MD5 df455d128448ff768c6e92bb50908d36
BLAKE2b-256 6f95c8f7de1af168ab9daf9bd6c214d00536c877cb730b8db7d20799711803c9

See more details on using hashes here.

File details

Details for the file green2blue-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: green2blue-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 447.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for green2blue-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 727f584bccee1b81a841925392c5a78c6d9de3ee7a2a0c2801ea363d6107b5e0
MD5 0aa47d8ca3a7856770d388f53f008fb3
BLAKE2b-256 71ab06c156e4d6240a02f318ca51fbdff9d8ff1b713f6f71c92e6e8fc09625e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page