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.1.tar.gz (488.2 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.1-py3-none-any.whl (447.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: green2blue-0.1.1.tar.gz
  • Upload date:
  • Size: 488.2 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.1.tar.gz
Algorithm Hash digest
SHA256 540e2c0cb9ac7d1369b324b43a3e25888acfc3b2d10c67a614beaf3956f0cab6
MD5 0d797e3d4f49ce4ad63459cc7b5cc446
BLAKE2b-256 5c504d1c6d186173753f562e6950cfd6fcbc0dedfd68c13017bcd8a9862e9c75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: green2blue-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 447.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b92ef5d5aab6f4516a439a841e3e96ccb645e27b89cd7cdfa74b1e382b1bcb2e
MD5 3ba05c94ad8457de375e78305aff0fdd
BLAKE2b-256 c11620d2b54aae0abae4263f20949ea1e3e729fb647f4e509f35eee5c8905314

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